Skip to main content
Glama
Specwise MCP Server

Specwise MCP Server

validate_json_schema

Read-onlyIdempotent

Validates a JSON Schema against its meta-schema and optionally checks data against it, returning errors with instance and schema paths and line numbers for text input.

Instructions

Check a JSON Schema against its meta-schema and, if given, validate data against it. Every error has the instance path, the schema path and, for text input, the line.

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_json_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNoForce a draft; by default from $schema, else 2020-12.
schemaNoThe JSON Schema, as JSON or YAML text (or a JSON object).
instanceNoData to validate: JSON or YAML text, or the value itself. Optional.
schema_pathNoA local file instead of `schema`. Uploaded to the Specwise API; only *.yaml, *.yml or *.json inside the working directory (or SPECWISE_MCP_ROOT) are read.
instance_pathNoData to validate, from a local file. Uploaded to the Specwise API; only *.yaml, *.yml or *.json inside the working directory (or SPECWISE_MCP_ROOT) are read.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.6
    • changedInput schema / properties / instance_path / description
      Previous value: -"Data to validate, from a local file."New value: +"Data to validate, from a local file. Uploaded to the Specwise API; only *.yaml, *.yml or *.json inside the working directory (or SPECWISE_MCP_ROOT) are read."
    • changedInput schema / properties / schema_path / description
      Previous value: -"A local file instead of `schema`."New value: +"A local file instead of `schema`. Uploaded to the Specwise API; only *.yaml, *.yml or *.json inside the working directory (or SPECWISE_MCP_ROOT) are read."
  2. First observedv0.2.2

TDQS

A3.5/5.0
Behavior3/5

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

With readOnlyHint, idempotentHint and openWorldHint already supplied by annotations, the description still contributes useful context: the shape of error output (instance path, schema path, line numbers for text input), which matters because there is no output schema. It does not describe pagination-style limits, size constraints, or what happens when the schema itself is invalid, so it is additive but not rich.

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?

Two sentences, front-loaded with the primary action and followed by the output detail an agent most needs. No filler or restatement of the tool name.

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 five-parameter, all-optional validation tool with no output schema, the definition covers purpose and error-reporting shape adequately. The remaining gap is guidance about parameter mutual exclusivity and default draft resolution, which is left entirely to the schema.

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 description coverage is 100%, so the five parameters including the draft enum and the file-path restriction are fully documented in the schema. The description reinforces the conditional nature of `instance` ('if given') but adds no new syntax or format guidance beyond that baseline.

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: 'Check a JSON Schema against its meta-schema' and optionally 'validate data against it'. That is enough to distinguish it from validate_openapi and diff_openapi by resource type, though neither sibling is named explicitly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to pick this over validate_openapi or diff_openapi, and gives no exclusion rules. It also omits the key selection decision among its own parameters, namely that `schema` and `schema_path` (and `instance` vs `instance_path`) are alternative ways to supply the same input.

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

Deploy Server

Other Tools