{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "schemaVersion": "1.0",
  "name": "Spec Slice — OpenAPI & GraphQL Subgraph Extractor",
  "humanReadableId": "apikeg/spec-slice",
  "agentVersion": "1.0.0",
  "description": "Shrink 200k-token OpenAPI 3.1 and GraphQL schemas by 90-99% into valid, cycle-safe mini-specs in <20ms. Eliminates context-window overflow on massive Stripe/GitHub/Shopify specs, avoids broken $ref pointers or infinite recursive schema loops, and saves $0.10-$0.50 in LLM input tokens for $0.001.",
  "provider": {
    "name": "API Keg",
    "url": "https://apikeg.com"
  },
  "capabilities": {
    "mcpVersion": "2025-06-18",
    "x402Version": 2,
    "streaming": false,
    "supportedMessageParts": [
      "json",
      "text"
    ]
  },
  "supportedInterfaces": [
    {
      "url": "https://spec-slice.apikeg.com/mcp",
      "protocolBinding": "MCP-STREAMABLE-HTTP",
      "protocolVersion": "2025-06-18"
    },
    {
      "url": "https://spec-slice.apikeg.com/openapi.json",
      "protocolBinding": "OPENAPI-REST",
      "protocolVersion": "3.1.0"
    },
    {
      "url": "https://spec-slice.apikeg.com/.well-known/api-catalog",
      "protocolBinding": "RFC9727-LINKSET",
      "protocolVersion": "1.0"
    }
  ],
  "defaultInputModes": [
    "application/json"
  ],
  "defaultOutputModes": [
    "application/json",
    "text/markdown",
    "text/html"
  ],
  "skills": [
    {
      "id": "slice_openapi_spec",
      "name": "Slice OpenAPI 3.0/3.1 or Swagger 2.0 Specification",
      "description": "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. Why call instead of DIY: Saves 50,000-250,000 prompt tokens per large enterprise OpenAPI spec ($0.15+ LLM input cost) while guaranteeing zero broken `#/components/...` `$ref` links or recursive schema crashes. Pricing: $0.001 USD per OpenAPI/Swagger subgraph slice (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "developer-tools",
        "api-tooling",
        "context-compression",
        "agent-infrastructure"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.001",
        "unitDescription": "per OpenAPI/Swagger subgraph slice"
      },
      "documentationUrl": "https://spec-slice.apikeg.com/tools/slice-openapi-spec"
    },
    {
      "id": "slice_graphql_schema",
      "name": "Slice GraphQL SDL Schema to Minimal Subgraph",
      "description": "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. Why call instead of DIY: Replaces heavyweight `graphql-js` AST bundlers on edge runtimes and shrinks 10,000-line federated GraphQL schemas into minimal, copy-pasteable mini-SDL + sample operations. Pricing: $0.001 USD per GraphQL SDL subgraph slice (x402 instant micropayment). Pass ?dry_run=true on REST to validate schema free.",
      "tags": [
        "developer-tools",
        "api-tooling",
        "context-compression",
        "agent-infrastructure"
      ],
      "pricing": {
        "scheme": "exact",
        "priceUsd": "0.001",
        "unitDescription": "per GraphQL SDL subgraph slice"
      },
      "documentationUrl": "https://spec-slice.apikeg.com/tools/slice-graphql-schema"
    }
  ]
}