Annotation Interface McpToolParam


@Target(PARAMETER) @Retention(RUNTIME) @Documented public @interface McpToolParam
Describes a single McpTool parameter. The name comes from the bytecode (-parameters).
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Description surfaced in the tool's input schema.
    boolean
    Whether the caller must supply it; defaults true, so only optionals set required = false.
  • Element Details

    • description

      String description
      Description surfaced in the tool's input schema.
      Default:
      ""
    • required

      boolean required
      Whether the caller must supply it; defaults true, so only optionals set required = false.
      Default:
      true