documentation-standards

documentation-standards is a cursor rule for Cursor from techskies11/datadog-mcp. It costs 0 tokens per session (1,816 once invoked), scanned A, original, MIT.

A set of documentation rules for MCP tools, which are functions an AI assistant can call. It defines how summaries, warnings, examples, and argument explanations should appear in tool descriptions.

In plain words
What is it for?
Use it when writing or reviewing FastMCP tool docstrings, including summaries, usage notes, examples, and parameter descriptions.
Why use it?
It helps the assistant choose the right tool and understand how to call it. It also prevents important guidance from being hidden after the argument section.

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/techskies11/datadog-mcp/documentation-standards
Clone the repo
git clone --depth 1 https://github.com/techskies11/datadog-mcp

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for documentation-standards

README.md
[![agentmods](https://agentmods.dev/badge/rules/techskies11/datadog-mcp/documentation-standards.svg)](https://agentmods.dev/rules/techskies11/datadog-mcp/documentation-standards)
Your own site
<a href="https://agentmods.dev/rules/techskies11/datadog-mcp/documentation-standards"><img src="https://agentmods.dev/badge/rules/techskies11/datadog-mcp/documentation-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 1,816 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.01816
Opus 5 $0.00000 $0.00908
Sonnet 5 $0.00000 $0.00363
Haiku 4.5 $0.00000 $0.00182

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

Security

Grade A, and why

documentation-standards 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/documentation-standards.mdc · 200 lines

How it starts

The opening of the file, as written. The whole thing — 200 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Documentation Standards

Clear documentation is critical for MCP tools - the agent relies on it to pick the right tool and call it correctly. This convention is verified against how FastMCP actually renders tool descriptions (see fastmcp-best-practices.mdc for the mechanics): everything meant to be visible in the tool's description must come before Args:; nothing meaningful goes after it.

Tool Docstring Template

Every @mcp.tool function's docstring follows this shape, in this order:

  1. One-line summary (verb-first, specific, under ~80 chars)
  2. Optional IMPORTANT:/disambiguation note against similarly-named tools
  3. Optional Use this when: / DO NOT use for: bullet lists
  4. Optional inline call examples (plain text, not an Examples: header required)
  5. Args: section - always last, one line per parameter
@mcp.tool(annotations=READ_ONLY)
def search_logs(
    query: str,
    from_time: str,
    to_time: str,
    page_size: int = DEFAULT_PAGE_SIZE,
    cursor: str | None = None,
    sort: str = "timestamp",
    indexes: list[str] | None = None,
) -> SearchLogsResponse:
    """Search and VIEW log entries. Returns paginated results.

    IMPORTANT: Use this ONLY when you need to VIEW log content for debugging.
    For COUNTING logs or unique values, use count_logs or count_unique_values
    instead - they are much faster and lighter since they never fetch raw
    log content.

    Use this when:
    - Need to view actual log messages and details
    - Debugging specific issues
    - Investigating error details

    DO NOT use for:
    - Counting logs (use count_logs)
    - Counting unique sessions/users (use count_unique_values)
    - Statistical analysis (use aggregate_logs_by_field)

    Examples:
        search_logs("status:error", "now-1h", "now")
        search_logs("service:api", "2024-01-28T10:00:00Z", "2024-01-28T11:00:00Z", page_size=50)

    Args:
        query: Search query using Datadog log search syntax (e.g. "status:error service:api")
        from_time: Start time - ISO 8601 (e.g. "2024-01-28T10:00:00Z"), relative date
            math (e.g. "now-1h", "now"), or a millisecond timestamp
        to_time: End time - same accepted formats as from_time
        page_size: Logs per page (default: 25, max: 50)
        cursor: Pagination cursor from a previous response's next_cursor field
        sort: Sort order, "timestamp" or "-timestamp" for descending
        indexes: Optional list of index names to search (e.g. ["main", "retention"])
    """

Read the full file on GitHub · 200 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 · 200 lines · 0 tokens per session scan A 1e453a63754d

Subscribe to this mod's changes

documentation-standards is a cursor rule published in the GitHub repository techskies11/datadog-mcp (0 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,816 tokens. 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-31.