{
 "$schema": "https://static.modelcontextprotocol.io/schemas/mcp-server-card/v1.json",
 "name": "com.clawhard/jig",
 "title": "Jig",
 "version": "1.0.0",
 "description": "Jig checks JSON against a JSON Schema and lists every problem with its exact path, expected value and a retry message for the model. It also checks the schema itself: valid JSON Schema or not, and whether OpenAI strict mode, Claude structured outputs and Gemini structured output accept it, with a converted copy for each. No account.",
 "websiteUrl": "https://jig.clawhard.com",
 "documentationUrl": "https://jig.clawhard.com/llms.txt",
 "iconUrl": "https://clawhard.com/icon-512.png",
 "serverInfo": {
  "name": "com.clawhard/jig",
  "title": "Jig",
  "version": "1.0.0"
 },
 "protocolVersion": "2025-06-18",
 "transport": "streamable-http",
 "endpoint": "https://jig.clawhard.com/mcp",
 "remotes": [
  {
   "type": "streamable-http",
   "url": "https://jig.clawhard.com/mcp"
  }
 ],
 "authentication": {
  "required": false
 },
 "capabilities": {
  "tools": {
   "listChanged": false
  },
  "prompts": {
   "listChanged": false
  },
  "resources": {
   "subscribe": false,
   "listChanged": false
  }
 },
 "tools": [
  {
   "name": "jig_validate_json",
   "title": "Validate JSON against a JSON Schema (every error with its path)",
   "description": "Use when the user asks whether some JSON matches a JSON Schema, or when JSON from a model reply, structured output, tool call, API response or file has to be checked against its schema before it is used or stored (signals: \"validate this JSON\", \"does this match the schema\", \"which field is wrong\", \"the model returned bad JSON\", \"check the tool-call arguments\", \"why does my parser reject this\"). Validates a JSON value (data), or raw model text (json_text: a ```json fence or prose around one JSON value is stripped; a syntax error comes back with line and column), against JSON Schema draft 2020-12, 2019-09, 07, 06 or 04, including $ref/$defs, anyOf/oneOf/allOf, if/then/else, unevaluatedProperties, patterns and formats (email, date-time, date, time, uuid, uri, hostname, ipv4, ipv6, duration). Returns valid true/false, every problem with its JSON Pointer path, keyword, expected and got values, and retry_message: a ready-to-send list of fixes for the model that produced the JSON. Example: {\"schema\":{\"type\":\"object\",\"properties\":{\"price\":{\"type\":\"number\"}},\"required\":[\"price\",\"sku\"]},\"data\":{\"price\":\"12.50\"}}. Gives the expected answer on 6,018 of 6,227 official JSON-Schema-Test-Suite cases (ajv 8: 5,981); most misses are external $ref URLs, which are not fetched, $dynamicRef, and the idn-email, idn-hostname and iri formats, which are not checked. Not for repairing broken JSON syntax or for checking whether a schema works with OpenAI, Claude or Gemini (jig_check_schema)."
  },
  {
   "name": "jig_check_schema",
   "title": "Check a JSON Schema, and whether OpenAI, Claude and Gemini strict modes accept it",
   "description": "Use when the user asks whether a JSON Schema is valid, or whether it will work with OpenAI Structured Outputs or function calling with strict: true, Claude structured outputs or strict tool use, or Gemini structured output (response_json_schema), or is writing a tool or function schema, an MCP inputSchema, a response_format, or a schema exported from Zod or Pydantic (signals: \"Invalid schema for response_format\", \"strict mode error\", \"Claude returns 400 for my schema\", \"will this schema work with OpenAI\", \"Gemini ignores maxLength\", \"additionalProperties false\", \"all fields must be required\"). First checks the schema against its draft: type names like \"int\", \"required\": true on a property, misspelt keywords, unresolvable $ref, invalid regex, impossible ranges. Then checks each provider's documented rules: OpenAI (every property in required, additionalProperties false on every object, root an object and not anyOf, no allOf/not/if, at most 5000 properties, 10 levels, 1000 enum values, documented formats only), Claude (additionalProperties false, no minimum/maximum/multipleOf/minLength/maxLength, minItems only 0 or 1, no recursion, at most 24 optional and 16 union-typed parameters per request, regex without lookarounds or backreferences), Gemini (minLength, maxLength, uniqueItems, minProperties and similar are dropped without an error). Returns per provider a verdict (ok, warnings, fails), each issue with its JSON Pointer path, rule, fix and the provider's doc URL, plus a converted copy the provider accepts (optional fields made required and nullable for OpenAI, unsupported constraints moved into descriptions the way the official SDK helpers do), and counts (properties, depth, optional and union-typed parameters). Example: {\"schema\":{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\",\"maxLength\":40},\"days\":{\"type\":\"integer\",\"minimum\":1}},\"required\":[\"city\"]},\"providers\":[\"openai\",\"anthropic\"]}. Rules are from each provider's docs, checked 2026-11-18; providers can change them, and very large schemas can still hit unpublished size limits."
  }
 ],
 "prompts": [
  {
   "name": "jig_check_model_json",
   "title": "Check JSON against a schema",
   "description": "Check JSON (for example a model reply) against a JSON Schema and get every error with its path and a retry message."
  },
  {
   "name": "jig_check_schema_for_providers",
   "title": "Will my schema work in strict mode?",
   "description": "Check a JSON Schema, and whether OpenAI, Claude and Gemini structured outputs accept it, with a converted copy."
  }
 ],
 "publisher": {
  "name": "Clawhard Studio",
  "url": "https://clawhard.com",
  "contact": "support@clawhard.com"
 }
}