Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add rules/marianfoo/abap-mcp-server/70-tool-usage-guidegit clone --depth 1 https://github.com/marianfoo/abap-mcp-serverWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.01846 | $0.01846 |
| Opus 5 | $0.00923 | $0.00923 |
| Sonnet 5 | $0.00369 | $0.00369 |
| Haiku 4.5 | $0.00185 | $0.00185 |
Grade A, and why
70-tool-usage-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 191 lines — stays where its author put it; the contents beside it link to each section on GitHub.
SAP Docs MCP Tool Usage Guide (Rule)
Complete guide for understanding when to use which MCP tool in the SAP docs system.
Tool Overview (5 Tools Available)
The SAP docs MCP provides 5 specialized tools for different types of SAP documentation and content:
General Documentation Tools
search- Multi-source documentation search (alias:sap_docs_search)fetch- Retrieve specific documentation (alias:sap_docs_get)
Community & Help Tools
sap_community_search- SAP Community blog posts and discussionssap_help_search- SAP Help Portal product documentationsap_help_get- Retrieve SAP Help content
When to Use Which Tool
search - Unified SAP Development Search
Use for:
- UI5 controls and components (Button, Table, Wizard)
- CAP framework concepts (entities, services, annotations)
- ABAP documentation (all versions 7.52-7.58 + latest)
- Development frameworks (wdi5 testing, UI5 Tooling)
- Best practices and examples (ABAP cheat sheets, Clean ABAP)
- Fiori Elements showcases and patterns
- TypeScript integration and setup
- Cloud SDK and deployment topics
Examples:
search: "button properties" # UI5 Button documentation
search: "fiori elements annotations" # Fiori Elements patterns
search: "wdi5 testing" # Testing framework
search: "clean abap practices" # Style guidelines
search: "SELECT statements 7.58" # ABAP syntax (specific version)
search: "inline declarations" # ABAP latest (default)
search: "LOOP 7.57" # Auto-detects ABAP 7.57
ABAP Integration:
- ABAP docs are fully integrated (no separate tools needed)
- Latest ABAP shown by default for general queries
- Version auto-detection from query (e.g., "LOOP 7.57" searches ABAP 7.57)
- 40,761+ ABAP files across 8 versions (7.52-7.58 + latest)
Tool Selection Matrix
| Query Type | Use This Tool | Reasoning |
|---|---|---|
| "How do I create a Button?" | search |
UI5 control examples and guides |
| "SELECT statement syntax" | search |
ABAP integrated - add version if needed |
| "Fiori Elements annotations" | search |
Cross-platform examples and showcases |
| "TRY CATCH in ABAP 7.57" | search |
ABAP with version auto-detection |
| "Clean ABAP practices" | search |
Style guides and best practices |
| "LOOP AT internal table" | search |
ABAP latest (or add version) |
| "wdi5 testing setup" | search |
Testing framework documentation |
| "CDS view annotations" | search |
CAP and examples unified |
| "Community discussions on errors" | sap_community_search |
Real-world solutions and discussions |
| "S/4HANA configuration" | sap_help_search |
Official product documentation |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 191 lines · 1,846 tokens per session scan A d9c662112c79
70-tool-usage-guide is a cursor rule published in the GitHub repository marianfoo/abap-mcp-server (88 stars, last pushed 14d ago), licensed Apache-2.0. It adds 1,846 tokens to every session, about $0.0092 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other cursor rules, from other repositories
angular-20
This rule provides comprehensive best practices and coding standards for Angular development, focusing on modern TypeScript, standalone components, signals, and performance optimizations.
dev-standard
Apache Superset development standards and guidelines for Cursor IDE.
cli-error-handling
CLI command error handling patterns.
prefer-direct-imports-over-module-mocks
Prefer extracting a testable core over vi.mock / vi.resetModules when unit tests need to reach production logic entangled with config, env, or singletons.
control-plane-descriptors
Control plane descriptor and instance implementation patterns.
family-instance-domain-actions
Family instance domain action implementation patterns.