Skip to main content
Glama

What a larger budget would buy

snapshot_budget
Read-onlyIdempotent

Compares planned snapshots at several token budgets and reports files, tokens, entry points and files gained per step. Use it to decide whether to raise the budget before writing a snapshot.

Instructions

Run the planner at several token budgets and report what each one adds: files, tokens used, entry points kept and the files gained over the previous budget. Answers "should I raise the budget, and what would I get?" without writing a snapshot. Read-only.

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_budget"
  }
}

Input Schema

NameRequiredDescriptionDefault
rootNoRepository root. Defaults to the directory this server was started in.
outDirNoSnapshot directory, relative to the root, and it must resolve inside the served repository. Defaults to the project configuration's outDir.
budgetsNoToken budgets to compare, ascending (default 10000, 30000, 60000).
questionNoOptional question to plan for; absent plans for the repository as a whole.
includeTestsNoInclude test files (default false).

Output Schema

NameRequiredDescriptionDefault
budgetsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the trailing 'Read-only' largely restates structured data. What the description does add beyond annotations is the comparative behavior — each budget is measured as a delta over the previous one — and the fact that nothing is persisted. It says nothing about cost, runtime, or ordering constraints beyond what the schema covers, so it is adequate rather than rich.

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?

Two sentences, front-loaded with the action and immediately followed by the return contents and the decision it answers. No filler, and the 'Read-only.' fragment at the end is short enough to be harmless even though annotations already cover it.

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 an output schema present, the description need not explain return shapes, and rich annotations cover the safety profile; what remains is the decision framing, which is supplied. A minor gap is that it does not say whether budgets must be supplied in ascending order (the schema does) or hint at compute cost for large budget sweeps, but nothing essential to invoking it correctly is missing.

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 description coverage is 100%, so every parameter (root, outDir, budgets, question, includeTests) is already documented in the schema, including the default budget set and ascending order. The description reinforces the comparative meaning of the budgets list but adds no syntax, unit, or interaction detail beyond the schema. Baseline 3 is the correct ceiling here.

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 (run the planner across several token budgets) and enumerates exactly what is reported: files, tokens used, entry points kept, and files gained over the prior budget. The clause 'without writing a snapshot' implicitly contrasts it with the snapshot-writing sibling (snapshot_generate) and with a single-budget plan, so an agent can tell them apart from the description alone.

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?

Frames the decision context precisely — 'should I raise the budget, and what would I get?' — which tells the agent when this tool is the right choice, and the 'without writing a snapshot' clause signals the alternative path when the agent does want output written. It stops short of naming a sibling tool or stating explicit exclusions, so it is clear but not exhaustive.

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