Skip to main content
Glama

build_doctor

Read-only

Pre-publish checks for problems build_validate does not catch: the #supero-preloader not removed (app stuck on a spinner), heavy startup seed (Cloud Run port-bind timeout), reserved field names such as status/state (dropped), namespace collisions, and services that need elevated import permission. Inputs: project_uuid and the files (files, files_b64gz or files_ref). Returns findings with fixes. Useful between build_validate and build_publish.

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

Input Schema

NameRequiredDescriptionDefault
filesNoMap of {relative_path: file_content}.
patchNoChange only some files of base_version instead of re-sending the whole bundle. {path: new_content} replaces or adds a file, {path: null} deletes it, and {path: {"edits": [{"old": "exact text", "new": "replacement"}]}} replaces text inside it (each old must occur exactly once). Paths are app-root relative ('ui/app.js', no app folder). Everything else is taken from base_version, so the patch must hold every change since base_version, not only the latest fix. The merged bundle goes through the same checks as a full one. Use it for every change after the first publish. Do not combine with files/files_b64gz/files_ref.
files_refNoFor a LARGE bundle that exceeds the model output-token cap: a file_id from build_stage_bundle (upload the gzip(json {path:content}) blob out-of-band, then pass its file_id here). Preferred over files/files_b64gz when the bundle will not fit inline.
files_b64gzNoAlt to files: base64(gzip(JSON {path:content})).
base_versionNoWith patch: the version_uuid of a version THIS project already published (build_publish and build_get_bundle return it; normally the latest). Its files are the starting point.
project_uuidNoTarget project (enables namespace + collision checks).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / base_version
      Added value: +{
      +  "description": "With patch: the version_uuid of a version THIS project already published (build_publish and build_get_bundle return it; normally the latest). Its files are the starting point.",
      +  "type": "string"
      +}
    • addedInput schema / properties / patch
      Added value: +{
      +  "description": "Change only some files of base_version instead of re-sending the whole bundle. {path: new_content} replaces or adds a file, {path: null} deletes it, and {path: {\"edits\": [{\"old\": \"exact text\", \"new\": \"replacement\"}]}} replaces text inside it (each old must occur exactly once). Paths are app-root relative ('ui/app.js', no app folder). Everything else is taken from base_version, so the patch must hold every change since base_version, not only the latest fix. The merged bundle goes through the same checks as a full one. Use it for every change after the first publish. Do not combine with files/files_b64gz/files_ref.",
      +  "type": "object"
      +}
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "files"
      -]New value: +[]
  3. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so safety is covered structurally. The description adds diagnostic value by naming the concrete failure modes it detects and saying it returns findings with fixes, but says nothing about runtime cost, how findings are structured, or whether checks are exhaustive versus sampled. Adequate but not rich beyond the 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?

Front-loads the purpose and the diagnostic list, then Inputs, then Returns, then when-to-use — a sensible front-to-back structure. The failure-mode enumeration is dense but each item earns its place by telling the agent what class of bug this tool catches; slightly long for a single paragraph with no visual separation.

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 read-only analysis tool with full annotation coverage and 100% schema documentation, the definition supplies the check inventory, the return shape in brief, and workflow placement. The remaining gap is the return value detail — with no output schema, 'Returns findings with fixes' leaves the finding structure vague — and it never clarifies that all six parameters are optional despite checks depending on the files/base_version combination.

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 all six parameters including the nested patch object are already documented in detail (patch merge semantics, base_version, files_ref for oversized bundles). The description only restates the input names and adds that project_uuid enables namespace and collision checks, which is a small increment over the schema's own wording. Baseline 3 applies when the schema carries the semantics.

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 plus a concrete enumeration of what it detects (leftover #supero-preloader, heavy startup seeds, reserved field names, namespace collisions, import permissions). It explicitly positions itself against the sibling build_validate by scoping to 'problems build_validate does not catch', so an agent can discriminate the two without inspecting schemas.

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?

Gives a clear workflow slot: 'Useful between build_validate and build_publish', which tells the agent when to call it relative to the two most likely neighbors. It does not state exclusions (e.g. that it is unnecessary standalone or that build_audit covers other concerns), so it stops short of full when/when-not guidance.

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.