Module tool_prelude

Module tool_prelude 

Source
Expand description

Everything needed for defining MCP tools.

This module re-exports the tool traits, error types, and necessary macros from both this crate and rust-mcp-sdk.

Structs§

CustomTool
ToolError

Traits§

AsyncStructuredTool
AsyncTextTool
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
Serialize
A data structure that can be serialized into any data format supported by Serde.
StructuredTool
TextTool

Attribute Macros§

mcp_tool
A procedural macro attribute to generate rust_mcp_schema::Tool related utility methods for a struct.

Derive Macros§

Deserialize
JsonSchema
Derives a JSON Schema representation for a struct.
Serialize