Class Tool
java.lang.Object
org.apache.juneau.bean.mcp.v20250618.Tool
MCP tool descriptor (
tools/list entry).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionHuman-readable description.JSON Schema for tool arguments.getName()Tool name.JSON Schema for the structured content returned by the tool.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
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
JSON Schema for the structured content returned by the tool.MCP 2025-06-18 requires this, when present, to be an object schema, but enforcement of that constraint belongs to the REST adapter, not this DTO.
- 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).
-