Annotation Interface Tool
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfacestatic @interfaceThe _meta property/parameter is reserved by MCP to allow clients and servers to attach additional metadata to their interactions. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionAdditional hints for clients.The description of the tool.To add some _meta content to the tool.The name of the tool.booleanSet totrueto replace another tool that has the same name, such as a built-in tool.booleanIf true, the tool's output will be treated as a structured object and serialized into the `structuredContent` field.booleanIf true, the tool's output will be filtered follow Jenkins rest api tree pruning feature.
-
Element Details
-
name
String nameThe name of the tool. If not provided, the method name will be used.- Default:
""
-
override
boolean overrideSet totrueto replace another tool that has the same name, such as a built-in tool.Overriding only happens when you ask for it. If two tools share a name and neither sets
override = true, the first one wins and the other is ignored with a warning. If several tools setoverride = truefor the same name, the one from the extension with the highestordinalwins.- Default:
false
-
description
String descriptionThe description of the tool. If not provided, the method name will be used.- Default:
""
-
structuredOutput
boolean structuredOutputIf true, the tool's output will be treated as a structured object and serialized into the `structuredContent` field.- Default:
false
-
treePruneSupported
boolean treePruneSupportedIf 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[] metasTo add some _meta content to the tool.- Default:
{@io.jenkins.plugins.mcp.server.annotation.Tool.Meta}
-
annotations
Tool.Annotations annotationsAdditional 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
-