Skip to main content
Glama

Reanalyze Diff

app_reanalyze

Switch the baseline ref or snapshot, or refresh analysis from disk, to re-evaluate an agent's edits against updated code.

Instructions

App-only tool to switch baseline ref/snapshot or refresh from disk.

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": "app_reanalyze"
  }
}

Input Schema

NameRequiredDescriptionDefault
demoIdNo
baselineNo
repoPathNo
snapshotIdNo
preserveDecisionsFromSessionIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It does not say whether reanalysis mutates persisted state, how expensive or long-running it is, what 'refresh from disk' reads, or what happens to existing decisions — the very thing preserveDecisionsFromSessionId suggests is at risk.

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

Conciseness3/5

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

A single front-loaded sentence with no filler words, which is structurally clean. However, for a five-parameter tool the brevity crosses into under-specification rather than efficiency.

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

Completeness2/5

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

Given five undocumented parameters, no annotations, and no output schema, the description leaves an agent guessing about inputs, side effects, and results. It is materially incomplete for a tool that appears to change analysis state.

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% across five parameters. The description only loosely gestures at baseline, snapshotId, and repoPath; demoId and preserveDecisionsFromSessionId, arguably the most consequential parameter, receive no explanation at all.

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

Purpose3/5

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

The description names two concrete actions: switching the baseline ref/snapshot and refreshing the analysis from disk. That is more than a restatement of the name, but the core operation (reanalyzing a diff) and its effect are never stated explicitly, and the 'App-only' qualifier is left unexplained.

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

Usage Guidelines2/5

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

There is no guidance on when to call this versus related tools such as snapshot_baseline, nor on the two modes it describes (switch baseline vs. refresh from disk) or their preconditions. 'App-only' hints at a caller restriction but does not define it.

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