Skip to main content
Glama

analyze

Reads specified sandbox files and returns one AI answer to summarize, explain, or classify content without modifying files or running code.

Instructions

Read-only analysis: read the given files (inside SANDBOX_ROOT) and answer in a single cheap-gateway call. Does NOT start Claude Code and does NOT modify any file. Use for summarize/explain/classify; use start for anything that edits or runs.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prompt": "<prompt>"
    },
    "name": "analyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNo
promptYes
max_tokensNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.5.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations, the description carries the full safety burden and does well: read-only, no file mutation, no Claude Code session, a single cheap-gateway call, and a sandbox path restriction. It stops short of describing the shape of the returned answer or what happens on oversized/out-of-sandbox inputs, which matters since there is no output schema.

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

Conciseness5/5

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

Three short sentences, front-loaded with the purpose and immediately followed by the exclusions and the routing rule. No filler; every clause carries operational information.

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

Completeness3/5

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

Covers purpose, safety profile, sandbox constraint and the alternative tool, which is solid for a 3-parameter tool with no annotations. Gaps remain: the return value format, path format expectations, and the role of max_tokens are undocumented anywhere.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain all three parameters. It only adds meaning to 'files' (paths must be inside SANDBOX_ROOT); 'prompt' and 'max_tokens' get no explanation at all, including whether max_tokens caps the answer or the reading budget.

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

Purpose5/5

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

States a specific verb and resource ('read the given files... and answer') plus the scope constraint that files live inside SANDBOX_ROOT. It also explicitly separates itself from the sibling 'start' (no Claude Code, no edits), so an agent can choose between them without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit when-to-use categories (summarize/explain/classify) and an explicit alternative with its condition ('use start for anything that edits or runs'). The negative cases (does not start Claude Code, does not modify any file) are stated outright rather than inferred.

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