Skip to content

ToolsDefinition

Structure Class

ToolsDefinition dataclass

Bases: _SerdeShape

The tools definition for an MCP descriptor. Contains the protocol version and inline content describing the available tools.

Attributes

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

The JSON content containing the MCP tools definition, conforming to the MCP protocol specification.

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

The protocol version of the tools definition based on the MCP protocol specification. If not specified, the version is auto-detected from the content.