Documentation Index
Fetch the complete documentation index at: https://docs.praison.ai/llms.txt
Use this file to discover all available pages before exploring further.
MCPTool
Defined in the MCP module.
Rust AI Agent SDK
An MCP tool definition.
Fields
| Name | Type | Description |
|---|
name | String | Tool name |
description | String | Tool description |
input_schema | serde_json::Value | Input schema (JSON Schema) |
Methods
new
fn new(name: impl Into<String>, description: impl Into<String>) -> Self
Create a new MCP tool
Parameters:
| Name | Type |
|---|
name | impl Into<String> |
description | impl Into<String> |
fn input_schema(mut self, schema: serde_json::Value) -> Self
Set input schema
Parameters:
| Name | Type |
|---|
schema | serde_json::Value |
Source
View on GitHub
praisonai/src/mcp/mod.rs at line 263