Annotation Interface McpTool


Marks a method as an MCP tool, read by McpToolSpecifications.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    MCP behaviour hints.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    What the tool does and when to use it — the model's main tool-selection signal.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Behavioural hints surfaced in tools/list.
    Tool name advertised to clients; falls back to the method name when blank.
    Human-readable display title (MCP Tool.title); clients prefer it over the name.
  • Element Details

    • name

      String name
      Tool name advertised to clients; falls back to the method name when blank.
      Default:
      ""
    • title

      String title
      Human-readable display title (MCP Tool.title); clients prefer it over the name.
      Default:
      ""
    • description

      String description
      What the tool does and when to use it — the model's main tool-selection signal.
    • annotations

      Behavioural hints surfaced in tools/list.
      Default:
      @com.xebialabs.xlrelease.mcp.annotation.McpTool.McpAnnotations