70-tool-usage-guide

A set of rules for choosing among five tools that search and retrieve SAP documentation, community discussions, and help content.

In plain words
What is it for?
It helps find information about SAP UI5, CAP, ABAP, Fiori, TypeScript, cloud deployment, testing, and related development topics.
Why use it?
It removes the guesswork of deciding which SAP documentation source and tool to use for a question.

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/mcp-sap-docs/70-tool-usage-guide
Clone the repo
git clone --depth 1 https://github.com/marianfoo/mcp-sap-docs

Made for: Cursor.

Per session 1,708 This file is loaded in full into every session.
When invoked 1,708 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.01708 $0.01708
Opus 5 $0.00854 $0.00854
Sonnet 5 $0.00342 $0.00342
Haiku 4.5 $0.00171 $0.00171

Measured 2d ago against content hash e06051622aad, 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 · 188 lines

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

  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 (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

Read the full file on GitHub · 188 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 · 188 lines · 1,708 tokens per session scan A e06051622aad

Subscribe to this mod's changes

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.