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

# Execute tool

> Executes a specific tool for the user



## OpenAPI

````yaml https://gist.githubusercontent.com/hillaryke/db4387d90d8a2367c8d3f478f2d48acc/raw/65b07bde29d5ff9b22522b3659db0b103c2d32e4/openapi.json post /users/{userId}/tools
openapi: 3.0.0
info:
  title: MCP Hub API
  version: 1.0.0
  description: >-
    A service that manages isolated Model Context Protocol (MCP) server
    instances
servers:
  - url: http://localhost:3000
    description: Development server
security: []
tags: []
paths:
  /users/{userId}/tools:
    post:
      tags:
        - Tools
      summary: Execute tool
      description: Executes a specific tool for the user
      parameters:
        - name: userId
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ToolCall'
      responses:
        '200':
          description: Tool execution result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolResult'
        '500':
          $ref: '#/components/responses/Error'
components:
  schemas:
    ToolCall:
      type: object
      properties:
        name:
          type: string
        arguments:
          type: object
          additionalProperties: true
      required:
        - name
        - arguments
    ToolResult:
      type: object
      properties:
        content:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              text:
                type: string
        isError:
          type: boolean
        error:
          type: string
  responses:
    Error:
      description: Error response
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string

````