Skip to Content
MCP servers

Introspect MCP server tools

Permissionmcp-servers:updateRetriesIdempotency-Key requiredAuthentication
POST
/mcp-servers/{id}/introspect

Connects from Kejue Voice using the stored authentication configuration, performs MCP initialize and paginated tools/list, sanitizes tool descriptions, computes stable hashes, and records the observed state. The first successful introspection establishes pins; later drift remains blocked until approved. Upstream bodies and credentials are never copied into errors.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Use a Voice API key or connected-app OAuth access token. Authentication.

Path Parameters

id*string
Formatuuid

Header Parameters

If-Match?string

Optional strong ETag (or *) from a prior response. A stale tag returns 412 without changing the resource.

Idempotency-Key*string

Required. Reuse the same key to retry this write safely. Retries and idempotency.

Match^[A-Za-z0-9!#$%&'*+.^_`|~-]+$
Length1 <= length <= 255

Response Body

Sanitized tool inventory and drift comparison.

application/json
  1. response
id*string
Formatuuid
slug*string
tools*array<>
Itemsitems <= 500
removed_tools*array<>
Itemsitems <= 500
has_drift*boolean
pinned_tool_hashes*

Map of remote MCP tool name to SHA-256 of the sanitized description and input schema.

observed_tool_hashes*

Map of remote MCP tool name to SHA-256 of the sanitized description and input schema.

last_introspected_at*string
Formatdate-time
last_introspection_error*|

Always null after a successful introspection.

Example Request
curl -X POST 'https://api.kejue.co/v1/mcp-servers/497f6eca-6276-4993-bfeb-53cbbbba6f08/introspect' \  -H 'Idempotency-Key: string'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "slug": "string",  "tools": [    {      "name": "string",      "description": "string",      "input_schema": {},      "hash": "string",      "allowed": true,      "pinned_hash": "string",      "drift_status": "new",      "blocked_by_hash": true    }  ],  "removed_tools": [    "string"  ],  "has_drift": true,  "pinned_tool_hashes": {    "property1": "string",    "property2": "string"  },  "observed_tool_hashes": {    "property1": "string",    "property2": "string"  },  "last_introspected_at": "2019-08-24T14:15:22Z",  "last_introspection_error": "string"}