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
-
Optional Element Summary
Optional Elements
-
Element Details
-
name
-
title
-
description
The optional human-readable argument description.- Returns:
- the description, or an empty string if none is configured
- Default:
""
-