Annotation Interface Tool


  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    static @interface 
    The _meta property/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Additional hints for clients.
    The description of the tool.
    To add some _meta content to the tool.
    The name of the tool.
    boolean
    If true, the tool's output will be treated as a structured object and serialized into the `structuredContent` field.
    boolean
    If true, the tool's output will be filtered follow Jenkins rest api tree pruning feature.
  • 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:
      ""
    • structuredOutput

      boolean structuredOutput
      If true, the tool's output will be treated as a structured object and serialized into the `structuredContent` field.
      Default:
      false
    • treePruneSupported

      boolean treePruneSupported
      If true, the tool's output will be filtered follow Jenkins rest api tree pruning feature. Any elements marked with @ExportedBean support tree pruning automatically.
      Default:
      false
    • metas

      Tool.Meta[] metas
      To add some _meta content to the tool.
      Default:
      {@io.jenkins.plugins.mcp.server.annotation.Tool.Meta}
    • annotations

      Tool.Annotations annotations
      Additional hints for clients. There is no default value for this. If you need it you need to explicitly add it.
      Default:
      @io.jenkins.plugins.mcp.server.annotation.Tool.Annotations