pydo.gateway_tools.list()

Generated on 13 Nov 2026 from pydo version v0.46.0

Usage

client.gateway_tools.list(
    x_session_id=None,
    x_endpoint_id=None,
    x_actor_id=None,
    page_size=20,
    page_token=None,
    if_none_match=None,
)
Returns JSON Raises HttpResponseError

Description

Lists the catalog tools that a session can call, ordered by name. The list applies the session’s tools selection and omits tools that its policy always denies.

Each page includes an ETag header. Send it in If-None-Match to receive 304 Not Modified while the page is unchanged.

Parameters

x_session_id string optional

The session to act in: the UUID at the end of the session's sessionUrn and mcpUrl. For a pinned endpoint version, use the session UUID at the end of its mcp_url, not the composite version ID. The session must belong to the authenticated user and team. Send either this header or X-Endpoint-Id, not both; both returns 400. With neither, the request uses your default endpoint when default endpoints are enabled for your team, and otherwise returns 403.

x_endpoint_id string optional

The endpoint to act in, as a lowercase endpoint UUID. The request uses the endpoint's current head version, which the response reports in X-Action-Gateway-Endpoint-Version. The endpoint must belong to the authenticated user and team; an unknown or inaccessible endpoint returns 404. Send either this header or X-Session-Id, not both. A malformed value or more than one value returns 400.

x_actor_id string optional

The actor you expect the session or endpoint to be bound to. It does not select an actor or connections; those come from the session's or endpoint's actor_id. When sent, it must equal that binding. A different value, including any value for a target with no actor, returns 403 with the message "The session is not bound to the request's actor."

page_size integer optional

The number of tools returned per page, from 1 to 100. Defaults to 20 when omitted. Other values are rejected with 400.

Min: 1

Max: 100

Default: 20

page_token string optional

The next_page_token from the previous response. A token is only valid for the session that received it.

if_none_match string optional

The ETag from a previous response for the same page. If the page is unchanged, the response is 304 Not Modified with no body.

Response Example

Show Response Example
{
  "version": "v1",
  "tools": [
    {
      "name": "exa_web_search",
      "title": "Web Search",
      "description": "Search the public web and return ranked results with titles and URLs.",
      "inputSchema": {
        "type": "object",
        "required": [
          "query"
        ],
        "properties": {
          "query": {
            "type": "string"
          },
          "max_results": {
            "type": "integer"
          }
        }
      },
      "annotations": {
        "title": "Web Search",
        "readOnlyHint": true,
        "openWorldHint": true
      },
      "_meta": {
        "version": "1",
        "parallelizable": true,
        "streaming_safe": false
      },
      "version": "1",
      "parallelizable": true,
      "streamingSafe": false
    }
  ],
  "next_page_token": "eyJ2IjoxLCJhZnRlciI6ImV4YV93ZWJfc2VhcmNoIiwiZnAiOiI5YzFlNWI3YTNkMmY0ZTYwIn0"
}

More Information

See /tools in the API reference for additional detail on responses, headers, parameters, and more.

We can't find any results for your search.

Try using different keywords or simplifying your search terms.