Skip to main content
Glama

Validate the head source

websiteSourceCode_head_check
Read-onlyIdempotent

Runs the publish-time framework quality gate without changing source: format, typecheck, lint, build, and a server-render of every page using placeholder content synthesized from the CMS schema. Failures return ok: false with diagnostics, and pages that compiled but threw while rendering in renderFailures. No lease is required and no CMS content is read, so the outcome depends only on source and schema.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "websiteId": "<websiteId>"
    },
    "name": "websiteSourceCode_head_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
websiteIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that no lease is required, that no CMS content is read, that the run is hermetic w.r.t. source+schema, and that failures surface as `ok: false` with diagnostics plus a separate `renderFailures` collection. That tells an agent exactly what a failed call looks like — the hardest thing to infer without 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 the action and scope, then failure semantics, then the hermeticity claim — a sensible ordering with no filler sentences. It runs as one dense block rather than being broken up, which slightly slows scanning but wastes no words.

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?

With no output schema, the description does the right work by sketching the failure return shape (`ok: false`, diagnostics, `renderFailures`). Annotations cover the safety profile. The only real hole is the undocumented required `websiteId`, which is the single thing an agent must supply.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden for `websiteId`, yet it never mentions or scopes the parameter. The closing sentence about source and schema hints that evaluation is website-scoped, which is the only indirect signal, but an agent learns nothing about the identifier's meaning or format from the description.

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 — 'Runs the publish-time framework quality gate without changing source' — and enumerates the concrete checks (format, typecheck, lint, build, server-render). The phrase 'without changing source' and 'no lease is required' distinguish it from the adjacent head_publish/lease_acquire siblings.

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?

Usage is implied rather than stated: because it is framed as 'the publish-time framework quality gate,' an agent can infer it belongs before publishing, but the description never names head_publish as the alternative or gives an explicit when/when-not. There is also no guidance on when validating is unnecessary.

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.

Resources