Skip to main content
Glama

search_drawings

Read-onlyIdempotent

Find which plan sheets a finish code, room name, keynote or spec reference appears on by searching every sheet's text layer at once, returning each match's sheet ID and bounding box.

Instructions

FALLBACK after the record: answer marks, rooms, doors and status from lookup_mark / room_facts / door_facts / project_status; search the drawings when they say not_in_record and the person wants a look. Search drawing sources only (classified specification books are excluded and disclosed). Search EVERY plan sheet's text layer at once — which sheets a finish code ('CPT-2'), room name, keynote or spec reference appears on. Each match comes back with its sheet_id, normalized bbox (the find_text frame), the text of its line and then, the lines printed under it (a wrapped note, the value under a label). no_text_pages lists scanned pages with no text layer that were NOT searched — an empty result with that list non-empty is not proof the text is absent. truncated/partial = narrow q.

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>",
      "q": "<q>"
    },
    "name": "search_drawings"
  }
}

Input Schema

NameRequiredDescriptionDefault
qYestext to find in every sheet; case-insensitive substring
limitNomax matches across the set (default 300)
project_idYesThe project to work on (list_projects names them).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the return shape (sheet_id, normalized bbox in the find_text frame, matched line text, and `then` lines beneath it), and critically warns that no_text_pages lists scanned pages that were NOT searched, so an empty result is not proof of absence. That coverage caveat is exactly the behavioral context annotations cannot supply.

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 most decision-relevant fact (FALLBACK), then scope, then return shape, then caveats — every clause carries information. The style is telegraphic and parenthetical-heavy, which makes it dense to parse on a first read, but nothing is filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter, no-output-schema search tool, the description covers search scope, exclusions, return fields, the incomplete-coverage caveat, and the recovery action for truncated results. An agent has everything needed to decide to call it and to interpret a null or partial result.

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

Parameters4/5

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

Schema coverage is 100%, so the baseline is 3; the description earns above that by explaining that `q` is matched against every sheet's text layer and by interpreting the truncation signal ('truncated/partial = narrow q'), which ties result-state back to how the caller should adjust `q`. It adds less specific meaning about `limit` beyond what the schema already documents.

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 drawings', 'Search EVERY plan sheet's text layer at once') and enumerates the kinds of queries it answers (finish code, room name, keynote, spec reference). It also delimits scope against siblings by excluding classified specification books, so an agent can separate it from search_specifications 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 Guidelines5/5

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

Opens with an explicit routing rule: 'FALLBACK after the record' — use lookup_mark / room_facts / door_facts / project_status first, and only search drawings 'when they say not_in_record and the person wants a look.' It also names when-not (specification books are excluded) and gives a recovery rule for truncated results ('narrow q').

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