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

# List the tools of an MCP Gateway connector again

> Ask the server of a connector (`connectorId` from `getMcpGatewayConnectors`) for its tools, store them as its snapshot and return what changed: `tools.added`, `changed`, `unchanged`, `removed`, and the `skipped` ones with their reason. A `shared` connector is listed with its shared account, a `per_employee` one with the accounts of the employees connected to it: no credential is taken here. A new tool takes the status the connector's `toolReview` gives it; a changed one goes back to review or keeps its status as it says. Read the tools with `getMcpGatewayConnectorTools`. A 409 `UpstreamSignInRequiredError` means the server asks to sign in: the account is connected in the cockpit; a 502 or a 504 that the server did not answer. A 404 means the company has no such connector. The MCP Gateway serves employees, through their one Primo connection, the tools of the MCP servers (connectors) IT added. No credential is ever sent or returned here: a shared account is connected, and the address or authentication of a custom connector changed, in the cockpit, at `cockpitUrl`. A company without the MCP Gateway gets a 403 `McpGatewayNotEnabledError`; a 503 means Primo could not check it, try again in a minute.

Key: WriteScope: Company


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /mcp-gateway/connectors/{connectorId}/tools/refresh
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /mcp-gateway/connectors/{connectorId}/tools/refresh:
    post:
      tags:
        - McpGateway
      summary: List the tools of an MCP Gateway connector again
      description: >-
        Ask the server of a connector (`connectorId` from
        `getMcpGatewayConnectors`) for its tools, store them as its snapshot and
        return what changed: `tools.added`, `changed`, `unchanged`, `removed`,
        and the `skipped` ones with their reason. A `shared` connector is listed
        with its shared account, a `per_employee` one with the accounts of the
        employees connected to it: no credential is taken here. A new tool takes
        the status the connector's `toolReview` gives it; a changed one goes
        back to review or keeps its status as it says. Read the tools with
        `getMcpGatewayConnectorTools`. A 409 `UpstreamSignInRequiredError` means
        the server asks to sign in: the account is connected in the cockpit; a
        502 or a 504 that the server did not answer. A 404 means the company has
        no such connector. The MCP Gateway serves employees, through their one
        Primo connection, the tools of the MCP servers (connectors) IT added. No
        credential is ever sent or returned here: a shared account is connected,
        and the address or authentication of a custom connector changed, in the
        cockpit, at `cockpitUrl`. A company without the MCP Gateway gets a 403
        `McpGatewayNotEnabledError`; a 503 means Primo could not check it, try
        again in a minute.
      operationId: refreshMcpGatewayConnectorTools
      parameters:
        - name: connectorId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/RefreshMcpGatewayConnectorToolsResponse_Output
components:
  schemas:
    RefreshMcpGatewayConnectorToolsResponse_Output:
      type: object
      properties:
        server:
          description: What the server says it is, when it says
          anyOf:
            - type: object
              properties:
                name:
                  type: string
                version:
                  type: string
              required:
                - name
                - version
              additionalProperties: false
            - type: 'null'
        refreshedAt:
          type: string
        tools:
          type: object
          properties:
            total:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            added:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            changed:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            unchanged:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            removed:
              type: integer
              minimum: 0
              maximum: 9007199254740991
            skipped:
              description: >-
                The tools listed whose definition cannot be stored, with the
                reason
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                  reason:
                    type: string
                required:
                  - name
                  - reason
                additionalProperties: false
          required:
            - total
            - added
            - changed
            - unchanged
            - removed
            - skipped
          additionalProperties: false
      required:
        - server
        - refreshedAt
        - tools
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.