Package su.onno.mcp

Annotation Interface McpToolParam


@Target(PARAMETER) @Retention(RUNTIME) @Documented public @interface McpToolParam
Customizes an input parameter of an McpTool method.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Description shown in the generated input schema.
    Input property name.
    boolean
    Whether MCP clients must supply the input.
    Optional complete JSON Schema for this input, overriding type inference.
  • Element Details

    • name

      String name
      Input property name. Defaults to the Java parameter name.
      Default:
      ""
    • description

      String description
      Description shown in the generated input schema.
      Default:
      ""
    • required

      boolean required
      Whether MCP clients must supply the input.
      Default:
      true
    • schema

      String schema
      Optional complete JSON Schema for this input, overriding type inference.
      Default:
      ""