Projects

Retrieve hosted MCP endpoint usage for a project

What the project's hosted MCP endpoint has served over the last `days` (default 30, max 90): tool calls, calls that returned an error, calls turned away by the rate limit, mean upstream latency, and a per-tool breakdown. The same numbers the console shows next to the endpoint URL. Zeroes when the endpoint is off or unused.

GET
/projects/{project_id}/mcp_usage

What the project's hosted MCP endpoint has served over the last days (default 30, max 90): tool calls, calls that returned an error, calls turned away by the rate limit, mean upstream latency, and a per-tool breakdown. The same numbers the console shows next to the endpoint URL. Zeroes when the endpoint is off or unused.

AuthorizationBearer <token>

API key from the console, ak_....

In: header

Path Parameters

project_id*string

Query Parameters

days?integer

Window in days, 1 to 90.

Range1 <= value <= 90
Default30

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/projects/string/mcp_usage"
{  "object": "mcp_usage",  "project_id": "string",  "mcp_url": "string",  "days": 0,  "calls": 0,  "errors": 0,  "rate_limited": 0,  "avg_duration_ms": 0,  "by_tool": [    {      "tool": "string",      "calls": 0,      "errors": 0    }  ]}