MCP Calls API

Query and analyze tool call logs from your MCP proxy servers. Every call that passes through the proxy is logged with full request/response data.

Base URL

https://api.hookwatch.dev/v1/mcp/calls

The MCP Call Object

Json

Properties

FieldTypeDescription
idstringUUID identifier for the call
mcp_server_idstringID of the MCP server this call was proxied through
methodstringJSON-RPC method (tools/call, tools/list, initialize, etc.)
tool_namestringExtracted tool name from tools/call params. Empty for other methods.
request_bodystringFull JSON-RPC request body as string
response_bodystringFull JSON-RPC response body from upstream
statusstringCall status: success, error, or timeout
status_codeintHTTP status code from the upstream MCP server
error_messagestringError message from JSON-RPC error or HTTP error. Empty on success.
duration_msintTotal round-trip time in milliseconds
source_ipstringIP address of the calling client
headersobjectHTTP request headers from the client
created_atstringISO 8601 timestamp of the call

List Calls

Retrieve MCP calls with optional filters. Results are paginated and ordered by creation time (newest first).

GET /v1/mcp/calls

All filter parameters are optional and can be combined.

Query Parameters

FieldTypeDescription
server_idstringFilter by MCP server ID
methodstringFilter by JSON-RPC method (e.g., tools/call)
tool_namestringFilter by tool name
statusstringFilter by status: success, error, timeout
fromstringStart of date range (ISO 8601)
tostringEnd of date range (ISO 8601)
limitintNumber of results to return (default: 50)
offsetintNumber of results to skip (default: 0)

Example

curl

Response

Json

Pagination

Use limit and offset for pagination. The default limit is 50. Increase offset to fetch subsequent pages.

Get Call

Retrieve a specific call by ID, including full request and response bodies.

GET /v1/mcp/calls/:id

Path Parameters

FieldTypeDescription
idstringThe MCP call UUID

Count Calls

Get a count of calls matching the given filters. Useful for dashboards and analytics.

GET /v1/mcp/calls/count

Accepts the same filter parameters as the List endpoint (except limit and offset).

Example

curl

Response

Json

Metrics

Retrieve aggregated metrics for MCP calls over a configurable time range.

GET /v1/mcp/calls/metrics

Query Parameters

FieldTypeDescription
daysintTime range in days (default: 30)
server_idstringFilter metrics by MCP server ID

Example

curl

Delete Call

Permanently delete a specific call log.

DELETE /v1/mcp/calls/:id

Example

curl

Warning

This action is irreversible. The call log will be permanently deleted.

Error Codes

StatusErrorDescription
401UnauthorizedInvalid or missing access token
404Not FoundMCP call not found

Related