For the complete documentation index, see llms.txt. This page is also available as Markdown.

getMcpToolsStats

Get per-tool stats: total users and total calls.

Examples

query GetMcpToolsStats($input: McpStatsInput) {
  getMcpToolsStats(input: $input) {
    items {
      toolName
      totalUsers
      totalCalls
    }
    total
  }
}

Variables

This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.

{
  "input": {
    "identifier": "https://mcp.example.com/sse",
    "limit": 100,
    "offset": 0
  }
}
curl -X POST \
https://api.cloud.ox.security/api/apollo-gateway \
-H 'Content-Type: application/json' \
-H 'Authorization: YOUR_API_TOKEN' \
-d '{
 "query": "query GetMcpToolsStats($input: McpStatsInput) { getMcpToolsStats(input: $input) { items { toolName totalUsers totalCalls } total } }",
 "variables": {
    "input": {
      "identifier": "https://mcp.example.com/sse",
      "limit": 100,
      "offset": 0
    }
  }
}'

Arguments

You can use the following argument(s) to customize your getMcpToolsStats query.

Argument
Description
Supported fields

identifier String limit Int offset Int

Fields

Return type: McpToolsStatsResponse!

You can use the following field(s) to specify what information your getMcpToolsStats query will return. Please note that some fields may have their own subfields.

Field
Description
Supported fields

List of MCP tool usage statistics matching the query criteria

toolName String! totalUsers Int! totalCalls Int!

Deprecated: Use items

toolName String! totalUsers Int! totalCalls Int!

total Int!

Total number of MCP tools matching the query criteria

Last updated