---
title: "Call Tool"
method: POST
path: "/tools/call"
tags: ["Tools"]
---

# Call Tool

`POST /tools/call`

Call a tool action with a connection.

## Request body

- ToolCall — Request envelope — wraps the raw OpenAI tool call.
  - `data` ToolCallData, required — OpenAI tool_calls array item — passed verbatim from the LLM.
    - `id` string, required
    - `type` string
    - `function` ToolCallFunction, required — Mirrors OpenAI function call: {name, arguments}.
      - `name` string, required
      - `arguments` unknown, required

## Response `200`

Successful Response

- ToolCallResponse
  - `call` ToolResult, required — Response envelope with Agenta identity, status, and the OpenAI tool message.
    - `id` string, uuid, nullable
    - `status` Status
      - `timestamp` string, date-time
      - `type` string, nullable
      - `code` string, nullable
      - `message` string, nullable
      - `stacktrace` string, nullable
    - `data` ToolResultData — OpenAI tool message — passed verbatim back to the LLM.
      - `role` string
      - `tool_call_id` string, required
      - `content` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/agenta-ai/apis/agenta-api.md) · [All operations](https://skmtc.net/agenta-ai/apis/agenta-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agenta-ai/agenta-api/versions/ea6421d829f1/schema)
