Skip to main content
Glama

validate_design

Read-onlyIdempotent

Validate a design session or one page in draft or complete mode. Returns totals and paginated diagnostics to flag open slots and missing port connections.

Instructions

Validate a design session (or one page) in draft or complete mode. Returns totals plus paginated diagnostics. A plan-ready graph is not proof of rendered correctness.

Input Schema

NameRequiredDescriptionDefault
modeNoValidation strictness mode: "draft" allows unbound slots; "complete" enforces zero open slots and full port connectivity.draft
cursorNoPagination cursor if validation diagnostics exceed single response limit.
pageIdNoOptionally scope validation to a single page within the session.
designIdYesIdentifier of the design session to validate.
revisionNoSpecific revision to validate (defaults to latest).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv1.8.0
    • addedInput schema / properties / cursor / description
      Added value: +"Pagination cursor if validation diagnostics exceed single response limit."
    • addedInput schema / properties / designId / description
      Added value: +"Identifier of the design session to validate."
    • addedInput schema / properties / mode / description
      Added value: +"Validation strictness mode: \"draft\" allows unbound slots; \"complete\" enforces zero open slots and full port connectivity."
    • addedInput schema / properties / pageId / description
      Added value: +"Optionally scope validation to a single page within the session."
    • addedInput schema / properties / revision / description
      Added value: +"Specific revision to validate (defaults to latest)."
  2. Addedv1.4.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The description adds genuine behavioral context beyond that: it returns 'totals plus paginated diagnostics' and warns that 'a plan-ready graph is not proof of rendered correctness', which tells the agent what validation does not guarantee.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with the action and scope, then the return shape, then an important caveat. No filler; the only blemish is the stray quotation marks around 'draft or complete mode'.

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 no output schema, the description covers the action, scoping, mode semantics, and the shape of the return (totals plus paginated diagnostics). It is a bit thin on how diagnostics are grouped, but nothing critical for invocation is missing.

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 the schema already documents designId, pageId, cursor, revision, and the draft/complete enum. The description only echoes the mode and page scoping without adding format or interaction detail, 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 ('Validate a design session') plus scope options (a single page, draft/complete modes), so the agent knows exactly what is being validated. It does not, however, distinguish itself from the close siblings validate_composition and validate_markup, which an agent would need help telling apart.

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 mention of 'draft or complete mode' implies when each strictness level applies. But there is no explicit guidance on when to call validate_design versus validate_composition or validate_markup, nor any stated prerequisites (e.g. an existing session), so usage must be inferred.

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