Connect an agent to Docket

Docket exposes an authenticated MCP JSON-RPC endpoint and REST helpers on the same service root.

SurfaceURL
MCP JSON-RPChttps://docket.cstmr.bot/v1/mcp/mcp
REST tool listhttps://docket.cstmr.bot/v1/mcp/tools
REST tool callhttps://docket.cstmr.bot/v1/mcp/tools/{name}
Healthhttps://docket.cstmr.bot/health

Send the tenant token exactly as an Authorization: Bearer header. Never put a token in a URL, query string, log line or issue tracker. Use this placeholder in examples: dkt_EXAMPLE_NOT_A_REAL_TOKEN.

JSON-RPC: initialize

MCP clients start with the standard handshake:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "initialize",
  "params": {
    "protocolVersion": "2025-03-26",
    "capabilities": {},
    "clientInfo": {"name": "example-client", "version": "1.0"}
  }
}

The result contains protocolVersion, capabilities.tools and serverInfo. Docket echoes a valid client-supplied date version from 2024-11-05 onward and uses 2025-03-26 when the client omits it.

Then send the initialized notification. It has no id and receives an empty 202 Accepted response:

{"jsonrpc": "2.0", "method": "notifications/initialized"}

MCP ping is also available and returns an empty success result. These methods require the same bearer token as the tool calls.

JSON-RPC: list tools

{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/list"
}

JSON-RPC: call a tool

{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "get_process",
    "arguments": {"process_id": "customer-service"}
  }
}

The JSON-RPC result carries the tool payload as a text block in result.content, plus replayed and request_id metadata.

Read tools (get_process, list_cases, get_case, allowed_next_step) ignore idempotency_key; they always return live state and never report replayed: true. Send an idempotency key only on state-changing calls.

JSON-RPC: list the queue and read one case

{
  "jsonrpc": "2.0",
  "id": 4,
  "method": "tools/call",
  "params": {
    "name": "list_cases",
    "arguments": {
      "process_id": "customer-service",
      "status": "open",
      "thread_id": "19c2ab5f7d31e0aa",
      "order_ref": "#97526",
      "overdue": true,
      "limit": 20
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 5,
  "method": "tools/call",
  "params": {
    "name": "get_case",
    "arguments": {"case_id": "customer-service-abc123"}
  }
}

list_cases is newest-first by updated_at and paginated with the opaque next_cursor in its result. get_case returns facts, stage, status, journal, steps and any pending approval (including the hash a human must approve). Both return a send-gate due_at and a read-time overdue flag. Reference filters normalise gmail: prefixes, Gmail decimal thread-f:/msg-f: ids, case and whitespace, and order-reference noise such as a leading # or order no.. Before creating a Gmail case, query both external_ref=<message id> and thread_id=<thread id> to find an existing Docket case in another process.

If a case has no reply to send, do not submit a placeholder draft. At draft-reply, record the transition edge close-no-reply with a reason from callback, supplier-or-internal, answered-by-person, noise-or-notification, duplicate or other, and a non-empty note (at most 500 characters). get_case and list_cases then expose closure_reason and the full closure record. Once a draft is submitted, the case is at awaiting-send-approval; there the owner either declines (then the client records withdraw-reply) or revises (then the client records revise-send back to draft-reply, where close-no-reply is available again). Plain close is refused at both stages.

REST helpers

Read the tool list with a bearer-authenticated GET to /v1/mcp/tools. Call one tool with POST /v1/mcp/tools/{name} and this envelope:

{
  "tool": "start_case",
  "arguments": {"process_id": "customer-service", "key": "example-case-1"},
  "idempotency_key": "example-start-1"
}

The REST response is the call result with tool, result, replayed and request_id.

Client configuration

Docket serves a stateless MCP JSON-RPC 2.0 endpoint over HTTP POST at https://docket.cstmr.bot/v1/mcp/mcp, authenticated with a bearer header. It supports the standard initialize, notifications/initialized and ping handshake, but does not use SSE, create a session, or return or require an Mcp-Session-Id. Support for remote MCP servers and custom headers varies by client.

The generic remote-server shape is a URL plus an authorization header. The value below is an environment reference, not a token; substitute your secret store or environment reference and never paste a raw token into committed configuration:

{
  "mcpServers": {
    "docket": {
      "url": "https://docket.cstmr.bot/v1/mcp/mcp",
      "headers": {
        "Authorization": "Bearer ${DOCKET_SMOKE_TOKEN}"
      }
    }
  }
}

If your client cannot send custom headers on a remote MCP server, call the JSON-RPC or REST endpoints directly using the examples above, or use the smoke script. Do not put the token in the URL or in a command argument.

Tool reference

The reference below is generated from Docket's live tool registry. The schema shown for each tool is the same input schema returned by tools/list; do not maintain a separate copy in an agent prompt.

Generated from Docket's live MCP registry. This is the same list returned by tools/list, including each input schema and its required fields.

get_process

Read a published process definition, or an unpublished draft by draft_id.

Required fields: process_id

{
  "$id": "docket.mcp_v1.get_process",
  "additionalProperties": false,
  "not": {
    "required": [
      "version",
      "draft_id"
    ]
  },
  "properties": {
    "draft_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Draft Id"
    },
    "process_id": {
      "pattern": "^[a-z][a-z0-9_-]*$",
      "title": "Process Id",
      "type": "string"
    },
    "version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Version"
    }
  },
  "required": [
    "process_id"
  ],
  "title": "GetProcessRequest",
  "type": "object"
}

start_case

Open a case once per idempotency key, pinned to the current published definition.

Required fields: process_id, key

{
  "$id": "docket.mcp_v1.start_case",
  "additionalProperties": false,
  "properties": {
    "facts": {
      "additionalProperties": true,
      "title": "Facts",
      "type": "object"
    },
    "key": {
      "minLength": 1,
      "title": "Key",
      "type": "string"
    },
    "process_id": {
      "pattern": "^[a-z][a-z0-9_-]*$",
      "title": "Process Id",
      "type": "string"
    },
    "thread_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Thread Id"
    }
  },
  "required": [
    "process_id",
    "key"
  ],
  "title": "StartCaseRequest",
  "type": "object"
}

list_cases

List tenant cases newest first, optionally filtered by process, stage, open/closed status, or external thread/order reference. Paginated with an opaque cursor.

Required fields: none

{
  "$id": "docket.mcp_v1.list_cases",
  "additionalProperties": false,
  "properties": {
    "cursor": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Cursor"
    },
    "external_ref": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "External Ref"
    },
    "limit": {
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "title": "Limit",
      "type": "integer"
    },
    "open": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Open"
    },
    "order_ref": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Order Ref"
    },
    "overdue": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Overdue"
    },
    "process_id": {
      "anyOf": [
        {
          "pattern": "^[a-z][a-z0-9_-]*$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Process Id"
    },
    "stage": {
      "anyOf": [
        {
          "pattern": "^[a-z][a-z0-9-]*$",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Stage"
    },
    "status": {
      "anyOf": [
        {
          "enum": [
            "open",
            "closed"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Status"
    },
    "thread_id": {
      "anyOf": [
        {
          "minLength": 1,
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Thread Id"
    }
  },
  "title": "ListCasesRequest",
  "type": "object"
}

get_case

Read one tenant case with its facts, stage, status, journal, explicit steps, external references and pending approval.

Required fields: case_id

{
  "$id": "docket.mcp_v1.get_case",
  "additionalProperties": false,
  "properties": {
    "case_id": {
      "minLength": 1,
      "title": "Case Id",
      "type": "string"
    }
  },
  "required": [
    "case_id"
  ],
  "title": "GetCaseRequest",
  "type": "object"
}

add_facts

Append or explicitly overwrite facts on an open case, journaling who, when and why.

Required fields: case_id, facts, reason

{
  "$id": "docket.mcp_v1.add_facts",
  "additionalProperties": false,
  "properties": {
    "case_id": {
      "minLength": 1,
      "title": "Case Id",
      "type": "string"
    },
    "facts": {
      "additionalProperties": true,
      "minProperties": 1,
      "title": "Facts",
      "type": "object"
    },
    "overwrite": {
      "default": false,
      "title": "Overwrite",
      "type": "boolean"
    },
    "reason": {
      "minLength": 1,
      "title": "Reason",
      "type": "string"
    }
  },
  "required": [
    "case_id",
    "facts",
    "reason"
  ],
  "title": "AddFactsRequest",
  "type": "object"
}

allowed_next_step

Return the edges that may legally happen next for a case. A check only; it writes nothing.

Required fields: case_id

{
  "$id": "docket.mcp_v1.allowed_next_step",
  "additionalProperties": false,
  "properties": {
    "as_of": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "As Of"
    },
    "case_id": {
      "minLength": 1,
      "title": "Case Id",
      "type": "string"
    }
  },
  "required": [
    "case_id"
  ],
  "title": "AllowedNextStepRequest",
  "type": "object"
}

decide

Interpret the current decision stage's own policy and move the case along the chosen edge.

Required fields: case_id, question, facts

{
  "$id": "docket.mcp_v1.decide",
  "additionalProperties": false,
  "properties": {
    "case_id": {
      "minLength": 1,
      "title": "Case Id",
      "type": "string"
    },
    "facts": {
      "additionalProperties": true,
      "title": "Facts",
      "type": "object"
    },
    "question": {
      "minLength": 1,
      "title": "Question",
      "type": "string"
    },
    "strategy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Strategy"
    }
  },
  "required": [
    "case_id",
    "question",
    "facts"
  ],
  "title": "DecideRequest",
  "type": "object"
}

record_step

Append an auditable step event (step id, process id, actor role, timestamp, payload, tenant id) to a case.

Required fields: case_id, step_id, actor_role

{
  "$id": "docket.mcp_v1.record_step",
  "additionalProperties": false,
  "properties": {
    "actor_role": {
      "minLength": 1,
      "title": "Actor Role",
      "type": "string"
    },
    "case_id": {
      "minLength": 1,
      "title": "Case Id",
      "type": "string"
    },
    "payload": {
      "additionalProperties": true,
      "title": "Payload",
      "type": "object"
    },
    "step_id": {
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
      "title": "Step Id",
      "type": "string"
    },
    "timestamp": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Timestamp"
    }
  },
  "required": [
    "case_id",
    "step_id",
    "actor_role"
  ],
  "title": "RecordStepRequest",
  "type": "object"
}

record_outcome

Append a transition, a timer lapse, or an approved host-effect report, re-checking the move atomically.

Required fields: case_id, outcome

{
  "$defs": {
    "Outcome": {
      "additionalProperties": false,
      "properties": {
        "edge": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Edge"
        },
        "executed": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Executed"
        },
        "kind": {
          "enum": [
            "transition",
            "lapse",
            "effect"
          ],
          "title": "Kind",
          "type": "string"
        },
        "outputs": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Outputs"
        },
        "result": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Result"
        },
        "token": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Token"
        }
      },
      "required": [
        "kind"
      ],
      "title": "Outcome",
      "type": "object"
    }
  },
  "$id": "docket.mcp_v1.record_outcome",
  "additionalProperties": false,
  "properties": {
    "as_of": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "As Of"
    },
    "case_id": {
      "minLength": 1,
      "title": "Case Id",
      "type": "string"
    },
    "outcome": {
      "$ref": "#/$defs/Outcome"
    }
  },
  "required": [
    "case_id",
    "outcome"
  ],
  "title": "RecordOutcomeRequest",
  "type": "object"
}

record_value_metric

Append a numeric value-metric event to a case.

Required fields: case_id, metric_id, value

{
  "$id": "docket.mcp_v1.record_value_metric",
  "additionalProperties": false,
  "properties": {
    "case_id": {
      "minLength": 1,
      "title": "Case Id",
      "type": "string"
    },
    "metric_id": {
      "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
      "title": "Metric Id",
      "type": "string"
    },
    "payload": {
      "additionalProperties": true,
      "title": "Payload",
      "type": "object"
    },
    "timestamp": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Timestamp"
    },
    "unit": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Unit"
    },
    "value": {
      "title": "Value",
      "type": "number"
    }
  },
  "required": [
    "case_id",
    "metric_id",
    "value"
  ],
  "title": "RecordValueMetricRequest",
  "type": "object"
}

Canonical tools/list payload:

{
  "tools": [
    {
      "description": "Read a published process definition, or an unpublished draft by draft_id.",
      "inputSchema": {
        "$id": "docket.mcp_v1.get_process",
        "additionalProperties": false,
        "not": {
          "required": [
            "version",
            "draft_id"
          ]
        },
        "properties": {
          "draft_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Draft Id"
          },
          "process_id": {
            "pattern": "^[a-z][a-z0-9_-]*$",
            "title": "Process Id",
            "type": "string"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Version"
          }
        },
        "required": [
          "process_id"
        ],
        "title": "GetProcessRequest",
        "type": "object"
      },
      "name": "get_process"
    },
    {
      "description": "Open a case once per idempotency key, pinned to the current published definition.",
      "inputSchema": {
        "$id": "docket.mcp_v1.start_case",
        "additionalProperties": false,
        "properties": {
          "facts": {
            "additionalProperties": true,
            "title": "Facts",
            "type": "object"
          },
          "key": {
            "minLength": 1,
            "title": "Key",
            "type": "string"
          },
          "process_id": {
            "pattern": "^[a-z][a-z0-9_-]*$",
            "title": "Process Id",
            "type": "string"
          },
          "thread_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Thread Id"
          }
        },
        "required": [
          "process_id",
          "key"
        ],
        "title": "StartCaseRequest",
        "type": "object"
      },
      "name": "start_case"
    },
    {
      "description": "List tenant cases newest first, optionally filtered by process, stage, open/closed status, or external thread/order reference. Paginated with an opaque cursor.",
      "inputSchema": {
        "$id": "docket.mcp_v1.list_cases",
        "additionalProperties": false,
        "properties": {
          "cursor": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Cursor"
          },
          "external_ref": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "External Ref"
          },
          "limit": {
            "default": 20,
            "maximum": 100,
            "minimum": 1,
            "title": "Limit",
            "type": "integer"
          },
          "open": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Open"
          },
          "order_ref": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Order Ref"
          },
          "overdue": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Overdue"
          },
          "process_id": {
            "anyOf": [
              {
                "pattern": "^[a-z][a-z0-9_-]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Process Id"
          },
          "stage": {
            "anyOf": [
              {
                "pattern": "^[a-z][a-z0-9-]*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Stage"
          },
          "status": {
            "anyOf": [
              {
                "enum": [
                  "open",
                  "closed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Status"
          },
          "thread_id": {
            "anyOf": [
              {
                "minLength": 1,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Thread Id"
          }
        },
        "title": "ListCasesRequest",
        "type": "object"
      },
      "name": "list_cases"
    },
    {
      "description": "Read one tenant case with its facts, stage, status, journal, explicit steps, external references and pending approval.",
      "inputSchema": {
        "$id": "docket.mcp_v1.get_case",
        "additionalProperties": false,
        "properties": {
          "case_id": {
            "minLength": 1,
            "title": "Case Id",
            "type": "string"
          }
        },
        "required": [
          "case_id"
        ],
        "title": "GetCaseRequest",
        "type": "object"
      },
      "name": "get_case"
    },
    {
      "description": "Append or explicitly overwrite facts on an open case, journaling who, when and why.",
      "inputSchema": {
        "$id": "docket.mcp_v1.add_facts",
        "additionalProperties": false,
        "properties": {
          "case_id": {
            "minLength": 1,
            "title": "Case Id",
            "type": "string"
          },
          "facts": {
            "additionalProperties": true,
            "minProperties": 1,
            "title": "Facts",
            "type": "object"
          },
          "overwrite": {
            "default": false,
            "title": "Overwrite",
            "type": "boolean"
          },
          "reason": {
            "minLength": 1,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "case_id",
          "facts",
          "reason"
        ],
        "title": "AddFactsRequest",
        "type": "object"
      },
      "name": "add_facts"
    },
    {
      "description": "Return the edges that may legally happen next for a case. A check only; it writes nothing.",
      "inputSchema": {
        "$id": "docket.mcp_v1.allowed_next_step",
        "additionalProperties": false,
        "properties": {
          "as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "As Of"
          },
          "case_id": {
            "minLength": 1,
            "title": "Case Id",
            "type": "string"
          }
        },
        "required": [
          "case_id"
        ],
        "title": "AllowedNextStepRequest",
        "type": "object"
      },
      "name": "allowed_next_step"
    },
    {
      "description": "Interpret the current decision stage's own policy and move the case along the chosen edge.",
      "inputSchema": {
        "$id": "docket.mcp_v1.decide",
        "additionalProperties": false,
        "properties": {
          "case_id": {
            "minLength": 1,
            "title": "Case Id",
            "type": "string"
          },
          "facts": {
            "additionalProperties": true,
            "title": "Facts",
            "type": "object"
          },
          "question": {
            "minLength": 1,
            "title": "Question",
            "type": "string"
          },
          "strategy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Strategy"
          }
        },
        "required": [
          "case_id",
          "question",
          "facts"
        ],
        "title": "DecideRequest",
        "type": "object"
      },
      "name": "decide"
    },
    {
      "description": "Append an auditable step event (step id, process id, actor role, timestamp, payload, tenant id) to a case.",
      "inputSchema": {
        "$id": "docket.mcp_v1.record_step",
        "additionalProperties": false,
        "properties": {
          "actor_role": {
            "minLength": 1,
            "title": "Actor Role",
            "type": "string"
          },
          "case_id": {
            "minLength": 1,
            "title": "Case Id",
            "type": "string"
          },
          "payload": {
            "additionalProperties": true,
            "title": "Payload",
            "type": "object"
          },
          "step_id": {
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
            "title": "Step Id",
            "type": "string"
          },
          "timestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Timestamp"
          }
        },
        "required": [
          "case_id",
          "step_id",
          "actor_role"
        ],
        "title": "RecordStepRequest",
        "type": "object"
      },
      "name": "record_step"
    },
    {
      "description": "Append a transition, a timer lapse, or an approved host-effect report, re-checking the move atomically.",
      "inputSchema": {
        "$defs": {
          "Outcome": {
            "additionalProperties": false,
            "properties": {
              "edge": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Edge"
              },
              "executed": {
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Executed"
              },
              "kind": {
                "enum": [
                  "transition",
                  "lapse",
                  "effect"
                ],
                "title": "Kind",
                "type": "string"
              },
              "outputs": {
                "anyOf": [
                  {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Outputs"
              },
              "result": {
                "anyOf": [
                  {
                    "additionalProperties": true,
                    "type": "object"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Result"
              },
              "token": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "default": null,
                "title": "Token"
              }
            },
            "required": [
              "kind"
            ],
            "title": "Outcome",
            "type": "object"
          }
        },
        "$id": "docket.mcp_v1.record_outcome",
        "additionalProperties": false,
        "properties": {
          "as_of": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "As Of"
          },
          "case_id": {
            "minLength": 1,
            "title": "Case Id",
            "type": "string"
          },
          "outcome": {
            "$ref": "#/$defs/Outcome"
          }
        },
        "required": [
          "case_id",
          "outcome"
        ],
        "title": "RecordOutcomeRequest",
        "type": "object"
      },
      "name": "record_outcome"
    },
    {
      "description": "Append a numeric value-metric event to a case.",
      "inputSchema": {
        "$id": "docket.mcp_v1.record_value_metric",
        "additionalProperties": false,
        "properties": {
          "case_id": {
            "minLength": 1,
            "title": "Case Id",
            "type": "string"
          },
          "metric_id": {
            "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*$",
            "title": "Metric Id",
            "type": "string"
          },
          "payload": {
            "additionalProperties": true,
            "title": "Payload",
            "type": "object"
          },
          "timestamp": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Timestamp"
          },
          "unit": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": null,
            "title": "Unit"
          },
          "value": {
            "title": "Value",
            "type": "number"
          }
        },
        "required": [
          "case_id",
          "metric_id",
          "value"
        ],
        "title": "RecordValueMetricRequest",
        "type": "object"
      },
      "name": "record_value_metric"
    }
  ]
}

Next: install, tokens, errors.