Skip to content

Function: isMcpCallTool()

Makaio Framework


Makaio Framework / ai-adapters-core / 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).

string

Normalized tool name from the tool call

boolean

true if this is an mcp_call invocation