Skip to main content
Glama

build_audit

Read-only

SECURITY + CORRECTNESS AUDIT of a bundle BEFORE go-live (static; your code is never executed). Finds what build_validate/build_doctor do not: MONEY-01 client-chosen checkout amounts, AUTHZ-01 end-users able to write server-owned fields (paid/issued/status/amount/payment refs) or create tickets/payments, FLOW-01 fulfilment done in the browser or on payment_status alone, INV-01 capacity/stock with no server-side enforcement, PUB-01 draft/hidden rows in PUBLIC_SCHEMAS, LAUNCH-01 terms/privacy/password-reset/meta gaps. Each finding has severity (blocker|critical|high|warning), file:line or policy, evidence, the exact fix pattern and a fingerprint. Fix every blocker and critical, then re-run until clean; build_go_live reports (or, when enforced, refuses on) outstanding blocker/critical findings. Pass files/files_ref, or only project_uuid to audit the latest published version.

Input Schema

NameRequiredDescriptionDefault
filesNoMap of {relative_path: file_content} to audit before publishing.
files_refNoFor a LARGE bundle: a file_id from build_stage_bundle (gzip(json {path:content}) uploaded out-of-band).
files_b64gzNoAlt to files: base64(gzip(JSON {path:content})).
min_severityNoLowest severity to list (default 'warning' = everything).
project_uuidNoProject to audit; without files, its latest (or version_uuid) PUBLISHED bundle is audited.
version_uuidNoPublished version to audit (default: latest). Ignored when files are given.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/openWorldHint annotations by declaring the audit is static and never executes user code, describing the finding payload (severity, file:line or policy, evidence, exact fix pattern, fingerprint), and disclosing the gating relationship with build_go_live. No behavior contradicts 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-loaded with purpose and a distinct-sibling claim, then findings taxonomy, then the fix/re-run workflow — a sound ordering with no filler sentences. It is a single dense paragraph that runs long, which slightly hurts scannability, but every clause carries information.

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?

With no output schema, the description takes on the burden and delivers: it enumerates the finding shape, the severity vocabulary, and the blocking semantics. Combined with full schema coverage and read-only annotations, an agent has everything needed to call it and act on results.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the schema already carries per-parameter meaning, but the description adds the selection logic that the schema doesn't express — files vs. files_ref vs. project_uuid, and the project_uuid-only path auditing the latest published (or version_uuid) bundle. It doesn't add format details for files_b64gz or min_severity beyond 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?

States a specific verb and resource ('SECURITY + CORRECTNESS AUDIT of a bundle') plus scope ('BEFORE go-live') and mode ('static; your code is never executed'). It explicitly separates itself from build_validate and build_doctor by naming what those tools miss (MONEY-01, AUTHZ-01, FLOW-01, INV-01, PUB-01, LAUNCH-01).

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

Usage Guidelines5/5

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

Gives explicit routing against siblings ('finds what build_validate/build_doctor do not'), the operating sequence ('fix every blocker and critical, then re-run until clean'), and the downstream consequence ('build_go_live reports or, when enforced, refuses on outstanding blocker/critical findings'). It also states the two invocation modes: pass files/files_ref, or only project_uuid.

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.