{
  "name": "json.schema",
  "group": "data",
  "summary": "Infer a JSON Schema from an example document.",
  "description": "Generates a draft 2020-12 JSON Schema from one or more sample documents, detecting string formats (date-time, email, uri, uuid, ipv4) and merging array members into a single item schema. Turns an undocumented API response into a contract you can validate against or hand to a typed client generator.",
  "keywords": [
    "json schema",
    "infer schema",
    "generate schema",
    "api contract",
    "typescript types from json"
  ],
  "endpoint": "https://fluentedi.com/v1/json/schema",
  "mcp_name": "json_schema",
  "makes_network_request": false,
  "parameters": {
    "type": "object",
    "properties": {
      "json": {
        "description": "Sample document, or an array of samples to merge.",
        "maxLength": 1000000
      },
      "title": {
        "description": "Optional schema title.",
        "type": "string",
        "default": ""
      }
    },
    "required": [
      "json"
    ],
    "additionalProperties": false
  },
  "examples": [
    {
      "description": "Schema from an API response",
      "url": "https://fluentedi.com/v1/json/schema?json=%7B%22id%22%3A%22a3f%22%2C%22created_at%22%3A%222026-08-22T10%3A00%3A00Z%22%2C%22tags%22%3A%5B%22a%22%2C%22b%22%5D%2C%22score%22%3A4.5%7D",
      "args": {
        "json": "{\"id\":\"a3f\",\"created_at\":\"2026-08-22T10:00:00Z\",\"tags\":[\"a\",\"b\"],\"score\":4.5}"
      }
    }
  ],
  "suggestion": null
}