Skip to content

ToolsDefinition

Structure Class

ToolsDefinition dataclass

Bases: _SerdeShape

The MCP tools definition with a protocol version and inline content. The protocolVersion identifies the MCP protocol version that the tools conform to. This differs from schemaVersion in the server definition, which identifies the server configuration schema format.

Attributes

inline_content class-attribute instance-attribute
inline_content: str | None = ...

The inline content of the tools definition.

protocol_version class-attribute instance-attribute
protocol_version: str | None = ...

The MCP protocol version that the tools conform to. This differs from the schemaVersion field in the server definition, which identifies the server configuration schema format.