McpCallToolTool class

Tool allowing LLMs to dynamically invoke an MCP tool discovered via McpListToolsTool.

Inheritance

Constructors

McpCallToolTool({required MultiMCPManager mcpManager, List<McpLocalTool>? localTools})

Properties

description → String
A description of what the tool does, used by the LLM.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
inputSchema → Map<String, dynamic>
The input parameters JSON schema mapping for the tool.
no setteroverride
localTools → List<McpLocalTool>?
final
mcpManager → MultiMCPManager
final
name → String
The unique identifier name of the tool.
no setteroverride
riskLevel → ToolRiskLevel
The risk level associated with executing this tool. Defaults to ToolRiskLevel.read.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

execute(Map<String, dynamic> arguments) → Future<MCPToolResult>
Executes the tool actions using the supplied LLM arguments.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMCPTool() → MCPTool
Convert to standard MCPTool model representation.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited