Record an MCP tool invocation
Append-only telemetry ingest for MCP tool calls. The Frase MCP server (npm/stdio build) posts one row here per tool invocation; the in-app HTTP MCP surface writes the same row directly without the round trip. Rows land in mcp_tool_invocations, scoped to the authenticated organization, and are swept by the daily retention job.
No scope is required beyond a valid API key - any key for the organization may write its own telemetry. Only a hash and the size of the tool input are stored, never the input itself, so no customer content reaches this table.
A dedicated per-key rate limit of 100 requests/minute sits on top of the shared tier bucket (keyed on organization plus user, falling back to the key id), so one buggy client cannot drive unbounded row growth between retention sweeps.
Clients should treat this call as fire-and-forget: telemetry must never break a tool call. Every field except error_code is required, and unknown fields are ignored.
Request
- Base URL: https://next.frase.io/api/v1
- URL: https://next.frase.io/api/v1/audit/mcp-tool
- Auth: API key in header X-API-KEY
Request body
Response
Invocation recorded
Changes
No recorded changes to this operation across all 1 revision of this API.