---
title: "call a tool on the MCP server described by the resource"
method: POST
path: "/w/{workspace}/resources/mcp_call_tool/{path}"
tags: ["resource"]
---

# call a tool on the MCP server described by the resource

`POST /w/{workspace}/resources/mcp_call_tool/{path}`

## Path parameters

- `workspace` string, required
- `path` string, required

## Request body

- object
  - `tool` string, required
  - `arguments` object
  - `read_only` boolean — set when the caller ran the tool without asking the user to confirm it; the call is refused unless the server's live listing marks the tool read-only

## Response `200`

the MCP tool result, forwarded verbatim. A tool that ran but failed
returns 200 with isError true.

- object
  - `content` object[]
  - `structuredContent` object
  - `isError` boolean

---

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