Annotation Interface McpToolProperty


Supplies published JSON-property metadata for a component of an ordinary typed tool input or output record.

Requiredness is inferred from the declared component type: T is required and Optional<T> is optional. A blank name() uses the Java record-component name. Explicit names provide a stable public contract across Java refactoring.

Author:
Mark Allen
  • Element Details

    • name

      The published property name.
      Returns:
      the property name, or an empty string to use the Java record-component name
      Default:
      ""
    • title

      The optional human-readable property title.
      Returns:
      the title, or an empty string if none is configured
      Default:
      ""
    • description

      The optional human-readable property description.
      Returns:
      the description, or an empty string if none is configured
      Default:
      ""