---
title: "List an MCP server's tools"
method: POST
path: "/orgs/{orgID}/projects/{projectID}/mcp-servers/tools"
tags: ["Configs and Profiles"]
---

# List an MCP server's tools

`POST /orgs/{orgID}/projects/{projectID}/mcp-servers/tools`

## Request

- Base URL: `https://api.omnara.com/v1`
- URL: `https://api.omnara.com/v1/orgs/{orgID}/projects/{projectID}/mcp-servers/tools`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-omnara_session` and API key in header `X-Omnara-Csrf`

Connects to a remote MCP server over streamable HTTP, negotiates the protocol version (stateless `server/discover` first, falling back to the `initialize` handshake for session-based servers), and returns the server's `tools/list` result. The request is not stored; use it to preview which tools a server exposes before referencing it from an agent config. Authentication mirrors the agent config `mcp_servers.<key>.auth` shape and resolves secrets available to the project. When the server does not speak MCP, the API responds 422 without an `auth` hint. When the server or its authorization server does not respond or fails, including a malformed MCP response or a JSON-RPC internal error from the server, the API responds 424; retrying may succeed once the server recovers. When the authorization server rejects the configured OAuth secret, the API responds 422 with an `oauth` hint so the caller can log in again. When Omnara times out reading or storing discovery state, the API responds 503. When the server rejects the connection with HTTP 401 or 403, the API probes the server's authorization requirements and responds 422 with an `auth` hint — `oauth` when the server advertises an OAuth authorization server, `bearer` when it expects a token but advertises no OAuth metadata. If that probe fails for a non-transient reason, the 422 carries no `auth` hint.

## Path parameters

- `orgID` string, required
- `projectID` string, required: Project ID (proj_...).

## Request body

- MCPServerToolsRequest
  - `url` string, uri, required: Streamable HTTP MCP endpoint.
  - `auth` union, required: How Omnara authenticates to the MCP server. Secret references must be available to the project, either owned by it or granted to it.
    - MCPServerAuthNone
      - `type` 'none', required
    - MCPServerAuthBearer
      - `type` 'bearer', required
      - `secret_id` string, required: A generic secret whose value is sent as the bearer token.
    - MCPServerAuthOAuth
      - `type` 'oauth', required
      - `secret_id` string, required: An oauth_token_set secret. An expired access token is refreshed and the refreshed token set is stored as a new secret version.
    - MCPServerAuthSigV4
      - `type` 'sigv4', required
      - `secret_id` string, required: An aws_credentials secret used to sign requests.
      - `service` string, required: AWS signing service name, for example `bedrock-agentcore`.
      - `region` string, required: AWS signing region, for example `us-east-1`.

## Response `200`

Tools advertised by the MCP server.

- MCPServerToolsResponse
  - `protocol_version` string, required: MCP protocol version negotiated with the server.
  - `server_info` MCPServerInfo, required
    - `name` string, required
    - `version` string, required
    - `title` string
    - `description` string
    - `website_url` string
  - `tools` MCPServerTool[], required
    - `name` string, required: Tool name as advertised by the server. Referenced from agent config `mcp_servers.<key>.tools.<name>`.
    - `title` string
    - `description` string
    - `input_schema` object, required: JSON Schema for the tool's arguments.
    - `output_schema` object: JSON Schema for the tool's structured result, when the server advertises one.
    - `annotations` MCPServerToolAnnotations
      - `title` string
      - `read_only_hint` boolean
      - `destructive_hint` boolean
      - `idempotent_hint` boolean
      - `open_world_hint` boolean

## Other responses

- `400`: The request was invalid.
- `401`: Authentication is required or invalid.
- `403`: The authenticated principal is not authorized.
- `404`: The requested resource was not found or is not visible.
- `409`: Another refresh of this MCP server's catalog or of its OAuth secret is in progress. Retry shortly.
- `422`: The MCP server did not speak MCP, rejected the configured authentication, or the configured auth secret could not be used. When the server or its authorization server rejected authentication, `auth` hints which auth type it expects.
- `424`: A server the request depends on, such as an MCP server or its authorization server, did not respond or failed. Retry with backoff; the failure persists until that server recovers.
- `500`: An unexpected internal server error occurred.
- `503`: The service dependency required to satisfy the request is unavailable.
- `4XX`: Any other client error. The body carries the shared Error envelope restricted to client error codes; statuses with a dedicated response above are documented precisely.
- `5XX`: Any other server error. The body carries the shared Error envelope restricted to server error codes.

## Changes

- **2026-10-05** `3d9e2cf46e07`: 205 info
  - added the optional property `current_digest` to the response with the `400` status
  - added the optional property `current_digest` to the response with the `401` status
  - added the optional property `current_digest` to the response with the `403` status
  - added the optional property `current_digest` to the response with the `404` status
  - …201 more
  - …this revision’s changelog is incomplete
- **2026-09-28** `acddeb8fc6a5`: 1 breaking, 6 warning, 10 info
  - the response property `auth` became optional for the status `422`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `400`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `401`
  - added the new `upstream_unavailable` enum value to the `code` response property for the response status `403`
  - …13 more
- **2026-09-01** `e4978b047d7a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/omnara/apis/omnara-api-2/changes/orgs/:orgID/projects/:projectID/mcp-servers/tools/post.md)

---

[API](https://skmtc.dev/omnara/apis/omnara-api-2.md) - [All operations](https://skmtc.dev/omnara/apis/omnara-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/omnara/apis/omnara-api-2/revisions/343aebb1dff1?raw)
