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

# List tools exposed by an External MCP Connection

> Admin-only. Uses the connection credential owned by Den to read its live MCP tools/list catalog. Credentials and tool calls are never returned.



## OpenAPI

````yaml /openapi.json get /v1/mcp-connections/{connectionId}/tools
openapi: 3.1.0
info:
  title: Den API
  description: >-
    OpenAPI spec for the Den control plane API.


    Authentication:

    - Use `Authorization: Bearer <session-token>` for user-authenticated routes
    that require a Den session.

    - Use `x-api-key: <den-api-key>` for API-key-authenticated routes that
    accept organization API keys.

    - Public routes like health and documentation do not require authentication.


    Swagger tip: use the security schemes in the Authorize dialog to set either
    `bearerAuth` or `denApiKey` before trying protected endpoints.
  version: dev
servers: []
security: []
tags:
  - name: System
    description: Service health and operational routes.
  - name: Organizations
    description: Top-level organization creation and context routes.
  - name: Invitations
    description: Invitation preview, acceptance, creation, and cancellation routes.
  - name: API Keys
    description: Organization API key management routes.
  - name: SCIM
    description: Organization SCIM connector management routes.
  - name: SSO
    description: Organization single sign-on connector management routes.
  - name: Members
    description: Organization member management routes.
  - name: Roles
    description: Organization custom role management routes.
  - name: Teams
    description: Organization team management routes.
  - name: Templates
    description: Organization shared template routes.
  - name: LLM Providers
    description: Organization LLM provider catalog, configuration, and access routes.
  - name: Skills
    description: Organization skill authoring and sharing routes.
  - name: Skill Hubs
    description: Organization skill hub management and access routes.
  - name: Workers
    description: Worker lifecycle, billing, and runtime routes.
  - name: Worker Runtime
    description: Worker runtime inspection and upgrade routes.
  - name: Worker Activity
    description: Worker heartbeat and activity reporting routes.
  - name: Telemetry
    description: Telemetry event ingestion and adoption analytics.
  - name: Admin
    description: Administrative reporting routes.
  - name: Users
    description: Current user and membership routes.
  - name: Bootstrap
    description: Agent-first provisional workspace setup routes.
paths:
  /v1/mcp-connections/{connectionId}/tools:
    get:
      tags:
        - Capability Sources
      summary: List tools exposed by an External MCP Connection
      description: >-
        Admin-only. Uses the connection credential owned by Den to read its live
        MCP tools/list catalog. Credentials and tool calls are never returned.
      operationId: getV1McpConnectionsByConnectionIdTools
      parameters:
        - in: path
          name: connectionId
          schema:
            format: typeid
            type: string
            minLength: 30
            maxLength: 30
            pattern: ^emc_.*
          required: true
          description: Den TypeID with 'emc_' prefix and a 26-character base32 suffix.
      responses:
        '200':
          description: External MCP tool catalog.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalMcpConnectionToolListResponse'
        '401':
          description: The caller must be signed in.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedError'
        '403':
          description: Only workspace owners and admins can inspect MCP tools.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForbiddenError'
        '404':
          description: Unknown connection.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalMcpConnectionNotFoundError'
        '409':
          description: The connection has no usable credential for this member.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalMcpConnectionNotReadyError'
        '502':
          description: The upstream MCP tool catalog could not be read.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalMcpConnectionToolListFailedError'
components:
  schemas:
    ExternalMcpConnectionToolListResponse:
      type: object
      properties:
        tools:
          type: array
          items:
            $ref: '#/components/schemas/ExternalMcpConnectionTool'
      required:
        - tools
    UnauthorizedError:
      type: object
      properties:
        error:
          type: string
          const: unauthorized
      required:
        - error
    ForbiddenError:
      type: object
      properties:
        error:
          type: string
          enum:
            - forbidden
            - reauth
        reason:
          type: string
        message:
          type: string
      required:
        - error
    ExternalMcpConnectionNotFoundError:
      type: object
      properties:
        error:
          type: string
          const: connection_not_found
        message:
          type: string
      required:
        - error
        - message
    ExternalMcpConnectionNotReadyError:
      type: object
      properties:
        error:
          type: string
          const: connection_not_ready
        message:
          type: string
      required:
        - error
        - message
    ExternalMcpConnectionToolListFailedError:
      type: object
      properties:
        error:
          type: string
          const: tool_catalog_failed
        message:
          type: string
        diagnostic:
          $ref: '#/components/schemas/ExternalMcpDiagnostic'
      required:
        - error
        - message
        - diagnostic
    ExternalMcpConnectionTool:
      type: object
      properties:
        name:
          type: string
        title:
          type: string
        description:
          type: string
        inputSchema:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        outputSchema:
          type: object
          propertyNames:
            type: string
          additionalProperties: {}
        annotations:
          $ref: '#/components/schemas/ExternalMcpConnectionToolAnnotations'
      required:
        - name
        - inputSchema
    ExternalMcpDiagnostic:
      type: object
      properties:
        referenceId:
          type: string
        phase:
          type: string
          enum:
            - CONFIGURATION
            - NETWORK_DNS
            - NETWORK_TCP
            - NETWORK_TLS
            - HTTP_ROUTING
            - AUTH_RESOURCE_DISCOVERY
            - AUTH_ISSUER_DISCOVERY
            - AUTH_CLIENT_REGISTRATION
            - AUTH_USER_OR_WORKLOAD
            - AUTH_TOKEN_ACQUISITION
            - AUTH_RESOURCE_VALIDATION
            - MCP_TRANSPORT
            - MCP_VERSION
            - MCP_INITIALIZE
            - MCP_INITIALIZED
            - MCP_TOOL_DISCOVERY
            - MCP_TOOL_EXECUTION
            - PROVIDER_AUTHORIZATION
            - PROVIDER_EXECUTION
            - CONTINUITY_REFRESH
            - CONTINUITY_SESSION
            - SHUTDOWN
        category:
          type: string
        code:
          type: string
        highestPassed:
          type: string
          enum:
            - configured
            - reachable
            - authorized
            - protocol_ready
            - catalog_ready
            - operation_ready
        retryable:
          type: boolean
        actionOwner:
          type: string
          enum:
            - openwork
            - network_admin
            - provider_admin
            - organization_admin
            - member
        operatorAction:
          type: string
        message:
          type: string
        httpStatus:
          type: integer
          minimum: 100
          maximum: 599
        operationPhase:
          type: string
          enum:
            - CONFIGURATION
            - NETWORK_DNS
            - NETWORK_TCP
            - NETWORK_TLS
            - HTTP_ROUTING
            - AUTH_RESOURCE_DISCOVERY
            - AUTH_ISSUER_DISCOVERY
            - AUTH_CLIENT_REGISTRATION
            - AUTH_USER_OR_WORKLOAD
            - AUTH_TOKEN_ACQUISITION
            - AUTH_RESOURCE_VALIDATION
            - MCP_TRANSPORT
            - MCP_VERSION
            - MCP_INITIALIZE
            - MCP_INITIALIZED
            - MCP_TOOL_DISCOVERY
            - MCP_TOOL_EXECUTION
            - PROVIDER_AUTHORIZATION
            - PROVIDER_EXECUTION
            - CONTINUITY_REFRESH
            - CONTINUITY_SESSION
            - SHUTDOWN
        outbound:
          type: object
          properties:
            origin:
              type: string
            pathHash:
              type: string
          required:
            - origin
            - pathHash
        providerRequestId:
          type: string
        jsonRpcCode:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
        - referenceId
        - phase
        - category
        - code
        - highestPassed
        - retryable
        - actionOwner
        - operatorAction
        - message
    ExternalMcpConnectionToolAnnotations:
      type: object
      properties:
        title:
          type: string
        readOnlyHint:
          type: boolean
        destructiveHint:
          type: boolean
        idempotentHint:
          type: boolean
        openWorldHint:
          type: boolean

````