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

# Call Tool

`POST /preview/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

## Changes

- **2026-03-04** `c8917fecb5bf` — 1 breaking
  - the response property `call/status/anyOf[subschema #1: Status]/timestamp` became optional for the status `200`
- **2026-02-27** `8fcd55a5a656` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/agenta-ai/apis/agenta-api/changes/preview/tools/call/post.md)

---

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