Skip to main content
Glama

tascan_get_build_diff

DestructiveIdempotent

Store an already-computed diff for one file of a build bundle against a base commit (protocol v0.2 item 6, POST /coord/builds/:build_ref/diff — the parser has no GET for this path; a deployed function ships no git object database, so tascan-agent/deployer.js computes the diff text with its own persistent worktree and this route only validates + stores it via coord_set_artifact_diff). build_sha256 must equal the artifact's own stored sha256 or the call is refused; storing a diff replaces that file's stored full content with the diff going forward. There is currently no REST route that reads a stored diff back (GET /builds/:build_ref and /builds/:build_ref/file do not surface it) — this tool only writes one. Requires agent:dispatch.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRepo-relative path from the build manifest (tascan_get_build).
textYesThe already-computed diff text (up to 262144 characters). This tool never computes a diff itself.
base_refYesThe commit-ish the diff was computed against (1-200 chars).
build_refYessha256:<64 hex> (or the bare 64 hex) of the build the diff is about.
truncatedNoTrue if text is itself a truncated diff.
base_sha256NoOptional 64-hex sha256 of the file at base_ref.
build_sha256Yes64-hex sha256 of the file at build_ref/path — must match the stored artifact's own sha256.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds valuable detail: the call is refused if build_sha256 does not match the artifact's stored hash, storing replaces the file's full content going forward, and agent:dispatch permission is required. No contradiction with 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?

The description is dense and front-loaded with the core action. Every clause carries useful context, though the long parenthetical about protocol internals and the repeated 'only writes one' could be trimmed without losing meaning.

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

Completeness5/5

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

For a write-only tool with no output schema and 7 fully documented parameters, this description covers what the tool does, why it exists, its validation rule, its destructive side effect, the lack of any read-back path, and its required permission. An agent has everything needed to select and invoke it correctly.

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% and each parameter already has a precise description. The prose adds the high-level constraint that build_sha256 must equal the stored artifact hash and repeats that the tool never computes a diff, but it does not materially extend the per-parameter meaning already present in the schema.

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?

Opens with a specific verb and resource: 'Store an already-computed diff for one file of a build bundle against a base commit.' It also anticipates the misleading tool name by explicitly stating the route is write-only and that no GET path reads a stored diff back, distinguishing it from tascan_get_build/tascan_get_build_file.

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?

The description gives clear context: the parser has no GET for this path, the deployer precomputes the diff, and this route only validates and stores it. It explicitly says there is no REST route that reads the stored diff back and that this tool only writes one, providing a firm when-not. It does not name alternative tools, but the endpoint references imply them.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.