buying/tools/call

POST/buying/tools/{tool_name}

Call one agentic buying tool with its JSON arguments, as the public MCP endpoint does. Calls run in the caller's external buying thread. An editor's call to an approval-gated tool, such as launch, is the approval for that exact request; the server still checks the proposal revision, digest and idempotency key. Writes require editor access. Buying needs a signed-in user token; API keys get 403.

Request

cURL
curl -X POST "https://provisioning.cloudx.io/api/v1/buying/tools/{tool_name}" \
  -H "Authorization: Bearer $CLOUDX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

Path parameters

NameTypeDescription
tool_namerequiredstringTool name from listBuyingTools, such as buying_proposal_create.

Body

Responses

Tool result.
{
  "result": "<string>"
}

200Tool result.

FieldTypeDescription
resultrequiredobjectThe tool's JSON result.

400The tool rejected the call.

FieldTypeDescription
errorrequiredstring

401Unauthorized.

FieldTypeDescription
errorrequiredstring

403Forbidden or feature unavailable.

FieldTypeDescription
errorrequiredstring

404Tool not found.

FieldTypeDescription
errorrequiredstring

500Internal server error.

FieldTypeDescription
errorrequiredstring