---
title: "POST /agentcc/gateways/{id}/test-mcp-tool/"
method: POST
path: "/agentcc/gateways/{id}/test-mcp-tool/"
tags: ["agentcc"]
---

# POST /agentcc/gateways/{id}/test-mcp-tool/

`POST /agentcc/gateways/{id}/test-mcp-tool/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/agentcc/gateways/{id}/test-mcp-tool/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Stateless proxy to the Go gateway (configured via env vars).
No DB model — returns a virtual singleton gateway with live health.

## Request body

- GatewayMCPToolTestRequest
  - `name` string, required
  - `arguments` object

## Response `200`

OK

- GatewayMCPToolTestResponse
  - `status` boolean, required
  - `result` GatewayMCPToolTestResult, required
    - `content` GatewayMCPToolTestContent[]
      - `type` string, required
      - `text` string
      - `data` string
      - `mimeType` string
    - `is_error` boolean
    - `duration_ms` number
    - `guardrail_pre` 'pass' | 'blocked' | 'skipped'
    - `guardrail_post` 'pass' | 'blocked' | 'skipped'
    - `error` string
    - `server` string

## Other responses

- `400`: Bad Request
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
