Skip to main content
Glama

find_patterns_for_task

Given a natural-language task description (e.g., 'I'm building a tool-using agent that runs shell commands'), return the most relevant patterns grouped by suite. Use this as a starting point for any cross-cutting design question; then follow up with get_requirement on specific pattern_ids. Defaults to verbosity='compact' (cheap triage); pass 'full' to inline snippets and confidence flags.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskYes
limitNo
verbosityNocompact

TDQS

A4.2/5.0
Behavior4/5

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

No annotations provided, so the description carries the full burden. It discloses that default output is 'compact' (cheap triage) and 'full' inlines snippets and confidence flags. It implies a read-only operation (find/return) and does not suggest destructive behavior. However, it could mention potential cost of full verbosity or error conditions.

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 concise sentences with no fluff. Purpose, usage, and verbosity defaults are front-loaded. Every sentence adds value.

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?

Given no output schema and no annotations, the description covers core purpose and usage but lacks explanation of the limit parameter and does not describe the output structure (e.g., how results are grouped by suite). Still adequate for a simple tool with good guidance, but incomplete.

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

Parameters2/5

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

Description only explains 'task' and 'verbosity' parameters, but omits 'limit' entirely. Schema description coverage is 0%, so the description must compensate for all parameters. The limit parameter is left undocumented, making this a significant gap.

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?

Description starts with a specific verb and resource: 'Given a natural-language task description... return the most relevant patterns grouped by suite.' It clearly states the tool's purpose and differentiates from siblings like get_requirement by positioning this as a starting point.

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

Usage Guidelines5/5

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

Explicit usage guidance: 'Use this as a starting point for any cross-cutting design question; then follow up with get_requirement on specific pattern_ids.' Also explains when to use 'compact' vs 'full' verbosity, giving clear alternatives.

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.

TDQS

A4/5.0
Disambiguation5/5

Each tool has a distinct purpose: finding patterns, cross-references, operational heuristics, requirements, listing, searching, and review stats. Overlap is minimal and well-differentiated by input parameters.

Naming Consistency5/5

All tool names follow a consistent verb_noun pattern in snake_case, e.g., find_patterns_for_task, list_requirements, resolve_id. No mixing of conventions or vague verbs.

Tool Count5/5

12 tools cover core operations (list, get, search, resolve, review) for the framework domain without bloat. Each tool serves a clear, non-redundant purpose.

Completeness4/5

Covers most needed operations for exploring the framework: listing suites, searching patterns, getting details, cross-references, review stats. Lacks a direct 'list all patterns' tool, but list_requirements and search_patterns partially fill that gap.