Skip to main content
POST
SearchWithToolCount

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Authorization
string
header
required

This API uses OAuth2 with the Client Credential flow. Client Credentials must be sent in the BODY, not the headers. For an example of how to implement this, refer to the c1TokenSource.Token() function.

Path Parameters

app_id
string
required

App identifier (required).

Body

application/json

MCPServerServiceSearchWithToolCountRequest searches MCP servers for an app with filters and returns per-server tool counts by state.

includeLastCalledAt
boolean

When true, the server populates MCPServerView.last_called_at on each returned row by querying TSDB for the most recent mcp_tool_calls raw emit time per (app_id, connector_id). Costs one Dynamo Limit(1) read per row; callers that don't render the "Last used" value should leave false.

pageSize
integer<int32>

Page size (max 100).

pageToken
string

Page token for pagination.

query
string

Optional text query matched against display_name.

toolState
enum<string>

Which tool state to return count for on each server.

Available options:
MCP_TOOL_STATE_UNSPECIFIED,
MCP_TOOL_STATE_PENDING_REVIEW,
MCP_TOOL_STATE_APPROVED,
MCP_TOOL_STATE_DISABLED,
MCP_TOOL_STATE_REMOVED

Response

200 - application/json

MCPServerServiceSearchWithToolCountResponse returns matching MCP servers with tool counts.

MCPServerServiceSearchWithToolCountResponse returns matching MCP servers with tool counts.

list
Mcp Server Search With Tool Count Result · object[] | null

Matching servers with counts.

nextPageToken
string

Token for next page.