Annotation Interface McpTool


Author:
Christian Tzolov
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    Additional properties describing a Tool to clients.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Additional hints for clients.
    The description of the tool.
    boolean
    If true, the tool will generate an output schema for non-primitive output types.
    The name of the tool.
    Intended for UI and end-user contexts — optimized to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology.
  • Element Details

    • name

      String name
      The name of the tool. If not provided, the method name will be used.
      Default:
      ""
    • description

      String description
      The description of the tool. If not provided, the method name will be used.
      Default:
      ""
    • annotations

      Additional hints for clients.
      Default:
      @org.springaicommunity.mcp.annotation.McpTool.McpAnnotations
    • generateOutputSchema

      boolean generateOutputSchema
      If true, the tool will generate an output schema for non-primitive output types. If false, the tool will not automatically generate an output schema.
      Default:
      false
    • title

      String title
      Intended for UI and end-user contexts — optimized to be human-readable and easily understood, even by those unfamiliar with domain-specific terminology. If not provided, the name should be used for display (except for Tool, where annotations.title should be given precedence over using name, if present).
      Default:
      ""