Extract minimal OpenAPI 3.x, Swagger 2.0, and GraphQL subgraphs with transitive $ref closure.
Maintain this server? Claim it
Call this server's tools from your browser. Nothing to install.
Requests go through mcptry because browsers can't call most MCP servers directly. Header values are sent to the server for that request only and are never stored or logged.
Tool list from our last check. Connect live to refresh it.
Parses GraphQL Schema Definition Language (`Query`, `Mutation`, `Subscription`, `type`, `input`, `interface`, `union`, `enum`, `scalar`), scores root fields against `query` or explicit `rootFields`, and emits a valid mini-SDL containing only selected root fields and the transitive closure of referenced types. Pricing: $0.001 USD per GraphQL SDL subgraph slice (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.
Full GraphQL Schema Definition Language (SDL) string.
Natural-language task intent scored against root Query, Mutation, and Subscription fields.
Explicit root field names to extract (e.g. 'createCreditNote' or 'Mutation.refundInvoice').
Maximum number of matched root fields to retain in the mini-SDL.
Optional filter restricting root operation containers.
Strip triple-quoted and single-line descriptions from the emitted mini-SDL.
Pick your client. Values in capitals, like YOUR_TOKEN, are yours to fill in.
Run in a terminal
claude mcp add --transport http spec-slice https://spec-slice.apikeg.com/mcp
Parses GraphQL Schema Definition Language (`Query`, `Mutation`, `Subscription`, `type`, `input`, `interface`, `union`, `enum`, `scalar`), scores root fields against `query` or explicit `rootFields`, and emits a valid mini-SDL containing only selected root fields and the transitive closure of referenced types. Pricing: $0.001 USD per GraphQL SDL subgraph slice (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.
| Argument | Type | Description |
|---|---|---|
| sdl* | string | Full GraphQL Schema Definition Language (SDL) string. |
| query | string | Natural-language task intent scored against root Query, Mutation, and Subscription fields. |
| rootFields | array | Explicit root field names to extract (e.g. 'createCreditNote' or 'Mutation.refundInvoice'). |
| maxRootFields | integer | Maximum number of matched root fields to retain in the mini-SDL. |
| operationTypes | array | Optional filter restricting root operation containers. |
| compactDescriptions | boolean | Strip triple-quoted and single-line descriptions from the emitted mini-SDL. |
{
"type": "object",
"required": [
"sdl"
],
"properties": {
"sdl": {
"type": "string",
"minLength": 1,
"description": "Full GraphQL Schema Definition Language (SDL) string."
},
"query": {
"type": "string",
"maxLength": 500,
"description": "Natural-language task intent scored against root Query, Mutation, and Subscription fields."
},
"rootFields": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"maxItems": 50,
"description": "Explicit root field names to extract (e.g. 'createCreditNote' or 'Mutation.refundInvoice')."
},
"maxRootFields": {
"type": "integer",
"default": 5,
"maximum": 50,
"minimum": 1,
"description": "Maximum number of matched root fields to retain in the mini-SDL."
},
"operationTypes": {
"type": "array",
"items": {
"enum": [
"Query",
"Mutation",
"Subscription"
],
"type": "string"
},
"maxItems": 3,
"description": "Optional filter restricting root operation containers."
},
"compactDescriptions": {
"type": "boolean",
"default": false,
"description": "Strip triple-quoted and single-line descriptions from the emitted mini-SDL."
}
},
"additionalProperties": false
}Scores OpenAPI/Swagger endpoints against a natural-language `query` (BM25 + boosted `operationId`, `summary`, `tags`, and path tokens) or explicit `operationIds`/`pathPatterns`, walks every reachable JSON Pointer `$ref` with cycle protection, prunes unused paths/components, and emits ready-to-use `curl` + TypeScript `fetch` snippets. Pricing: $0.001 USD per OpenAPI/Swagger subgraph slice (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.
| Argument | Type | Description |
|---|---|---|
| spec* | any | OpenAPI 3.0/3.1 or Swagger 2.0 specification provided as either a parsed JSON object or a serialized JSON string (up to 5 MiB). |
| query | string | Natural-language task intent (e.g. 'create credit note and refund invoice') scored via Okapi BM25 plus boosted matches on operationId, summary, tags, and path segments. |
| methods | array | Optional HTTP method allowlist. |
| operationIds | array | Explicit operationId values to extract (case-insensitive). |
| pathPatterns | array | Explicit path templates or 'METHOD /v1/path/*' glob patterns to extract (e.g. 'POST /v1/invoices/*/refund'). |
| maxOperations | integer | Maximum number of matched operations to retain in the sliced OpenAPI spec. |
We read every tool's name, description and inputs the way the model will, looking for instructions hidden from you. A clean result means no warning signs, not a guarantee. Scanned Nov 30, 2026.
| includeSnippets |
| boolean |
| Generate ready-to-use curl and TypeScript fetch code snippets for each selected operation. |
| compactDescriptions | boolean | Strip verbose prose descriptions, examples, and externalDocs while keeping spec-valid response descriptions. |
{
"type": "object",
"required": [
"spec"
],
"properties": {
"spec": {
"description": "OpenAPI 3.0/3.1 or Swagger 2.0 specification provided as either a parsed JSON object or a serialized JSON string (up to 5 MiB)."
},
"query": {
"type": "string",
"maxLength": 500,
"description": "Natural-language task intent (e.g. 'create credit note and refund invoice') scored via Okapi BM25 plus boosted matches on operationId, summary, tags, and path segments."
},
"methods": {
"type": "array",
"items": {
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE",
"HEAD",
"OPTIONS",
"TRACE"
],
"type": "string"
},
"maxItems": 8,
"description": "Optional HTTP method allowlist."
},
"operationIds": {
"type": "array",
"items": {
"type": "string",
"maxLength": 200,
"minLength": 1
},
"maxItems": 50,
"description": "Explicit operationId values to extract (case-insensitive)."
},
"pathPatterns": {
"type": "array",
"items": {
"type": "string",
"maxLength": 300,
"minLength": 1
},
"maxItems": 50,
"description": "Explicit path templates or 'METHOD /v1/path/*' glob patterns to extract (e.g. 'POST /v1/invoices/*/refund')."
},
"maxOperations": {
"type": "integer",
"default": 5,
"maximum": 50,
"minimum": 1,
"description": "Maximum number of matched operations to retain in the sliced OpenAPI spec."
},
"includeSnippets": {
"type": "boolean",
"default": true,
"description": "Generate ready-to-use curl and TypeScript fetch code snippets for each selected operation."
},
"compactDescriptions": {
"type": "boolean",
"default": false,
"description": "Strip verbose prose descriptions, examples, and externalDocs while keeping spec-valid response descriptions."
}
},
"additionalProperties": false
}