Class Tool
java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Tool
MCP tool descriptor (
tools/list entry).
Input and output schemas are direct Draft-2020-12 JsonSchema beans; there is no MCP-specific schema
wrapper type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHuman-readable description.JsonSchema<?>Draft-2020-12 JSON Schema for tool arguments.getName()Tool name.JsonSchema<?>Draft-2020-12 JSON Schema for structured tool output.setDescription(String value) Sets the description.setInputSchema(JsonSchema<?> value) Sets the input schema.Sets the tool name.setOutputSchema(JsonSchema<?> value) Sets the output schema.
-
Constructor Details
-
Tool
public Tool()
-
-
Method Details
-
getName
Tool name.- Returns:
- The name, or
nullif not set.
-
setName
Sets the tool name.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getDescription
Human-readable description.- Returns:
- The description, or
nullif not set.
-
setDescription
Sets the description.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getInputSchema
Draft-2020-12 JSON Schema for tool arguments.- Returns:
- The input schema, or
nullif not set.
-
setInputSchema
Sets the input schema.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-
getOutputSchema
Draft-2020-12 JSON Schema for structured tool output.- Returns:
- The output schema, or
nullif not set.
-
setOutputSchema
Sets the output schema.- Parameters:
value- The new value. Can benull to unset the property.- Returns:
- This object (for method chaining).
-