class documentation

class TemporalMCPTool(AgentTool): (source)

Constructor: TemporalMCPTool(server, info, options)

View In Hierarchy

Workflow-side stub for a single MCP tool; dispatches to an activity.

Method __init__ Bind this tool to a server, its cached info, and activity options.
Async Method stream Execute the tool by dispatching to the per-server call-tool activity.
Property tool_name Name of the underlying MCP tool.
Property tool_spec Strands ToolSpec built from the cached MCP tool info.
Property tool_type Tool kind identifier used by Strands.
Instance Variable _info Undocumented
Instance Variable _options Undocumented
Instance Variable _server Undocumented
def __init__(self, server: str, info: _MCPToolInfo, options: dict[str, Any]): (source)

Bind this tool to a server, its cached info, and activity options.

async def stream(self, tool_use: ToolUse, invocation_state: dict[str, Any], **kwargs: Any) -> ToolGenerator: (source)

Execute the tool by dispatching to the per-server call-tool activity.

Name of the underlying MCP tool.

tool_spec: ToolSpec = (source)

Strands ToolSpec built from the cached MCP tool info.

Tool kind identifier used by Strands.

Undocumented

_options = (source)

Undocumented

Undocumented