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/mcp-sap-docs/70-tool-usage-guidegit clone --depth 1 https://github.com/marianfoo/mcp-sap-docsWhat 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.01708 | $0.01708 |
| Opus 5 | $0.00854 | $0.00854 |
| Sonnet 5 | $0.00342 | $0.00342 |
| Haiku 4.5 | $0.00171 | $0.00171 |
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 — 188 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 (Standard + Cloud variants)
- 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: "inline declarations" # ABAP Standard (default)
search: "inline declarations cloud" # ABAP Cloud variant
ABAP Integration:
- ABAP docs are fully integrated (no separate tools needed)
- Standard ABAP shown by default for general queries
- Variant selection from query (e.g., "LOOP cloud" searches ABAP Cloud)
- ABAP Standard + Cloud keyword documentation (on-premise + BTP)
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 "cloud" if needed |
| "Fiori Elements annotations" | search |
Cross-platform examples and showcases |
| "TRY CATCH in ABAP Cloud" | search |
ABAP with variant selection |
| "Clean ABAP practices" | search |
Style guides and best practices |
| "LOOP AT internal table" | search |
ABAP Standard (or add "cloud") |
| "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 · 188 lines · 1,708 tokens per session scan A e06051622aad
70-tool-usage-guide is a cursor rule published in the GitHub repository marianfoo/mcp-sap-docs (217 stars, last pushed 14d ago), licensed Apache-2.0. It adds 1,708 tokens to every session, about $0.0085 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.
coolify-ai-docs
Master reference to all Coolify AI documentation in .ai/ directory.
typescript
Changes to these high-fan-out internals can affect every message, delta, element, or rerun. Keep work in them minimal, and benchmark changes with representative stress-test apps.
python_lib
Tips and guidelines specific to the development of the Streamlit Python library, not applicable to scripts and e2e tests.
specs
This directory contains product and tech specs for Streamlit features.