Skip to main content
Glama

Ferrite

Validate a deploy spec

validate_spec
Read-onlyIdempotent

The spec in deploy_source's description passes as given with your names; run this only if you change more. Validate an InfraSpec (JSON) against the LIVE AICC admission gate (a spec that passes here passes at deploy). Returns {passed, violations:[{code,message,fix_it}], rejection_reasons}.

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": {
      "spec": "<spec>"
    },
    "name": "validate_spec"
  }
}

Input Schema

NameRequiredDescriptionDefault
specYesthe InfraSpec JSON text

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds the key behavioral fact: it runs against the LIVE AICC admission gate, so the result is authoritative rather than a static lint. It also discloses the failure payload shape, which annotations cannot. Minor gap: "LIVE" might imply external network dependence against openWorldHint=false, but it reads as the real admission rules rather than an outside system.

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?

Three dense sentences with no padding, and the gate semantics and return shape are front-loaded. The opening clause ("passes as given with your names") is compressed to the edge of ambiguity, costing a little readability.

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?

No output schema exists, and the description compensates by naming the returned fields (passed, violations with code/message/fix_it, rejection_reasons), so an agent knows what a failure looks like. Combined with the deploy-equivalence guarantee, this is nearly complete for a one-argument read-only check.

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 coverage is 100% for the single parameter ("the InfraSpec JSON text"), so the schema already defines it. The description adds no syntax, size, or formatting guidance for the spec beyond calling it JSON — baseline 3 for a fully documented single param.

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 ("Validate") and resource ("an InfraSpec (JSON)") and immediately distinguishes itself from the deploy path by naming deploy_source. An agent knows this is a pre-flight spec check, not a deployment.

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 an explicit exclusion ("run this only if you change more") tied to the fact that deploy_source's example spec already passes with the caller's names, plus the equivalence guarantee that a pass here means a pass at deploy. That is when-to-use, when-not-to-use, and the alternative, all in one place.

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.