List the tools the caller can call outside a run
Every tool a call outside a run reaches in this space, for this caller: each integration's api_call tools (called through /api/credential-proxy/proxy) whose auth has a connection the caller reaches, and, for an integration backed by a remote MCP server, the typed tools that server offers (called through /api/credential-proxy/tools/call): the integration catalog's selection (its tools_policy keys, or every tool the server lists when allow_undeclared_tools is true), less hidden_tools and the connect tool, described by the server's tools/list. An integration declaring no auths (AFPS §7.2) is listed with its typed tools and connection_ids: [], never in not_ready: its server is reached directly, nothing injected, its catalog cached per organization, integration version and server URL, and the listing journaled as one call with no connection. Every other server is listed with the connection the proxy selects (or the connection_id named, when it is one of that integration's; when the selection asks for a choice, the first of the caller's OWN connections it accepts: a connection another member shared serves only when named or designated by an org default), cached per connection, integration version and server URL for 5 minutes, and journaled as one call of the connection when the listing reaches the server, its handshake refused included. Reaching such a server sends the connection's credential: a 401 goes through the proxy's forced refresh, and a server refusing the credential can flag the connection needs_reconnection, as a call does. A catalog keeps at most 500 tools, and at most 512 KiB of descriptors. The listing waits 20 s for the servers in all (5 s when it resolves a name), and no longer than the request: a catalog not read by then is listed as one whose server could not be listed, and read on for the next listing; once that wait is over, no further server is contacted. connections lists the connections the tools reach, each once, as GET /api/credential-proxy/connections lists them; each tool names its own (connection_ids). not_ready lists the integrations active in the space the caller has no usable connection of and that offer a tool outside a run (an api_call tool, or a remote server's), with the verdict of a call naming none; with X-Appstrate-Connect-Offers: 1, a refusal item a connect flow clears carries a connect_url. unlisted lists the remote integrations whose server the proxy refused to list (connection selection, permission, authorized_uris, the egress guard, an unrenderable URL) or whose server refused the connection's credential (upstream_credential_rejected) or, declaring no auths, asked for one (bad_gateway), each with that refusal; resolving a name only the unread catalog could map (under allow_undeclared_tools, neither a declared tool's nor an upstream name exposed as itself, which one ending in _ and 8 hex digits never is) adds the integration with 503 tool_catalog_unavailable: the catalog could not be read (listing_failure, when known: the proxy's problem code or timeout), nothing was sent, and a later listing may read it. Read with the access rule of /api/credential-proxy/proxy without X-Run-Id, against each integration's latest published version. Requires credential-proxy:call-own or credential-proxy:call. A space whose credential_proxy_open is false answers 403 credential_proxy_closed, unauthenticated integrations included.
/api/credential-proxy/toolsCookie session from Better Auth. Requires X-Org-Id header for org-scoped routes.
In: cookie
Query Parameters
Lists the tools of this integration alone (@scope/name); 404 when it is not active in the space.
1 <= lengthResolves the tool of this name alone, waiting 5 s at most for its server: an api_call tool lists no server, and only the remote integration whose namespace starts the name is listed. not_ready is then empty.
1 <= lengthThe connection the server of the integration it belongs to is listed with, as X-Connection-Id names one on /api/credential-proxy/proxy.
uuidlive (the default) reads a remote catalog the cache does not hold from its server, as described above. cached reads the cache alone: a catalog not in it is not listed, so no server is contacted, no credential sent and no call journaled; its declared tools are listed catalog_unreadable, and the integration in uncached.
"live" | "cached"Header Parameters
Organization ID. Required for cookie auth. Not needed for API key auth (org resolved from key).
uuidSpace ID. Required for space-scoped routes (agents, runs, schedules, and space-scoped module routes). Not needed for API key auth (space resolved from key).
Opt-in: when set to 1 and the actor holds integrations:connect, each actor-actionable item of a 409 missing_integration_connection, each such item of a launch response's warnings, each such item of a /api/credential-proxy/tools/call connection-selection 409, and each such refusal of a not_ready entry of GET /api/credential-proxy/tools also carries a ready-to-open connect_url (a single-use bearer link that connects AS the actor). Set only by clients that render the connect card or hand the link to that human. An Idempotency-Key replay returns the warnings without it.
"1"curl -X GET "https://your-instance/api/credential-proxy/tools"{
"tools": [
{
"name": "string",
"kind": "api_call",
"integration_package_id": "string",
"description": "string",
"auth_key": "string",
"connection_required": true,
"remote_name": "string",
"title": "string",
"input_schema": {},
"output_schema": {},
"schema_reduced": [
"output_schema"
],
"catalog_unreadable": true,
"connection_ids": [
"9093a418-aa3e-41a3-ae26-08ea1b46e535"
],
"missing_scopes": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}
],
"integrations": [
{
"integration_package_id": "string",
"display_name": "string",
"icon": "string"
}
],
"connections": [
{
"integration_package_id": "string",
"connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",
"label": "string",
"owned_by_actor": true,
"auth_key": "string",
"scopes_granted": [
"string"
],
"authorized_uris": [
"string"
],
"allow_all_uris": true,
"needs_reconnection": true,
"call_permission_required": true
}
],
"not_ready": [
{
"integration_package_id": "string",
"display_name": "string",
"proxy_connection": {
"status": "ready",
"imposed": true
},
"refusal": {
"field": "string",
"code": "string",
"message": "string",
"title": "string",
"line": 1,
"column": 1,
"candidate_connections": [
{
"id": "string",
"label": "string",
"account_id": "string",
"owned_by_actor": true,
"needs_reconnection": true,
"scopes_granted": [
"string"
],
"missing_scopes": [
"string"
]
}
],
"connection_id": "string",
"missing_scopes": [
"string"
],
"remedy": "new_connection",
"owned_by_actor": true,
"required_scopes": [
"string"
],
"auth_key": "string",
"required_auth_key": "string",
"available_auth_keys": [
"string"
],
"source": "admin_pin",
"connect_url": "http://example.com",
"expiresAt": "2019-08-24T14:15:22Z",
"packageId": "string"
}
}
],
"unlisted": [
{
"integration_package_id": "string",
"refusal": {
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"param": "string",
"retry_after": 0,
"login_refusal": "grant",
"integration_diagnostic": "string",
"errors": [
{
"field": "string",
"code": "string",
"message": "string",
"title": "string",
"line": 1,
"column": 1,
"candidate_connections": [
{
"id": "string",
"label": "string",
"account_id": "string",
"owned_by_actor": true,
"needs_reconnection": true,
"scopes_granted": [
"string"
],
"missing_scopes": [
"string"
]
}
],
"connection_id": "string",
"missing_scopes": [
"string"
],
"remedy": "new_connection",
"owned_by_actor": true,
"required_scopes": [
"string"
],
"auth_key": "string",
"required_auth_key": "string",
"available_auth_keys": [
"string"
],
"source": "admin_pin",
"connect_url": "http://example.com",
"expiresAt": "2019-08-24T14:15:22Z",
"packageId": "string"
}
],
"upstream_status": 401,
"required_scopes": [
"string"
],
"connection_id": "d3547de1-d1f2-4344-b4c2-17169b7526f9",
"credential": {
"status": "in_use",
"cause": "string",
"detail": "string",
"failures": 0,
"max_failures": 0
},
"mcp_error": {
"code": 0,
"message": "string"
},
"listing_failure": "string"
}
}
],
"truncated_catalogs": [
{
"integration_package_id": "string",
"listed_tools": 0
}
],
"uncached": [
"string"
],
"unreachable": [
{
"integration_package_id": "string",
"listing_failure": "string"
}
],
"pending_approval": [
{
"integration_package_id": "string",
"tools": 1
}
],
"unpublished": [
"string"
]
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"param": "string",
"retry_after": 0,
"login_refusal": "grant",
"integration_diagnostic": "string",
"errors": [
{
"field": "string",
"code": "string",
"message": "string",
"title": "string",
"line": 1,
"column": 1,
"candidate_connections": [
{
"id": "string",
"label": "string",
"account_id": "string",
"owned_by_actor": true,
"needs_reconnection": true,
"scopes_granted": [
"string"
],
"missing_scopes": [
"string"
]
}
],
"connection_id": "string",
"missing_scopes": [
"string"
],
"remedy": "new_connection",
"owned_by_actor": true,
"required_scopes": [
"string"
],
"auth_key": "string",
"required_auth_key": "string",
"available_auth_keys": [
"string"
],
"source": "admin_pin",
"connect_url": "http://example.com",
"expiresAt": "2019-08-24T14:15:22Z",
"packageId": "string"
}
]
}{
"type": "https://docs.appstrate.dev/errors/unauthorized",
"title": "Unauthorized",
"status": 401,
"detail": "Invalid or missing session",
"code": "unauthorized",
"request_id": "req_abc123"
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"param": "string",
"retry_after": 0,
"login_refusal": "grant",
"integration_diagnostic": "string",
"errors": [
{
"field": "string",
"code": "string",
"message": "string",
"title": "string",
"line": 1,
"column": 1,
"candidate_connections": [
{
"id": "string",
"label": "string",
"account_id": "string",
"owned_by_actor": true,
"needs_reconnection": true,
"scopes_granted": [
"string"
],
"missing_scopes": [
"string"
]
}
],
"connection_id": "string",
"missing_scopes": [
"string"
],
"remedy": "new_connection",
"owned_by_actor": true,
"required_scopes": [
"string"
],
"auth_key": "string",
"required_auth_key": "string",
"available_auth_keys": [
"string"
],
"source": "admin_pin",
"connect_url": "http://example.com",
"expiresAt": "2019-08-24T14:15:22Z",
"packageId": "string"
}
]
}{
"type": "http://example.com",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string",
"code": "string",
"request_id": "string",
"param": "string",
"retry_after": 0,
"login_refusal": "grant",
"integration_diagnostic": "string",
"errors": [
{
"field": "string",
"code": "string",
"message": "string",
"title": "string",
"line": 1,
"column": 1,
"candidate_connections": [
{
"id": "string",
"label": "string",
"account_id": "string",
"owned_by_actor": true,
"needs_reconnection": true,
"scopes_granted": [
"string"
],
"missing_scopes": [
"string"
]
}
],
"connection_id": "string",
"missing_scopes": [
"string"
],
"remedy": "new_connection",
"owned_by_actor": true,
"required_scopes": [
"string"
],
"auth_key": "string",
"required_auth_key": "string",
"available_auth_keys": [
"string"
],
"source": "admin_pin",
"connect_url": "http://example.com",
"expiresAt": "2019-08-24T14:15:22Z",
"packageId": "string"
}
]
}{
"type": "https://docs.appstrate.dev/errors/rate-limited",
"title": "Rate Limited",
"status": 429,
"detail": "Too many requests. Please try again shortly.",
"code": "rate_limited",
"request_id": "req_abc123",
"retry_after": 30
}