Skip to main content
Glama

Create Defect Matcher

create_defect_matcher

Creates a defect matcher that automatically links future test failures to a defect when error messages or stack traces match provided regex patterns.

Instructions

Create a defect matcher (automation rule) for a defect.

Matchers automatically link future failing test results to a defect when the test failure's error message or stack trace matches the provided regex patterns.

At least one of message_regex or trace_regex must be supplied.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesHuman-readable matcher rule name
defect_idYesID of the parent defect
trace_regexNoRegex to match against stack traces
message_regexNoRegex to match against error messages
output_formatNoOutput format: 'json' (default) or 'plain'.
Behavior4/5

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

Annotations indicate it's a write operation (readOnlyHint=false) and not destructive (destructiveHint=false). The description adds behavioral context: the matcher will automatically link future failures based on regex patterns. It doesn't detail side effects like overwriting existing matchers or required permissions, but the core behavior is well explained.

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?

The description is extremely concise: two short paragraphs with no redundant sentences. The first sentence states the purpose, the second explains functionality, and the third gives a critical constraint. Every sentence 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?

Given the tool has 5 parameters with full schema descriptions, the description provides adequate context for selection and invocation. It explains the core concept and a key requirement. However, it lacks information about the return value (no output schema), which could be useful for an agent to understand the outcome.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds significant value by explicitly stating the cross-field constraint that at least one of 'message_regex' or 'trace_regex' must be supplied, which is not enforced in the schema alone. This helps ensure correct invocation.

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 clearly states the verb 'create' and the resource 'defect matcher (automation rule)'. It explains what the matcher does, making it easy to distinguish from other tools like 'create_defect' or 'update_defect_matcher'.

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?

The description provides context that matchers automatically link future failing test results, implying when to use this tool. It explicitly states a key constraint: at least one regex must be supplied. However, it does not contrast with alternatives like 'link_defect_to_test_case' or provide explicit when-not-to-use guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ivanostanin/lucius-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server