Skip to main content
Glama

search_code_patterns

Search desk project entries by keyword pattern; this deprecated alias points to search_desk, so call get_desk_summary first and use search_desk.

Instructions

Deprecated alias of search_desk. Prefer search_desk. Use get_desk_summary first.

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": {
      "pattern": "<pattern>"
    },
    "name": "search_code_patterns"
  }
}

Input Schema

NameRequiredDescriptionDefault
patternYesKeyword to search for

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.0
    • changedInput schema / properties / pattern / description
      Previous value: -"Code pattern or keyword to search for"New value: +"Keyword to search for"
  2. First observedv1.4.2

TDQS

A4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it does disclose the critical trait that this tool is deprecated. However, it doesn't say what actually happens on invocation – whether it still executes, transparently redirects, or errors out – nor whether results may be stale or the endpoint will be removed.

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 short sentences, front-loaded with the deprecation warning and the preferred alternative. Every clause carries directive value and there is no padding.

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?

For a one-parameter deprecated alias, the description covers the essentials: it's deprecated, what to use instead, and what to run first. The one residual gap is whether calling it still works – minor, but relevant if an agent encounters it in an older workflow.

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?

With a single parameter at 100% schema description coverage, the schema already documents 'pattern' as the keyword to search for, so baseline 3 applies. The description adds nothing about the parameter – notably, since this aliases search_desk, it's unclear whether 'pattern' is interpreted as a code pattern or a plain keyword.

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 identifies the tool as a deprecated alias of search_desk, which lets an agent place it relative to siblings without opening either schema. It stops short of stating the actual operation (what is searched or what a 'desk' is), deferring that entirely to the target tool's own definition.

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?

Explicitly instructs 'Prefer search_desk' and names the prerequisite 'Use get_desk_summary first' – an alternative, an exclusion, and a sequencing rule in one line. An agent needs no inference to decide what to do.

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