Skip to main content
Glama

Check a model for mistakes

validate_project
Read-onlyIdempotent

Server-side schema validation of a project config. Returns { valid: true/false, errors: [...] } with the JSON path, keyword, and message for each issue. Prefer local validation against get_schema during authoring; use this as a ground-truth check, including on an amended model before handing it back to the user as a file. Pass exactly one of inline project or a base64-gzipped project_gz (if the inline form is too large for your client); passing neither or both returns an error result.

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

Input Schema

NameRequiredDescriptionDefault
projectNo
project_gzNoOptional. Base64-encoded gzip of the project JSON, used as an alternative to inline `project` when the caller cannot fit the full payload in a single tool argument. Mutually exclusive with `project`. Model JSON typically compresses 5-10x.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_gz / description
      Previous value: -"Optional. Base64-encoded gzip of the project JSON, used as an alternative to inline `project` when the caller cannot fit the full payload in a single tool argument. Mutually exclusive with `project`. Pricing JSON typically compresses 5-10x."New value: +"Optional. Base64-encoded gzip of the project JSON, used as an alternative to inline `project` when the caller cannot fit the full payload in a single tool argument. Mutually exclusive with `project`. Model JSON typically compresses 5-10x."
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is covered. The description adds value beyond them by disclosing the return shape ({ valid, errors } with JSON path, keyword, message) and the failure behavior when neither or both arguments are passed (an error result rather than a silent default). It says nothing about size limits or cost of a server round-trip, so it stops short of 5.

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 tight sentences ordered by importance: what it does, what it returns, when to use it versus the local alternative, then the argument contract. Every sentence carries information an agent needs, and the parenthetical about payload size is scoped rather than padding.

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?

There is no output schema, and the description fills that gap by giving the exact response shape and describing the error entries. For a two-parameter read-only validator with deep nested objects, an agent has everything needed to call it and interpret the result.

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 only 50% – project_gz is documented, inline `project` is not – but the description compensates by stating the mutual-exclusion rule ("exactly one of inline `project` or a base64-gzipped `project_gz`") and the reason for the gz variant (payload too large for the client). It does not restate the nested required fields (meta, input, steps, output), which the schema already carries, so 4 is appropriate.

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?

"Server-side schema validation of a project config" names a specific verb (validate) and resource (project config), and immediately contrasts it with local validation via get_schema and with handing the model back. An agent can distinguish this from get_schema and run_version_tests without opening any schema.

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?

States both when not to use it ("prefer local validation against get_schema during authoring") and when to use it ("ground-truth check, including on an amended model before handing it back to the user as a file"). The alternative and the selecting condition are explicit, not inferred.

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