Skip to content
Proud to collaborate with Microsoft for Startups

agents.mcp-server.refresh ​

Refresh the tool catalog for an existing MCP server

Re-fetch /tools/list from a registered MCP server and update the cached tool catalog.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-agents
Version1.0

Triggers ​

SourceEndpoint / EventDescription
APIPOST /api/agents/mcp-serversAPI — manage MCP server registrations

Input Schema ​

FieldTypeRequiredDefaultDescription
mcp_server_uuidstringYes——
organization_uuidstringYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
errorstringNo——
error_typestringNo——
failed_atstringNo——
failed_at_statestringNo——
failed_layerjsonNo——
failed_stepstringNo——
failure_reasonstringNo——
mcp_server_uuidjsonNo——
tools_countjsonNo——
organization_uuidjsonNo——
transportjsonNo——

States ​

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

State Diagram ​

Transitions ​

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

Outcomes ​

OutcomeTypeDescriptionState Data Keys
refreshedSUCCESSMCP server tools refreshedmcp_server_uuid, tools_count, organization_uuid
failedFAILUREMCP server tools refreshed 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.refresh",
  "initial_data": {
    "mcp_server_uuid": "value",
    "organization_uuid": "value"
  }
}