ToolItem
MCP tool item
Operations
GetDescription
Gets the tool description
method : public : GetDescription() ~ StringReturn
| Type | Description |
|---|---|
| String | tool description |
GetInputSchema
Gets the input schema
method : public : GetInputSchema() ~ FunctionTypeReturn
| Type | Description |
|---|---|
| FunctionType | input schema |
GetOutputSchema
Gets the output schema
method : public : GetOutputSchema() ~ FunctionTypeReturn
| Type | Description |
|---|---|
| FunctionType | output schema |
New
Constructor
New(name:String, title:String, description:String, input_schema:FunctionType, output_schema:FunctionType)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | tool name |
| title | String | tool title |
| description | String | tool description |
| input_schema | FunctionType | input schema |
| output_schema | FunctionType | output schema |
New
Constructor
New(name:String, description:String, input_schema:FunctionType, output_schema:FunctionType)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | tool name |
| description | String | tool description |
| input_schema | FunctionType | input schema |
| output_schema | FunctionType | output schema |
New
Constructor
New(name:String, description:String, input_schema:FunctionType)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | tool name |
| description | String | tool description |
| input_schema | FunctionType | input schema |
New
Constructor
New(name:String, input_schema:FunctionType, output_schema:FunctionType)Parameters
| Name | Type | Description |
|---|---|---|
| name | String | tool name |
| input_schema | FunctionType | input schema |
| output_schema | FunctionType | output schema |
ToJson
Converts to JSON element
method : public : ToJson() ~ JsonElementReturn
| Type | Description |
|---|---|
| JsonElement | JSON element |