Skip to main content
Glama

search_record

Read-onlyIdempotent

Search a construction project record's keys, labels and aliases, narrowed by kinds like sheet, room or code, to return sourced answers with an ok, partial or not_in_record status.

Instructions

Search the project record's keys, labels and aliases (exact key first). kinds narrows it: a comma list of sheet, room, opening, code, schedule, row, legend, note, spec, condition, quantity, hardware_set, scope_key. Answers from the project record (every indexed schedule, legend, tag, room, sheet, spec section and condition, linked once with sources); status ok | partial | not_in_record. Recite it with its sources; on not_in_record say so, and use next_read only if the person wants the drawings checked.

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": {
      "project_id": "<project_id>",
      "text": "<text>"
    },
    "name": "search_record"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYes
kindsNo
project_idYesThe project to work on (list_projects names them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, so the safety profile is covered. Beyond that, the description adds genuinely useful behavior: the three status outcomes (ok | partial | not_in_record), the fact that hits are 'linked once with sources', and the instruction to recite sources and explicitly report not_in_record. Only the matching semantics (fuzzy vs exact for non-key text) remain undisclosed.

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?

Front-loaded with the core action and scope, then the kinds vocabulary, then result/next-step behavior — a sensible order with little filler. The third sentence is dense and slightly run-on ('Recite it with its sources; on not_in_record say so...'), costing a bit of scannability.

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 compensates by naming the status field values, the source linkage, and how to report results — enough for an agent to call it and act on the response. A short note on match strictness for free-text queries is the only material omission for a 3-parameter read tool.

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

Parameters5/5

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

Schema coverage is only 33% and kinds has no enum in the schema, yet the description supplies the full comma-separated vocabulary (sheet, room, opening, code, schedule, row, legend, note, spec, condition, quantity, hardware_set, scope_key) and explains that it narrows the search. It also characterizes text as matching keys, labels and aliases with exact-key priority, which is meaning the schema does not carry.

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?

States a specific verb and resource ('Search the project record's keys, labels and aliases') and immediately scopes what the record contains (indexed schedules, legends, tags, rooms, sheets, spec sections, conditions). It also distinguishes itself from drawing-level lookup by routing to next_read only when drawings must be checked, so an agent can tell it apart from search_drawings without opening either schema.

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?

Gives a clear conditional alternative ('use next_read only if the person wants the drawings checked') and an ordering hint ('exact key first'), which tells the agent both when to use this tool and when not to. It does not spell out the boundary with get_record or search_specifications, so the guidance is solid but not exhaustive.

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

Deploy Server

Other Tools