70-tool-usage-guide

A usage guide for the five tools in an SAP documentation service. SAP is a company that makes enterprise business software.

In plain words
What is it for?
Use it to decide between general documentation search, document retrieval, SAP Community search, and SAP Help Portal search or retrieval.
Why use it?
It helps choose the right search or document-retrieval tool for UI5, CAP, ABAP, Fiori, TypeScript, deployment, and related topics.

Cursor rule for Cursor

Install

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.

agentmods
npx agentmods add rules/marianfoo/abap-mcp-server/70-tool-usage-guide
Clone the repo
git clone --depth 1 https://github.com/marianfoo/abap-mcp-server

Made for: Cursor.

Per session 1,846 This file is loaded in full into every session.
When invoked 1,846 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce 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

Measured 2d ago against content hash d9c662112c79, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.cursor/rules/70-tool-usage-guide.mdc · 191 lines

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

  1. search - Multi-source documentation search (alias: sap_docs_search)
  2. fetch - Retrieve specific documentation (alias: sap_docs_get)

Community & Help Tools

  1. sap_community_search - SAP Community blog posts and discussions
  2. sap_help_search - SAP Help Portal product documentation
  3. sap_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

Read the full file on GitHub · 191 lines

Changes

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.

  1. 2d ago First seen · 191 lines · 1,846 tokens per session scan A d9c662112c79

Subscribe to this mod's changes

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.