Annotation Interface AgentTool
Marks the annotated method as an agent-callable tool. The
agent module's
ToolRegistry/CrdbAgent reflect over these to expose an MCP-style
tool surface (tools/list + tools/call).-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether this tool performs a destructive/mutating action.
-
Element Details
-
value
String valueThe tool name exposed to agents (e.g.describe_schema). -
destructive
boolean destructiveWhether this tool performs a destructive/mutating action. Destructive tools are hidden from listing and rejected on invocation unless the agent is explicitly configured to allow them.- Default:
false
-