> ## 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.

# Approve or block tools of an MCP Gateway connector

> Set the `status` of tools of a connector (`connectorId` from `getMcpGatewayConnectors`) for the whole company: `approved` (served to the employees whose policy allows its kind), `blocked` (served to no one) or `to_review`. Each tool is named by the `name` and the `hash` read from `getMcpGatewayConnectorTools`, 500 at most: a tool whose definition changed since, or that the connector does not hold, keeps its status and is returned in `notChanged`; read the tools again before deciding. Approving a tool to review releases its new definition. Who may use which kind of tool is the policy: `setMcpGatewayConnectorPolicy`. 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/statuses
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/statuses:
    post:
      tags:
        - McpGateway
      summary: Approve or block tools of an MCP Gateway connector
      description: >-
        Set the `status` of tools of a connector (`connectorId` from
        `getMcpGatewayConnectors`) for the whole company: `approved` (served to
        the employees whose policy allows its kind), `blocked` (served to no
        one) or `to_review`. Each tool is named by the `name` and the `hash`
        read from `getMcpGatewayConnectorTools`, 500 at most: a tool whose
        definition changed since, or that the connector does not hold, keeps its
        status and is returned in `notChanged`; read the tools again before
        deciding. Approving a tool to review releases its new definition. Who
        may use which kind of tool is the policy:
        `setMcpGatewayConnectorPolicy`. 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: setMcpGatewayConnectorToolStatuses
      parameters:
        - name: connectorId
          required: true
          in: path
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SetMcpGatewayConnectorToolStatusesBody'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SetMcpGatewayConnectorToolStatusesResponse_Output
components:
  schemas:
    SetMcpGatewayConnectorToolStatusesBody:
      type: object
      properties:
        status:
          description: The status every tool named takes
          type: string
          enum:
            - approved
            - blocked
            - to_review
        tools:
          minItems: 1
          maxItems: 500
          type: array
          items:
            type: object
            properties:
              name:
                description: The `name` from `getMcpGatewayConnectorTools`
                type: string
                minLength: 1
                maxLength: 128
              hash:
                description: The `hash` from `getMcpGatewayConnectorTools`
                type: string
                pattern: ^[0-9a-f]{64}$
            required:
              - name
              - hash
      required:
        - status
        - tools
    SetMcpGatewayConnectorToolStatusesResponse_Output:
      type: object
      properties:
        changed:
          type: array
          description: The tools that took the status
          items:
            type: string
        notChanged:
          type: array
          description: >-
            The tools whose definition changed since it was read, or that the
            connector does not hold
          items:
            type: string
      required:
        - changed
        - notChanged
      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.