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.
    static @interface 
    How a UI should present this tool's execution as a user-facing activity step ("Creating template \"X\"" instead of manage_template).
  • 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.
    UI presentation hints, emitted as Tool._meta["ai.digital/presentation"].
    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
    • presentation

      UI presentation hints, emitted as Tool._meta["ai.digital/presentation"].
      Default:
      @com.xebialabs.xlrelease.mcp.annotation.McpTool.McpPresentation