java.lang.Object
org.apache.juneau.bean.mcp.v20260728.Tool

@Marshalled public class Tool extends Object
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 Details

    • Tool

      public Tool()
  • Method Details

    • getName

      public String getName()
      Tool name.
      Returns:
      The name, or null if not set.
    • setName

      public Tool setName(String value)
      Sets the tool name.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getDescription

      Human-readable description.
      Returns:
      The description, or null if not set.
    • setDescription

      public Tool setDescription(String value)
      Sets the description.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).
    • getInputSchema

      Draft-2020-12 JSON Schema for tool arguments.
      Returns:
      The input schema, or null if not set.
    • setInputSchema

      public Tool setInputSchema(JsonSchema<?> value)
      Sets the input schema.
      Parameters:
      value - The new value. Can be null 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 null if not set.
    • setOutputSchema

      public Tool setOutputSchema(JsonSchema<?> value)
      Sets the output schema.
      Parameters:
      value - The new value. Can be null to unset the property.
      Returns:
      This object (for method chaining).