Skip to content

MCP Tools

Klaxon exposes 8 MCP tools via JSON-RPC 2.0 at POST /mcp. Agents authenticate with an API key bearer token.

Plan limits

klaxon.notify and klaxon.ask consume the org's monthly_notifications plan quota. When the quota is exhausted, the JSON-RPC response carries an error with code: -32002 and a payload describing which limit was hit — see Billing → Plan-limit gate.

Protocol

  • MCP version: 2025-03-26
  • JSON-RPC: 2.0
  • Endpoint: POST /mcp

Request format

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "klaxon.notify",
    "arguments": { "title": "Hello" }
  }
}

Response format

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [{ "type": "text", "text": "{\"id\":\"...\",\"status\":\"created\"}" }]
  }
}

Per the MCP spec, only content[*] is forwarded to the LLM. The structured payload is JSON inside content[0].text.

Available Tools

klaxon.notify

Send a notification to the user.

ParamTypeRequiredDescription
titlestringYesNotification title
messagestringNoBody text
levelstringNoinfo / warning / error / success (default: info)
channelstringNoChannel name
tagsstring[]NoTags
priorityintNo0-4
metadataobjectNoKey/value annotations

klaxon.ask

Ask the user a question via a form.

ParamTypeRequiredDescription
titlestringYesQuestion title
formobjectYesForm schema (see Items & Forms)
messagestringNoAdditional context
levelstringNoAlert level
channelstringNoChannel name
tagsstring[]NoTags
priorityintNoPriority

klaxon.list

List klaxon items.

ParamTypeRequiredDescription
statusstringNoFilter by status
channelstringNoFilter by channel name
limitintNoMax results (default: 50, max: 200)
include_archivedboolNoInclude archived items
include_snoozedboolNoInclude snoozed items

klaxon.ack

Acknowledge an item (mark as viewed).

ParamTypeRequired
idstring (UUID)Yes

klaxon.dismiss

Dismiss an item.

ParamTypeRequired
idstring (UUID)Yes

klaxon.snooze

Snooze an item until a specific time.

ParamTypeRequiredDescription
idstring (UUID)YesItem ID
untilstring (datetime)YesISO 8601 datetime

klaxon.comment_add

Add a comment to an item.

ParamTypeRequired
idstring (UUID)Yes
textstringYes

klaxon.update

Update item fields.

ParamTypeRequiredDescription
idstring (UUID)YesItem ID
titlestringNoNew title
messagestringNoNew message
levelstringNoNew level
priorityintNoNew priority
tagsstring[]NoReplace tags
metadataobjectNoReplace metadata

Protocol Methods

MethodDescription
initializeReturns server info + capabilities
tools/listReturns all tool definitions with input schemas
tools/callExecute a tool