Skip to content

MCP tool call analytics for a project

GET
/projects/{id}/mcp-usage
curl --request GET \
--url 'https://example.com/api/projects/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/mcp-usage?period=24h' \
--header 'Authorization: Bearer <token>'

Returns per-tool usage analytics (call counts, error rates, latency) scoped to the project.

id
required
string format: uuid

Project UUID

period
string
default: 7d
Allowed values: 24h 7d 30d

MCP usage analytics

Media type application/json
object

Invalid request

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number

Not authenticated

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
reconnect

True if re-linking GitHub may fix the issue

boolean

Forbidden

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number