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

# Update Agent Tool

> Update a tool configuration for an agent.

Args:
    agent_id: The ID of the agent
    tool_id: The ID of the tool configuration
    tool_update: Updated tool data
    user_id: The user ID of the current user
    organization_id: The organization ID of the current user

Returns:
    Updated agent tool

Raises:
    HTTPException: If tool not found or access denied



## OpenAPI

````yaml put /api/v1/agents/{agent_id}/tools/{tool_id}
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/agents/{agent_id}/tools/{tool_id}:
    put:
      tags:
        - agent-tools
      summary: Update Agent Tool
      description: |-
        Update a tool configuration for an agent.

        Args:
            agent_id: The ID of the agent
            tool_id: The ID of the tool configuration
            tool_update: Updated tool data
            user_id: The user ID of the current user
            organization_id: The organization ID of the current user

        Returns:
            Updated agent tool

        Raises:
            HTTPException: If tool not found or access denied
      operationId: update_agent_tool_api_v1_agents__agent_id__tools__tool_id__put
      parameters:
        - name: agent_id
          in: path
          required: true
          schema:
            type: string
            title: Agent Id
        - name: tool_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Tool Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentToolUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentTool'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      deprecated: true
      security:
        - ApiKeyAuth: []
components:
  schemas:
    AgentToolUpdate:
      properties:
        configuration:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Configuration
          description: Updated configuration
        is_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Enabled
          description: Whether the tool is enabled
      type: object
      title: AgentToolUpdate
      description: Model for updating an agent tool configuration.
    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

````