Skip to main content
Glama

TradeCheck MCP — UK & Global Trade Compliance Engine

validate_openapi_31

Read-onlyIdempotent

[validate | $0.03/call] Deterministic OpenAPI 3.1.0 validator using JSON Schema Draft 2020-12 plus duplicate operationId, local $ref pointer, 2xx response, and security scheme checks.

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": {
      "document": "<document>",
      "strictSecurity": "<strictSecurity>"
    },
    "name": "validate_openapi_31"
  }
}

Input Schema

NameRequiredDescriptionDefault
documentYesParsed OpenAPI 3.1.0 specification object to validate structurally and semantically.
strictSecurityYesWhen true (default), flags missing or unreferenced securitySchemes and unsecured operations as errors.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, closed-world), so the bar is lower, and the description adds genuine value beyond them: determinism (same input yields same verdict), the concrete rule set, and the per-call cost. It stops short of saying whether validation halts at first error or collects all findings, which would matter for interpreting results.

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?

A single dense sentence with the cost tag prefixed and the core purpose front-loaded; every clause carries information about what is checked. The parenthetical checks read slightly as a list dump, but nothing is genuinely redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Two required parameters, one of them a nested free-form object, and no output schema — so the description must carry the burden of explaining what comes back. It never indicates whether the result is a boolean, an error array with JSON pointers, or a structured report, leaving a real gap for an agent that needs to act on findings.

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 both parameters are already documented, including strictSecurity's default and its exact semantics. The description adds only the framing that the document must be 3.1.0, which the schema description already states, so baseline 3 applies.

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 — 'Deterministic OpenAPI 3.1.0 validator' — and enumerates the exact rule set applied (JSON Schema Draft 2020-12, duplicate operationId, local $ref pointers, 2xx responses, security schemes). An agent knows precisely what domain this covers, which is enough to distinguish it from the FHIR/compliance siblings without opening schemas.

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 by the name and the enumerated checks, and the '$0.03/call' tag signals a paid operation. However, there is no explicit statement of when to reach for this versus another validation tool, no prerequisites (e.g. must be 3.1.0, not 3.0.x/Swagger 2.0), and no note on what to do with a non-3.1 document.

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.