MCP

Call the MCP endpoint

Sends one JSON-RPC 2.0 request to the Model Context Protocol server and returns its response.

POSThttps://api.klasstack.com/v1/mcp

  • mcp:write
  • Billable
  • Test key: example response

Authorizations

  • Authorizationstringheaderrequired

    Your secret key as a bearer token, in the form Bearer ks_live_sk_... or Bearer ks_test_sk_.... Keep it on your server. A test key gets the documented example and touches no school data.

Headers

  • idempotency-keystringheader

    A key of your own that makes this write safe to retry: the same key returns the first response instead of writing again.

Body

application/json

  • idinteger

  • methodstring

  • paramsobject

  • jsonrpcstring

Response

200, application/json

  • jsonrpcstring

  • idinteger

  • resultobject

    Show child attributes
    • toolsobject[]

      Show child attributes of each item
      • namestring

      • descriptionstring

      • inputSchemaobject

        Show child attributes
        • typestring

        • propertiesobject

Errors

What each code means, and what to do about it, is in the errors guide.

Webhook events

This call triggers no webhook event.