Skip to main content
Glama

Match recurring errors

match_recurring_errors
Read-onlyIdempotent

Cross-check a text (typically a new ticket's subject + body, or a customer's message) against a project's known recurring-error patterns (ai_memory_items with category 'recurring_error'). Deterministic marker matching — returns the patterns whose markers appear in the text, most hits first, each with its causes, ordered check steps, what does NOT help, status and source id. Use it to see whether a new report is a known repeat before investigating from scratch. New tickets created via create_ticket / the widget are matched automatically and get an internal hint note.

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": {
      "project_id": "<project_id>",
      "text": "<text>"
    },
    "name": "match_recurring_errors"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe text to check, e.g. the ticket subject + body or the customer's message
limitNoMax matches to return (default 5, max 20)
project_idYesProject UUID whose recurring-error patterns to match against (tenant-wide patterns are included too)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare this a read-only, idempotent, non-destructive, closed-world call, and the description goes well beyond them: it discloses the matching mechanism as deterministic, the sort order (most hits first), the exact fields returned per match, and the side effect that newly created tickets are auto-matched with an internal hint note.

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?

Three tight sentences, front-loaded with the operation and the resource, then output shape, then the use-case trigger and the automatic-matching caveat. No filler and no repetition of the schema.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden itself and does so fully — it lists the returned pattern contents and ordering, and identifies the underlying data source. It also covers the peripheral behavior (auto-matching on ticket creation) an agent would otherwise have to discover empirically.

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 text, limit, and project_id are already documented in the schema, including the default/max on limit. The description restates the intent of `text` but adds no new semantics for `limit` or `project_id` (e.g., how tenant-wide patterns interact with project scoping beyond the schema note). Baseline 3 applies.

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 operation (cross-check a text), the exact resource it matches against (ai_memory_items with category 'recurring_error'), and the algorithm (deterministic marker matching). It even defines the input shape in domain terms (ticket subject + body, customer message), so an agent can tell this apart from a suggestion or creation tool without opening the schema.

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 clear when-to-use rule ('see whether a new report is a known repeat before investigating from scratch') and an implicit when-not-needed signal (tickets created via create_ticket / the widget are already matched automatically and get a hint note). It does not explicitly name a sibling alternative such as suggest_recurring_error, so it falls just 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources