Skip to main content
Glama

Server Details

Repair broken JSON from LLM output and validate it against a JSON Schema.

Ownership verified
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
ChatGPT
–
Claude
–

TDQS

A4.4/5.0

Scored across 2 tools

Disambiguation5/5

repair_json and validate_json target clearly different outcomes: one returns repaired text/parsed value, the other returns schema validation errors. The descriptions explicitly clarify that validate_json can repair broken text on input, so the internal overlap is disclosed rather than confusing. An agent can select between them without ambiguity.

Naming Consistency5/5

Both names follow a strict verb_noun snake_case pattern (repair_json, validate_json) using the same noun, so the convention is perfectly predictable. No mixed styles, casing, or verb forms appear.

Tool Count4/5

Two tools is slightly thin, but the server's scope (a pure-computation JSON repair/validate utility) is narrow enough that both operations are the natural core. No tool feels redundant or filler.

Completeness4/5

Repair plus schema validation covers the main use cases for a JSON-fixing service, including NDJSON and coercion. Minor gaps exist (e.g. pretty-print/minify or JSON Pointer querying), but these are conveniences an agent can work around rather than dead ends.

Available Tools

2 tools
repair_jsonRepair broken JSON (LLM output) and list the fixesA
Read-onlyIdempotent
Inspect

Turn broken or messy JSON text into valid JSON. Strips Markdown code fences and prose before/after the JSON, removes comments and trailing commas, converts single/curly quotes, quotes unquoted keys, maps Python None/True/False, inserts missing commas, closes truncated strings/arrays/objects, and wraps NDJSON / several concatenated objects into one array. Returns the parsed value (json), the repaired text, and the list of fixes applied; valid input passes through unchanged with no fixes. Optional schema (+ coerce) also validates the result. Fails with isError (code unrepairable / no_json_found) when nothing JSON-like can be recovered. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/repair.

Inputs: input (required), draft, coerce, format, +1 more. Returns: ok, json, plan, fixes, +9 more

validate_jsonValidate JSON against a JSON Schema (repairs broken input first)A
Read-onlyIdempotent
Inspect

Check JSON against a JSON Schema and get every error with its JSON Pointer path. Send the JSON either as text ("input"; broken text is repaired first, and the fixes are listed) or as an already-parsed value ("data"). Optional coerce converts "42" → 42, "true" → true, etc. toward the schema's types before validating and lists each change. A schema mismatch is a normal result (valid: false), not an error. Drafts 2020-12 (default), 2019-09, 7, 4; only local $refs. Pure computation: read-only, no network access, inputs not stored. Same engine and limits as POST /api/v1/validate.

Inputs: schema (required), data, draft, input, +1 more. Returns: ok, json, plan, draft, +10 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.

    Resources