Skip to main content
Glama

find_patterns_for_task

Read-only

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.

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": {
      "task": "<task>"
    },
    "name": "find_patterns_for_task"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYes
limitNo
verbosityNocompact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / task / minLength
      Previous value: -5New value: +2
  2. First observed

TDQS

A4/5.0
Behavior4/5

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

With annotations already declaring a safe read-only, non-destructive, closed-world operation, the description adds useful behavioral context: results are grouped by suite, compact mode is cheap triage, and full mode inlines snippets and confidence flags. It does not disclose pagination, limits, or response size behavior, but it goes meaningfully beyond the annotations.

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 three tightly written sentences. It front-loads the core purpose, then adds usage flow and parameter behavior with no redundant or filler wording.

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?

There is no output schema, and the description covers the essential return shape: patterns grouped by suite, with optional inline snippets and confidence flags in full mode. For a three-parameter read-only search tool, this is nearly complete, though it omits the meaning of the limit parameter and does not contrast with search_patterns.

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 0%, so the description must compensate. It explains the task parameter with a concrete example and clarifies the verbosity enum, its default, and the trade-off between compact and full modes. However, it does not explain the limit parameter or its default and bounds.

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

Purpose4/5

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

The description states a specific verb and resource: given a natural-language task, return relevant patterns grouped by suite. It clearly differentiates its role as a starting point for cross-cutting design questions and points to get_requirement as a follow-up, but it does not distinguish itself from the sibling search_patterns tool.

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 clear usage context: use this as a starting point for any cross-cutting design question, then follow up with get_requirement on specific pattern_ids. It also explains when to use verbosity='full' versus the default compact mode for cheap triage. It does not explicitly exclude scenarios or mention search_patterns as an alternative.

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.