Skip to main content
Glama

jira_search_text

Search Jira issues selected by JQL and their comment threads for a regex or keyword, returning matches with surrounding context to locate where config flags or rules are discussed.

Instructions

Full-text mine a set of issues: scan summaries, descriptions, and comment threads for a regex or keyword and return each match with surrounding context. Jira's own search can't look inside comments well — use this to find where a qualifier, config flag, or process rule is actually discussed across tickets.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "jql": "<jql>",
      "pattern": "<pattern>"
    },
    "name": "jira_search_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
jqlYesJQL selecting the issues to scan
scopeNoWhich text to scanall
patternYesCase-insensitive regex or plain keyword, e.g. "inventory.{0,30}qualif" or "feature flag"
maxIssuesNoHow many issues to scan
contextCharsNoCharacters of context around each match

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.4.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses the output shape (each match plus surrounding context) and the read-only nature implied by 'scan' and 'return', but says nothing about the cost or latency of scanning up to 300 issues with comment threads, whether results are capped or truncated, or how matches are ordered.

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

Conciseness5/5

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

Two sentences with no filler: the capability and its scope come first, followed by the differentiating rationale and use case. Every clause earns its place.

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

Completeness4/5

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

For a five-parameter read tool with no output schema, the description adequately conveys what is scanned and what is returned, and the schema covers all parameters. The remaining gap is operational — no guidance on result volume or limits when scanning large issue sets.

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 100%, so every parameter including the scope enum and contextChars is already documented in structured form. The description's mention of 'surrounding context' and 'regex or keyword' only echoes the schema rather than adding new semantics such as regex flavor caveats or how scope interacts with jql.

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

Purpose5/5

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

The description names a specific verb and resource ('Full-text mine a set of issues'), enumerates the text surfaces scanned (summaries, descriptions, comment threads), and states what comes back (each match with surrounding context). It also distinguishes itself from Jira's built-in search by pointing out that native search cannot look inside comments well.

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

Usage Guidelines4/5

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

It gives a concrete use case — locating where a qualifier, config flag, or process rule is actually discussed across tickets — and frames the condition that selects this tool over ordinary Jira search. It does not name a specific sibling tool or state an explicit 'do not use for' case, so it falls short of full routing guidance.

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