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

# Get Mcp Server Tools

> Get tools available from an MCP server.

Args:
    agent_id: The ID of the agent
    server_id: The ID of the MCP server
    user_id: The user ID of the current user
    organization_id: The organization ID of the current user

Returns:
    List of available tools

Raises:
    HTTPException: If server not found or access denied



## OpenAPI

````yaml get /api/v1/mcp/agents/{agent_id}/servers/{server_id}/tools
openapi: 3.1.0
info:
  title: ThenaAgentStudio
  description: |2-

        ThenaCrew AI CRM Renewal System

        An intelligent platform to automate customer renewal insights and communications through multi-agent workflows.

        Key Features:
        * AI-powered renewal analysis
        * Personalized communication generation
        * Automated opportunity tracking
        * Multi-agent workflow orchestration
        
  version: 1.0.0
servers:
  - url: https://agent-studio.thena.ai
    description: Production server
  - url: http://localhost:8008
    description: Local development server
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Agent management endpoints
  - name: Chat
    description: Chat and messaging endpoints
paths:
  /api/v1/mcp/agents/{agent_id}/servers/{server_id}/tools:
    get:
      tags:
        - mcp-servers
      summary: Get Mcp Server Tools
      description: |-
        Get tools available from an MCP server.

        Args:
            agent_id: The ID of the agent
            server_id: The ID of the MCP server
            user_id: The user ID of the current user
            organization_id: The organization ID of the current user

        Returns:
            List of available tools

        Raises:
            HTTPException: If server not found or access denied
      operationId: >-
        get_mcp_server_tools_api_v1_mcp_agents__agent_id__servers__server_id__tools_get
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: server_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Server Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/AgentTool'
                title: >-
                  Response Get Mcp Server Tools Api V1 Mcp Agents  Agent Id 
                  Servers  Server Id  Tools Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AgentTool:
      properties:
        tool_name:
          type: string
          title: Tool Name
          description: Name of the tool
        tool_type:
          type: string
          title: Tool Type
          description: 'Type of tool: ''built_in'', ''mcp_server'', ''external_tool'''
        configuration:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Configuration
          description: Tool-specific configuration settings
        is_enabled:
          type: boolean
          title: Is Enabled
          description: Whether the tool is enabled
          default: true
        id:
          type: string
          format: uuid
          title: Id
          description: Unique identifier for the agent tool
        agent_id:
          type: string
          format: uuid
          title: Agent Id
          description: ID of the agent this tool belongs to
        mcp_server_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Mcp Server Id
          description: ID of the MCP server (if tool_type is 'mcp_server')
        external_tool_connection_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: External Tool Connection Id
          description: ID of the external tool connection (if tool_type is 'external_tool')
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the tool was configured
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the tool was last updated
      type: object
      required:
        - tool_name
        - tool_type
        - id
        - agent_id
        - created_at
        - updated_at
      title: AgentTool
      description: Model for an agent tool configuration.
      example:
        agent_id: 123e4567-e89b-12d3-a456-426614174001
        configuration:
          include_metadata: true
          max_results: 10
        created_at: '2023-01-01T00:00:00Z'
        id: 123e4567-e89b-12d3-a456-426614174000
        is_enabled: true
        tool_name: knowledge_base_search
        tool_type: built_in
        updated_at: '2023-01-01T00:00:00Z'
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````