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

# Get All Tools

> Get all available tools across all types.

Returns a unified list of tools from:
- Code tools (static, YAML-based)
- MCP tools (dynamic, from running instances)

Query Parameters:
    include: Comma-separated tool types (default: "code,mcp")
    mcp_instance_id: Filter MCP tools by instance (optional)

Example:
    GET /v1/agents/tools?include=code,mcp
    GET /v1/agents/tools?include=code
    GET /v1/agents/tools?include=mcp&mcp_instance_id={uuid}



## OpenAPI

````yaml /api-reference/openapi.json get /v1/agents/tools
openapi: 3.1.0
info:
  description: >-
    Modular and extensible framework for building AI agents. This API requires
    JWT Bearer token authentication for most endpoints. Include your JWT token
    in the Authorization header. Public endpoints include /, /health, /docs,
    /redoc, and /openapi.json.
  title: AgentArea API
  version: 0.1.0
servers: []
security:
  - bearer: []
paths:
  /v1/agents/tools:
    get:
      tags:
        - v1
        - protected
        - agents
      summary: Get All Tools
      description: |-
        Get all available tools across all types.

        Returns a unified list of tools from:
        - Code tools (static, YAML-based)
        - MCP tools (dynamic, from running instances)

        Query Parameters:
            include: Comma-separated tool types (default: "code,mcp")
            mcp_instance_id: Filter MCP tools by instance (optional)

        Example:
            GET /v1/agents/tools?include=code,mcp
            GET /v1/agents/tools?include=code
            GET /v1/agents/tools?include=mcp&mcp_instance_id={uuid}
      operationId: get_all_tools_v1_agents_tools_get
      parameters:
        - description: Comma-separated list of tool types to include (code, mcp)
          in: query
          name: include
          required: false
          schema:
            default: code,mcp
            description: Comma-separated list of tool types to include (code, mcp)
            title: Include
            type: string
        - description: Filter MCP tools by specific instance ID
          in: query
          name: mcp_instance_id
          required: false
          schema:
            anyOf:
              - format: uuid
                type: string
              - type: 'null'
            description: Filter MCP tools by specific instance ID
            title: Mcp Instance Id
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/ToolResponse'
                title: Response Get All Tools V1 Agents Tools Get
                type: array
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      security:
        - HTTPBearer: []
components:
  schemas:
    ToolResponse:
      description: Unified tool response format.
      properties:
        description:
          title: Description
          type: string
        input_schema:
          additionalProperties: true
          title: Input Schema
          type: object
        mcp_instance_id:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          title: Mcp Instance Id
        mcp_instance_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Mcp Instance Name
        name:
          title: Name
          type: string
        type:
          enum:
            - code
            - mcp
          title: Type
          type: string
      required:
        - name
        - type
        - description
        - input_schema
      title: ToolResponse
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object
  securitySchemes:
    bearer:
      bearerFormat: JWT
      description: JWT Bearer token for authentication
      scheme: bearer
      type: http
    HTTPBearer:
      scheme: bearer
      type: http

````