> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cognigy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List the tools an MCP server offers

> Connects to the registered MCP server and returns the tools that it currently offers. Each tool is labeled `new`, `imported`, `changed`, or `missing` against the tools that this project has imported from the server. A `new` tool also has `newSinceReview`, which is `true` only when the server added the tool since you last synced it. It is `false` for a server that has never been synced. A `new` tool with `newSinceReview: false` is a tool that you already saw and chose not to import. Nothing is cached, so every call reads from the server. Before you import any tool, every entry is `new`.



## OpenAPI

````yaml https://api-trial.cognigy.ai/swagger/openapi.json get /mcp-servers/{id}/tools
openapi: 3.0.3
info:
  contact:
    email: support@example.com
    name: API Support
  description: API for managing agents and related resources
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
  termsOfService: http://swagger.io/terms/
  title: Agents API
  version: '1.0'
servers:
  - url: https://api-trial.cognigy.ai/v1
security:
  - ApiKey: []
tags:
  - name: Agents
  - name: Brand personas
  - name: Tools
  - name: Built-in tools
  - name: Skills
  - name: Built-in skills
  - name: MCP servers
  - description: >-
      Remote agents that speak the A2A (Agent2Agent) protocol. Available only
      while FEATURE_ENABLE_A2A_TOOLS is on; every route answers 404 otherwise.
    name: A2A agents
  - name: Tool references
paths:
  /mcp-servers/{id}/tools:
    get:
      tags:
        - MCP servers
      summary: List the tools an MCP server offers
      description: >-
        Connects to the registered MCP server and returns the tools that it
        currently offers. Each tool is labeled `new`, `imported`, `changed`, or
        `missing` against the tools that this project has imported from the
        server. A `new` tool also has `newSinceReview`, which is `true` only
        when the server added the tool since you last synced it. It is `false`
        for a server that has never been synced. A `new` tool with
        `newSinceReview: false` is a tool that you already saw and chose not to
        import. Nothing is cached, so every call reads from the server. Before
        you import any tool, every entry is `new`.
      parameters:
        - description: The unique identifier for the MCP server.
          in: path
          name: id
          required: true
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/internal_mcpservers.DiscoverToolsResponse'
          description: Returns the tools that the MCP server offers.
        '400':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadRequest
          description: >-
            Invalid ID format, or the MCP server refused the request (HTTP 401
            or 403). This is a configuration error the caller must fix, and it
            deliberately isn't a 502, so no layer retries it.
        '403':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailForbidden
          description: Access denied.
        '404':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailNotFound
          description: MCP server not found.
        '500':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailInternalError
          description: Internal server error.
        '502':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadGateway
          description: >-
            The MCP server could not be reached or returned an unusable
            response.
components:
  schemas:
    internal_mcpservers.DiscoverToolsResponse:
      properties:
        items:
          description: >-
            The tools that the MCP server offers, plus the imported tools that
            it no

            longer offers.
          items:
            $ref: '#/components/schemas/internal_mcpservers.RemoteToolResponse'
          type: array
        total:
          description: The number of tools in `items`.
          example: 2
          type: integer
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadRequest:
      properties:
        code:
          description: |-
            Code is a stable machine-readable reason, present on some 400s only
            (for example "reserved_tool_name").
          example: reserved_tool_name
          type: string
        detail:
          example: request body validation failed
          type: string
        errors:
          items:
            $ref: >-
              #/components/schemas/github_com_cognigy_ai-agents-v2_internal_middleware.FieldError
          type: array
        instance:
          example: /v1/{resource}
          type: string
        status:
          example: 400
          type: integer
        title:
          example: Bad Request
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailForbidden:
      properties:
        detail:
          example: 'access denied: insufficient permissions'
          type: string
        instance:
          example: /v1/{resource}/{id}
          type: string
        status:
          example: 403
          type: integer
        title:
          example: Forbidden
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailNotFound:
      properties:
        detail:
          example: the requested resource does not exist
          type: string
        instance:
          example: /v1/{resource}/{id}
          type: string
        status:
          example: 404
          type: integer
        title:
          example: Not Found
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailInternalError:
      properties:
        detail:
          example: internal server error
          type: string
        instance:
          example: /v1/{resource}
          type: string
        status:
          example: 500
          type: integer
        title:
          example: Internal Server Error
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.ProblemDetailBadGateway:
      properties:
        detail:
          example: the MCP server did not respond
          type: string
        instance:
          example: /v1/{resource}/{id}
          type: string
        status:
          example: 502
          type: integer
        title:
          example: Bad Gateway
          type: string
        traceId:
          example: api--a4d2f126-bec4-4544-a049-7c0cf08524ed
          type: string
        type:
          example: about:blank
          type: string
      type: object
    internal_mcpservers.RemoteToolResponse:
      properties:
        description:
          description: >-
            The description of the tool. For a tool with the status `missing`,
            it's the

            description that was stored when the tool was imported.
          type: string
        inputSchema:
          additionalProperties: {}
          description: >-
            The JSON Schema of the tool's input. For a tool with the status
            `missing`,

            it's the schema that was stored when the tool was imported. If the
            tool

            takes no input, it's `{"type": "object"}`.
          type: object
        name:
          description: The name of the tool on the MCP server.
          example: search_issues
          type: string
        newSinceReview:
          description: >-
            `true` if the server added the tool since you last synced it;
            `false`

            otherwise. It's `true` only for a tool with the status `new` that is
            absent

            from the catalog recorded at the last sync. A `new` tool with

            `newSinceReview` set to `false` is one that you already saw and
            chose not to

            import. It's `false` for a server that has never been synced.
          example: false
          type: boolean
        status:
          description: >-
            How the tool compares with the tools that this project imported from
            this

            MCP server. `new` means the tool isn't imported. `imported` means
            the tool

            is imported and identical. `changed` means the description or schema
            on the

            server differs from the imported tool. `missing` means the tool is
            imported

            but the server no longer offers it.
          enum:
            - new
            - imported
            - changed
            - missing
          example: new
          type: string
        toolId:
          description: >-
            The unique identifier for the imported tool. It's present for every
            status

            except `new`.
          example: 507f1f77bcf86cd799439011
          type: string
        toolReferenceId:
          description: >-
            The `referenceId` of the imported tool. Use it to name the tool in
            the

            `remove` field of a sync request and to attach the tool to an agent.
            It's

            present for every status except `new`.
          example: 550e8400-e29b-41d4-a716-446655440000
          type: string
      type: object
    github_com_cognigy_ai-agents-v2_internal_middleware.FieldError:
      properties:
        field:
          type: string
        message:
          type: string
      type: object
  securitySchemes:
    ApiKey:
      description: '[Production] API key for production authentication'
      in: header
      name: X-API-Key
      type: apiKey

````