Skip to main content
Glama

search_abstractions

Read-onlyIdempotent

Find abstractions by keyword across names, layers, kinds, and tags, returning relevance-ranked results grouped by layer for quick workspace lookup.

Instructions

Search the abstraction index by keyword. Results are ranked by relevance and grouped by layer.

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": {
      "query": "<query>"
    },
    "name": "search_abstractions"
  }
}

Input Schema

NameRequiredDescriptionDefault
layerNoOptional card layer or framework prefix, e.g. "ptoas", "simpler", "pypto/passes". Results stay grouped by layer.
queryYesKeyword to search across abstraction names, layers, kinds, tags, and related fields
fieldsNo"summary" returns name+layer+one_liner; "full" adds tags, arch_families, repossummary
max_resultsNoMaximum results to return (1–100)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.2
    • addedInput schema / properties / layer
      Added value: +{
      +  "default": "",
      +  "description": "Optional card layer or framework prefix, e.g. \"ptoas\", \"simpler\", \"pypto/passes\". Results stay grouped by layer.",
      +  "title": "Layer",
      +  "type": "string"
      +}
  2. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description adds genuine behavioral information beyond them by stating that results are relevance-ranked and grouped by layer, but it says nothing about result volume limits, empty results, or how grouping interacts with the layer filter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences, front-loaded with the action and scope, with no filler or redundant phrasing. It could justify a 5 given its density, but the brevity comes at the cost of the guidance the definition lacks.

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?

With full schema coverage, rich annotations, and an output schema, the description only needs to establish purpose and routing, and it does the former. For a search tool sitting among several sibling search tools on different corpora, the missing selection guidance leaves a real gap for an agent choosing between them.

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 100%, so all four parameters (query, layer, fields, max_results) are already documented in the schema, establishing a baseline of 3. The description's only additional hint is that grouping by layer is preserved, which the layer parameter description already states, so no meaningful new semantics are contributed.

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 names a specific verb and resource ("Search the abstraction index by keyword"), which is clearly distinguishable from search_code and search_tracker by the 'abstraction index' target. However, it never explicitly contrasts itself with those siblings, so differentiation is inferred from the resource name alone.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance, no exclusions, and no mention of the obvious alternatives (search_code, search_tracker, explain_abstraction). An agent must infer from the noun phrase 'abstraction index' that this tool is for concept/abstraction lookups rather than source code.

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