Skip to main content
Glama

snapshot_menu

Destructive

Start or connect to an MCP server, list tools as clients read them, and report rejected tools, cache-breaking schemas, misread parameters, and token cost; optionally save a baseline menu for diffs.

Instructions

Check an MCP server's tool list as a client reads it: start or connect to it, list its tools, and report findings (what clients reject, what breaks prompt caches, what agents misread) and the token cost. A command server is started by running command as given, so only pass a command you would run yourself. Writes the menu file only when save_as is given (the baseline for diff_menus): a new file inside cwd, or an existing menu file there.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "snapshot_menu"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoFolder to run from: where the server starts, toolmenu.config.json is read and relative paths resolve. Default: where toolmenu mcp runs.
envNoEnvironment variables for a command server. It gets a minimal environment plus these.
urlNoA Streamable HTTP endpoint: https://example.com/mcp. Give this or command.
clientNoAlso check the menu as this client loads it: what it cuts, finds and refuses. Several (["claude-api-search", "codex"]) compare them: a tool one client's search finds and another's misses.
catalogNoAlso read the operations behind a search tool or command routers.
commandNoThe command that starts a stdio server, one word per item: ["node", "dist/server.js"]. Give this or url.
headersNoHTTP headers for a url server: {"Authorization": "Bearer ..."}.
save_asNoWrite the menu here (menu.json for a baseline), relative to cwd and inside it: a new file, or a menu file to replace. Default: not written.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.30.1
    • addedInput schema / properties / client / anyOf
      Added value: +[
      +  {
      +    "enum": [
      +      "claude-code",
      +      "claude-api-search",
      +      "openai",
      +      "codex",
      +      "vscode",
      +      "copilot-cloud-agent",
      +      "copilot-code-review",
      +      "gemini-cli",
      +      "gemini-api",
      +      "antigravity"
      +    ],
      +    "type": "string"
      +  },
      +  {
      +    "items": {
      +      "enum": [
      +        "claude-code",
      +        "claude-api-search",
      +        "openai",
      +        "codex",
      +        "vscode",
      +        "copilot-cloud-agent",
      +        "copilot-code-review",
      +        "gemini-cli",
      +        "gemini-api",
      +        "antigravity"
      +      ],
      +      "type": "string"
      +    },
      +    "minItems": 1,
      +    "type": "array"
      +  }
      +]
    • changedInput schema / properties / client / description
      Previous value: -"Also check the menu as this client loads it: what it cuts, finds and refuses."New value: +"Also check the menu as this client loads it: what it cuts, finds and refuses. Several ([\"claude-api-search\", \"codex\"]) compare them: a tool one client's search finds and another's misses."
    • removedInput schema / properties / client / enum
      Removed value: -[
      -  "claude-code",
      -  "claude-api-search",
      -  "openai",
      -  "codex",
      -  "vscode",
      -  "copilot-cloud-agent",
      -  "copilot-code-review",
      -  "gemini-cli",
      -  "gemini-api",
      -  "antigravity"
      -]
    • removedInput schema / properties / client / type
      Removed value: -"string"
  2. Changed2 schema fields changedv0.27.1
    • changedInput schema / properties / client / enum
      Previous value: -[
      -  "claude-code",
      -  "claude-api-search",
      -  "openai"
      -]New value: +[
      +  "claude-code",
      +  "claude-api-search",
      +  "openai",
      +  "codex",
      +  "vscode",
      +  "copilot-cloud-agent",
      +  "copilot-code-review",
      +  "gemini-cli",
      +  "gemini-api",
      +  "antigravity"
      +]
    • changedInput schema / properties / save_as / description
      Previous value: -"Write the menu here (menu.json for a baseline), relative to cwd. Default: not written."New value: +"Write the menu here (menu.json for a baseline), relative to cwd and inside it: a new file, or a menu file to replace. Default: not written."
  3. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already mark this destructive and open-world, and the description earns credit by specifying the destruction precisely: the menu file is written only when save_as is given, and an existing menu file there is replaced. It also discloses the execution risk ('a command server is started by running command as given, so only pass a command you would run yourself'), which is not in the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action and outcome, then the safety caveat, then the write semantics. The parenthetical findings list is dense but each item carries information; no filler sentences.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With 8 parameters, nested objects and no output schema, the description covers what is reported (findings plus token cost) and the file-write side effect, which is the main risk. It is slightly thin on the zero-argument case, since nothing is required and it does not say what a bare invocation resolves via toolmenu.config.json.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so cwd, env, url, headers, command and client are already documented in structured fields and the description mostly reuses that framing. It adds genuine meaning only for save_as (baseline consumed by diff_menus) and the cross-client comparison intent, which the schema hints at but does not explain.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Specific verb and resource: start/connect to an MCP server, list its tools, report findings and token cost. It also positions itself against diff_menus by calling save_as 'the baseline for diff_menus', so an agent can tell the pair apart, though the boundary with review_baseline is only implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the concrete motivations for calling it (what clients reject, what breaks prompt caches, what agents misread, token cost) and gives the client-comparison case explicitly. It lacks explicit when-not-to-use guidance beyond the save_as default, so it stops short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.