Skip to main content
Glama
lanbaoshen
by lanbaoshen

query_items

Query items from Jenkins

Instructions

Query items from Jenkins

Args: class_pattern: The pattern of the _class fullname_pattern: The pattern of the fullname color_pattern: The pattern of the color folder_depth: The maximum depth of folders to traverse. If None, traverses all levels.

Returns: A list of items

Input Schema

NameRequiredDescriptionDefault
folder_depthNo
class_patternNo
color_patternNo
fullname_patternNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv3.6.0
    • addedInput schema / properties / class_pattern / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / class_pattern / type
      Removed value: -"string"
    • addedInput schema / properties / color_pattern / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / color_pattern / type
      Removed value: -"string"
    • addedInput schema / properties / fullname_pattern / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / fullname_pattern / type
      Removed value: -"string"
  2. Addedv3.3.0

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden. It says nothing about whether this is a read-only operation, auth requirements, result size/pagination, or the folder-traversal cost implied by 'traverses all levels'. The only behavioral hint is the folder_depth traversal note.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The docstring is appropriately sized, front-loads the purpose, then lists args and the return in a scannable structure. Slightly boilerplate 'Returns: A list of items' that adds little given an output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return values needn't be explained, and the params are covered. But for an unannotated query tool with 4 optional filtering params, the missing pattern-syntax semantics and absence of any usage/behavioral context leave meaningful gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must compensate, and it does document all four parameters including the None=all-levels semantics of folder_depth. However, it does not specify what pattern syntax the *_pattern args expect (regex, glob, substring), leaving a real ambiguity for a query tool.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (query items from Jenkins) with an implied filtering purpose via the *_pattern args. It does not, however, distinguish itself from sibling tools like get_all_items or get_item, so an agent must infer the difference itself.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool versus get_all_items, get_item, or other retrieval siblings, and no stated prerequisites or exclusions. The agent is left to guess from the argument names alone.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.