Skip to main content
Glama

lookup_mark

Read-onlyIdempotent

Retrieve everything tied to a code or mark—schedule rows, legend, spec, rooms, sheets, quantities, conflicts, and sources—so you can resolve and verify it from the project record.

Instructions

Everything about one code or mark (finish code CPT-2, fixture or equipment mark, door or window mark, hardware set): its row in every schedule with all cells, its legend entry, its specification section and products, the rooms and sheets that use it, the conditions and quantities on it, and conflicts or unresolved items. 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>",
      "mark": "<mark>"
    },
    "name": "lookup_mark"
  }
}

Input Schema

NameRequiredDescriptionDefault
markYesthe code or mark as the person wrote it (CPT-2, cpt2, RTU-1, 102)
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 establish read-only, idempotent, closed-world, non-destructive behavior, so the description's job is to add operational detail — and it does: results come from a pre-linked index (schedules, legends, tags, rooms, sheets, specs, conditions), status is one of ok | partial | not_in_record, and responses must be recited with sources. It does not discuss result size, truncation, or what a 'partial' result omits, which keeps it short of a 5.

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?

The payload enumeration is front-loaded in the first sentence and the fallback/status rules follow in the second, so the agent hits the most important information first. The opening clause is dense — a long comma-separated inventory — but each item conveys distinct return content rather than 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?

With no output schema and only two parameters, the description carries the full burden of describing returns and does so explicitly (every schedule row, legend entry, spec section, rooms/sheets, conditions, conflicts). Combined with status semantics, the sourcing requirement, and the next_read escalation path, an agent has everything needed to call it and interpret the 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 adds value by clarifying that mark spans multiple code types and that the schema's example set (CPT-2, cpt2, RTU-1, 102) reflects 'as the person wrote it' input, implying lenient matching. project_id is only implicitly covered via 'the project record,' which is why this is not a 5.

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?

The description names a specific verb and resource ("Everything about one code or mark") and enumerates the exact payload: schedule rows with all cells, legend entry, spec section and products, rooms and sheets, conditions and quantities, conflicts. It also lists the entity types the mark can denote (finish code, fixture/equipment mark, door/window mark, hardware set), so an agent can recognize the input domain without opening the 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?

It scopes the tool to the indexed project record and explicitly routes to next_read only when the person wants the drawings checked, which is a real when-to-use alternative with a condition attached. It also prescribes behavior on failure ("on not_in_record say so"). What's missing is a negative case for when not to call it at all (e.g., browsing a whole schedule), but the routing guidance is concrete.

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