Overview
Returns a function to invoke other MCP tools registered on the server. Useful for multi-step workflows where one app needs to trigger another tool.Wraps callServerTool
MCP Apps SDK reference
Import
Signature
CallServerToolParams
Name of the MCP tool to call.
Arguments to pass to the tool.
Returns
Function to call an MCP server tool.
CallServerToolResult
Tool response content (human-readable text for the host model).
Structured data from the tool response. Use this for machine-readable data the calling resource needs to render (e.g.,
{ status: 'success', message: '...' }).Whether the tool call resulted in an error. Only set for actual execution failures — not for expected outcomes like cancellations.