Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
@Retention(CLASS) @Target({PARAMETER})
public @interface McpParam
Names and describes one parameter of an
McpTool method.Methods
public abstract String value() | The argument’s name in the tool call. |
public abstract String description() default "" | What the argument is, for the agent. |
public abstract boolean required() default true | Whether the call must supply it. |
Method details
value
public abstract String value()The argument’s name in the tool call.
description
public abstract String description() default ""What the argument is, for the agent.
required
public abstract boolean required() default trueWhether the call must supply it. An optional primitive receives zero.