Tool execution request passed to MCP tool call interceptors.
This tool call request follows a similar pattern to LangChain's ToolCallRequest (flat namespace) rather than separating the call data and context into nested objects.
Modifiable fields (override these to change behavior): name: Tool name to invoke. args: Tool arguments as key-value pairs. headers: HTTP headers for applicable transports (SSE, HTTP).
Context fields (read-only, use for routing/logging): server_name: Name of the MCP server handling the tool. runtime: LangGraph runtime context (optional, None if outside graph).
MCPToolCallRequest(
self,
name: str,
args: dict[str, Any],
server_name: str,
headers: dict[str, Any] | None = None,
runtime: object | None = None
)