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

# Create Tool

> Create a new tool configuration for an agent



## OpenAPI

````yaml /api-reference/openapi.json post /v1/bot/tool
openapi: 3.0.0
info:
  title: BoostGPT API
  version: 1.0.0
  description: API for managing AI agents with memory capabilities
servers:
  - url: https://api.boostgpt.co
    description: Production server
security:
  - BearerAuth: []
tags:
  - name: Agent
    description: Operations for managing AI agents
  - name: Memory
    description: Operations for managing agent memory sources
  - name: Chat
    description: Operations for chatting with agents and managing conversations
  - name: Tools
    description: Operations for managing agent tools and MCP server integrations
  - name: Analytics
    description: Operations for retrieving agent statistics and analytics
  - name: Tasks
    description: >-
      Scheduled tasks — recurring work an agent performs on its own. Replaces
      the Heartbeat API.
  - name: Email
    description: Operations for managing agent email functionality
  - name: Workflows
    description: Operations for managing agent workflow automations
  - name: Workspace
    description: Operations for managing agent workspaces and files
paths:
  /v1/bot/tool:
    post:
      tags:
        - Tools
      summary: Create Tool
      description: Create a new tool configuration for an agent
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateToolRequest'
      responses:
        '200':
          description: Tool created successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResponse'
        '400':
          description: Bad request - validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateToolRequest:
      type: object
      required:
        - project_id
        - bot_id
        - server_label
        - transport
        - connection_uuid
      properties:
        project_id:
          type: string
          description: Project ID
        bot_id:
          type: string
          description: Agent ID
        server_label:
          type: string
          minLength: 1
          maxLength: 255
          description: Human-readable label for the MCP server
        transport:
          type: string
          enum:
            - http
            - sse
          description: Transport protocol
        require_approval:
          type: string
          enum:
            - never
            - always
            - tool-specific
          default: never
          description: Tool approval requirement
        type:
          type: string
          enum:
            - mcp
          default: mcp
          description: Tool type
        connection_uuid:
          type: string
          description: >-
            The project connection this agent should use. Create one on the
            Connections screen, or with POST /v1/project/connection/create.
            Required: an agent reaches a connector only through a connection —
            credentials, the host and the tool catalogue all belong to it.
    ToolResponse:
      type: object
      properties:
        tool:
          type: object
          properties:
            id:
              type: string
              format: uuid
              description: Tool ID
            server_label:
              type: string
              description: Server label
            transport:
              type: string
              description: Transport protocol
            require_approval:
              type: string
              description: Approval requirement
            headers:
              type: object
              description: Custom headers
            is_enabled:
              type: boolean
              description: Whether tool is enabled
            type:
              type: string
              description: Tool type
            tools:
              type: array
              description: Available tools from this server
              items:
                type: object
                properties:
                  name:
                    type: string
                  description:
                    type: string
                  is_active:
                    type: boolean
                  schema:
                    type: object
            created_at:
              type: string
              format: date-time
            updated_at:
              type: string
              format: date-time
            connection:
              type: object
              description: >-
                The project connection this tool uses: its label, its connector,
                and whether its credentials are in place. Never its credentials.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
        code:
          type: string
          description: Error code
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Enter your API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.