Skip to main content
Glama

get_error_patterns

Identifies recurring error patterns in repositories and provides prevention hints to avoid repeating past mistakes.

Instructions

Return recurring error patterns with prevention hints to avoid repeating mistakes.

Each entry has: error_type, count, affected files, last_seen, prevention_hint, and the most recent error message for context.

Use this to guide Claude away from solutions that have historically failed.

min_count: only return errors seen at least this many times (default 1). repo_path: optional absolute path to the target repository.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
min_countNo
repo_pathNo
Behavior3/5

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

No annotations exist, so description must cover behavioral traits. It discloses the return format (fields like error_type, count) but omits potential caveats such as performance impact, rate limits, or whether it requires permissions. Adequate for a read-only tool, but not rich.

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 short paragraphs, no extraneous info. Purpose stated first, then details. Every sentence provides value.

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?

No output schema, but description explains return fields. Tool has low complexity (2 optional params). Usage context and edge cases are covered, making it complete enough for an agent.

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 description coverage is 0%, so description must explain parameters. It does: min_count's effect and default, repo_path's purpose as optional absolute path. This adds substantial meaning beyond the schema's type/default fields.

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 it returns 'recurring error patterns with prevention hints' and lists each entry's fields. This verb+resource definition distinguishes it from sibling tools like architecture_overview or cross_repo_search.

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?

Explicit guidance: 'Use this to guide Claude away from solutions that have historically failed.' This clarifies the context. Does not explicitly state when not to use or name alternatives, but the context is strong.

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/ashlesh-t/cognirepo'

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