Function: isMcpCallTool()
Makaio Framework / ai-adapters-core / isMcpCallTool
Function: isMcpCallTool()
Section titled “Function: isMcpCallTool()”isMcpCallTool(
toolName):boolean
Defined in: ../../../adapters/core/src/agent/mcp-call-extractor.ts:38
Check whether a tool call name refers to the mcp_call meta-tool.
Uses the canonical MCP_CALL_TOOL_NAME constant so the comparison stays in sync with the toolset definition automatically.
Callers are responsible for stripping provider-specific prefixes before
calling this function (e.g., Gemini’s default_api. prefix must be
removed at the call site — see execute-tool-calls.ts normalizedToolName).
Parameters
Section titled “Parameters”toolName
Section titled “toolName”string
Normalized tool name from the tool call
Returns
Section titled “Returns”boolean
true if this is an mcp_call invocation