Annotation Interface McpToolArgument


Binds a parameter of an McpTool method as a published tool argument.

Requiredness is inferred from the declared parameter type: T is required and Optional<T> is optional. A blank name() uses the source-level Java parameter name. Explicit names provide a stable public contract across Java refactoring. Use McpToolProperty to supply the corresponding schema metadata for a component of an ordinary typed input or output record.

Author:
Mark Allen
  • Element Details

    • name

      The published argument name.
      Returns:
      the argument name, or an empty string to use the Java parameter name
      Default:
      ""
    • title

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

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