Annotation Interface AgentTool


@Documented @Retention(RUNTIME) @Target(METHOD) public @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
    Modifier and Type
    Required Element
    Description
    The tool name exposed to agents (e.g.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether this tool performs a destructive/mutating action.
  • Element Details

    • value

      String value
      The tool name exposed to agents (e.g. describe_schema).
    • destructive

      boolean destructive
      Whether 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