Annotation Type McpParam


@Retention(CLASS) @Target(PARAMETER) public @interface McpParam
Names and describes one parameter of an McpTool method.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The argument's name in the tool call.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    What the argument is, for the agent.
    boolean
    Whether the call must supply it.
  • Element Details

    • value

      String value
      The argument's name in the tool call.
    • description

      String description
      What the argument is, for the agent.
      Default:
      ""
    • required

      boolean required
      Whether the call must supply it. An optional primitive receives zero.
      Default:
      true