Verdict for a proxied MCP tools/call

Lightweight verdict endpoint the local stdio shim (@axiorank/mcp-gateway) calls per tools/call. server is the registered server slug. phase: "request" inspects the call arguments; phase: "result" inspects the tool output and requires resultText. Requires the gateway:write scope.

post/api/v1/gateway/mcp-tool-call

Request

  • Base URL: https://app.axiorank.com
  • URL: https://app.axiorank.com/api/v1/gateway/mcp-tool-call
  • Auth: HTTP bearer

Request body

serverstring required
toolstring required
argumentsobject
phase'request' | 'result'
resultTextstring
costUsdnumber
traceIdstring uuid
stepIndexinteger
sessionIdstring uuid
metadataobject
parentStepIndexinteger

Response

The verdict for this call.

decision'allow' | 'deny' | 'hold' required
reasonstring required
riskinteger required
auditLogIdstring required
enforcedboolean required

true when the call must NOT be forwarded as-is under enforce posture.

approvalIdstring

Present when decision is hold under enforce.

Example response

{
  "signals": [
    {
      "detector": "secret.aws_access_key",
      "location": "body.env.AWS_SECRET"
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.