agentle.mcp.tools.mcp_toolΒΆ

MCP Tool definition module.

This module provides the MCPTool class, which represents a callable tool in the Model Control Protocol (MCP) system. MCPTools encapsulate functions or methods with their metadata and input schemas, making them available for discovery and execution by MCP clients.

Functions

Field()

!!! abstract "Usage Documentation"

Classes

BaseModel()

Alias for pydantic.BaseModel.

InputSchema(*, properties[, type])

Schema definition for tool inputs in the MCP system.

MCPTool(*, name[, description])

Definition for a tool that clients can call in the MCP system.