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.Tree expression (Jenkins Remote REST API tree syntax) applied when the client does not supply thetreeparameter.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.String[]Permission ids (seePermission.getId(), e.g.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
-
permissions
String[] permissionsPermission ids (seePermission.getId(), e.g."hudson.model.Hudson.SystemRead") the caller must hold at least one of, or the tool is hidden and cannot be called. When Jenkins security is off, the tool is always available.These are overall permissions, checked against the Jenkins root. Item-level permissions (like
Item.READon one folder or job) don't fit here and must be checked inside the tool method.- Default:
{}
-
defaultTree
String defaultTreeTree expression (Jenkins Remote REST API tree syntax) applied when the client does not supply thetreeparameter. Keeps default responses compact for LLM contexts; clients can still pass their owntree(ortree="*"semantics via a broad expression) to request more fields. Empty (the default) preserves the current behaviour of returning the full exported model.- Default:
""
-
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
-