Skip to main content
Glama

verify_changes

Read-only

Compare current ty diagnostics against a git revision to find type errors introduced or removed by edits, checking changed Python files and their importers. Read-only.

Instructions

What did the edits since a git revision break? Compares ty diagnostics now against since (default HEAD).

Run it after editing with any tool (your own Edit/Write included) to see the type errors the working tree has gained or lost relative to the last commit: the changed Python files and the files importing them are checked with the committed versions of the changed files substituted in for the "before" side. Read-only. A changed pyproject.toml, ty.toml or .ty.toml changes the rules for every file: then the whole project is checked and every current diagnostic is listed, because the old configuration cannot be re-checked.

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

Input Schema

NameRequiredDescriptionDefault
sinceNoHEAD
include_dependentsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.4

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only declare readOnlyHint and openWorldHint; the description goes well beyond that by explaining the before/after substitution mechanism, that changed files plus their importers are checked, and that a changed pyproject.toml/ty.toml/.ty.toml forces a full-project recheck because old config cannot be re-evaluated. That is genuinely additive behavioral detail.

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?

The lead question front-loads the value proposition and the following sentences add substantive mechanics rather than filler. It is somewhat dense and long for two parameters, but nearly every clause carries information.

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?

For a behavioral diff tool with no output schema, the description covers the comparison model, the substitution approach, and the config-change edge case well. The remaining gap is the unmentioned `include_dependents` parameter and the exact shape of the returned diagnostic list.

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 0%, so the description must carry parameter meaning. It explains `since` as a git revision defaulting to HEAD, but never addresses `include_dependents` directly — dependent-file checking is only implied by the 'files importing them' clause, leaving the toggle's effect undocumented.

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?

The opening question names the exact operation: a differential type-check comparing ty diagnostics against a git revision. It is unmistakably distinct from the sibling `diagnostics` tool, which lists diagnostics rather than diffs them against a baseline.

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?

It gives explicit timing guidance — 'Run it after editing with any tool (your own Edit/Write included)' — and describes the condition under which behavior changes (config file edits trigger a whole-project check). It stops short of naming an alternative tool or stating when not to use it, which keeps it from a 5.

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