mcp_design_review

A checker for MCP tools and specifications. MCP is a standard way for an AI agent to call external tools.

In plain words
What is it for?
Use it to review MCP tool names, responsibilities, interfaces, and related code against the project's design guidelines.
Why use it?
It finds design and implementation problems that can make tools confusing, inconsistent, or difficult for an agent to use correctly.

Cursor rule

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/tencentcloudbase/cloudbase-ai-toolkit/mcp_design_review
Clone the repo
git clone --depth 1 https://github.com/TencentCloudBase/CloudBase-AI-Toolkit
Per session 1,483 This file is loaded in full into every session.
When invoked 1,483 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.01483 $0.01483
Opus 5 $0.00741 $0.00741
Sonnet 5 $0.00297 $0.00297
Haiku 4.5 $0.00148 $0.00148

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

Security

Grade A, and why

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

skills/docs-workflows/references/mcp_design_review.mdc · 85 lines

How it starts

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

/mcp_design_review

Function
Check whether all MCP tools and specs follow the unified MCP design guidelines.

Trigger Condition
When the user types /mcp_design_review.

Behavior

  1. Collect design sources

    • Read MCP-related specs (e.g. specs/agent-functionality/, specs/interactive-tools/, specs/code-quality-analysis/REFACTORING_CHECKLIST.md, specs/function-tool-ai-ergonomics/ if present).
    • Read MCP implementation files (primarily mcp/src/tools/*.ts, especially functions.ts, env.ts, storage.ts, etc).
  2. Evaluate design against the guidelines
    For each tool and its surrounding design, check:

    • Confirmed target shape takes precedence

      • If the current spec, task, or explicit user feedback has already locked a shape (for example “this module must converge to one queryXxx and one manageXxx”), treat deviations as failures, not optional suggestions.
      • Do not propose a locally elegant alternative if it breaks an already confirmed module boundary, naming style, or migration target.
    • Tool responsibility & naming

      • Single clear responsibility per tool (no “god” tools).
      • Names follow verbNoun style and reflect the domain (e.g. getFunctionLayers, writeFunctionLayers).
    • Query / manage tool pattern (per module)

      • Each logical domain module (functions, env, storage, database, etc.) MUST expose at most two primary tools:
        • a query tool: queryXxx – strictly read‑only, no side effects, focused on queries.
        • a manage tool: manageXxx – performs all mutations via a required action field.
      • Benchmark-critical read-only helpers are allowed only as explicit, documented exceptions when folding them into queryXxx would materially reduce agent success rate or obscure structure discovery.
      • PostgreSQL schema-qualified structure, RLS/policy visibility, and key/index inspection should be exposed through queryPgDatabase(action="schema"), not a standalone schema tool, unless a future review explicitly approves a separate capability boundary.
      • The manageXxx tool:
        • Uses a string literal union for action (e.g. "create" | "update" | "delete" | "attachLayer" | "detachLayer").
        • Uses action-specific parameters that are easy for AI to map correctly. Prefer the repository’s established style first; do not invent namespaced actions or grouped payloads unless the surrounding modules already use that pattern.
        • Treats missing/unknown action as invalid and fails safely.
      • Tool count control: avoid creating many small tools (e.g. createX, updateX, deleteX) in the same domain when a single manageXxx with multiple actions is sufficient.
      • Before approving any new fine-grained tool, explicitly check whether the capability can be merged into an existing queryXxx / manageXxx primary entrance in the same module.
      • Do NOT add a new tool when the underlying capability already exists and the only motivation is discoverability, canonical SDK naming, evaluator familiarity, prompt phrasing, or alias convenience. In those cases, prefer improving the existing tool description, examples, schema hints, action names, docs, or evaluation contract.
      • Only approve a new tool when it introduces a genuinely different capability boundary, permission surface, or irreducible input shape that would make the existing primary entrance meaningfully worse.
      • Safety & annotations: tools must clearly indicate whether they are read‑only or mutating in their metadata, and dangerous actions (delete, publish, reset, overwrite, etc.) must require explicit confirmation flags with safe defaults.
    • Cross-module consistency

      • Compare the proposed schema with neighboring modules in mcp/src/tools/, not just the local file.
      • Flag designs that introduce one-off conventions, such as namespaced action strings or special payload grouping, when other modules use flat action names and top-level fields.
      • Check whether target identifiers stay consistent across actions (functionName, layerName, triggerName) instead of mixing generic name with domain-specific names.

Read the full file on GitHub · 85 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 · 85 lines · 1,483 tokens per session scan A a413c1cb17d2

Subscribe to this mod's changes

mcp_design_review is a cursor rule published in the GitHub repository TencentCloudBase/CloudBase-AI-Toolkit (1,087 stars, last pushed 2d ago), licensed MIT. It adds 1,483 tokens to every session, about $0.0074 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.