Skip to content
Proud to collaborate with Microsoft for Startups

agents.mcp-server.call-tool ​

Execute an MCP tool through a registered server

Execute a cached MCP tool through the workflow boundary.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
APIPOST /api/agents/mcp-servers/{mcp_server_uuid}/tools/{tool_name}/callExecute an MCP tool from a registered server

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
mcp_server_uuidstringYes——
tool_namestringYes——
argumentsdictNo——
timeout_secondsintegerNo——
session_uuidstringNo——
tool_call_refstringNo——
round_indexintegerNo——
redact_resultbooleanNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
mcp_server_uuidstringNo——
organization_uuidstringNo——
tool_namestringNo——
argumentsdictNo——
tooljsonNo——
resultjsonNo——
raw_responsejsonNo——
is_errorbooleanNo——
duration_msintegerNo——
called_atstringNo——
session_uuidstringNo——
tool_call_refstringNo——
round_indexintegerNo——
redactedbooleanNo——
result_size_charsintegerNo——
elicitationsjsonNo——
elicitation_approval_uuidstringNo——
error_categorystringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—run—
runNoNo—complete—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrun—
runcompletecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
calledSUCCESSMCP tool invokedmcp_server_uuid, tool_name, result, is_error, organization_uuid
failedFAILUREMCP tool invoked failedfailure_reason, error, error_type, failed_at_state, failed_step, failed_layer

Business Errors ​

CodeMessage Template
AGENTS_ORGANIZATION_CONTEXT_INVALIDAuthenticated organization context is missing or does not match the workflow input
AGENTS_MCP_SERVER_NOT_FOUNDMCP server {mcp_server_uuid} was not found in the organization
AGENTS_MCP_AUTH_REJECTEDMCP server {mcp_server_uuid} rejected the stored credential
AGENTS_MCP_AUTH_EXPIREDThe OAuth grant for MCP server {mcp_server_uuid} has expired and cannot be refreshed; the organization must re-authorize it
AGENTS_VALIDATION_FAILEDWorkflow input or domain state failed validation:
AGENTS_CONFLICTConflicting agent domain state:
AGENTS_PROVIDER_FAILEDUpstream provider or runner call failed:
AGENTS_MCP_CALL_FAILEDMCP tool call failed for {tool_name}:

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "agents.mcp-server.call-tool",
  "initial_data": {
    "organization_uuid": "value",
    "mcp_server_uuid": "value",
    "tool_name": "value"
  }
}