Skip to main content
Glama

build_validate

Read-only

Validates an authored bundle against the live platform without running it (static AST checks): manifest, syntax, import safety, config exports, schema validity and namespace equal to the project's schema_namespace. Inputs: project_uuid and the files as files, files_b64gz or files_ref. Returns errors and warnings by file and schema. Free; useful before every 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_validate"
  }
}

Input Schema

NameRequiredDescriptionDefault
filesNoMap of {relative_path: file_content} for the bundle.
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})). Use if a CDN/WAF blocks raw code in the body.
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 (for namespace/schema 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.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered; the description usefully adds that validation is static AST analysis and does not execute the bundle, and that results come back as errors and warnings keyed by file and schema. The 'against the live platform' phrasing combined with openWorldHint=false is slightly loose but not a real contradiction, since namespace comparison implies server-side context.

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-loaded with the core action and its check list, then a compact inputs sentence, then the return shape and a cost/usage note. Dense but every clause carries information; only the 'Inputs:' enumeration is mildly redundant with the schema.

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 validation tool with six parameters, deep nested patch semantics handled entirely by the schema, and no output schema, the description covers purpose, execution model, return shape (errors and warnings by file and schema), and cost. The one gap is the absence of any routing note relative to schema_validate or build_audit.

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% and the schema already spells out the files / files_b64gz / files_ref alternatives, the patch merge semantics, and base_version. The description only restates that these are the accepted bundle input modes plus project_uuid, adding emphasis (that they are alternatives) but no real meaning beyond the schema, so the baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource ('Validates an authored bundle') and enumerates the exact check families performed (manifest, syntax, import safety, config exports, schema validity, namespace match). It is clear what the tool does, but it does not explicitly differentiate itself from the sibling schema_validate, which an agent could easily confuse with the schema-validity portion of these checks.

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

Usage Guidelines3/5

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

The closing phrase 'useful before every publish' gives a concrete usage context and implicitly positions this ahead of build_publish, and 'Free' signals it is cheap to call repeatedly. However, there is no explicit when-not guidance, no named alternative to use instead (e.g. schema_validate for schema-only checks), and no statement about prerequisites such as having a staged bundle.

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.