Skip to main content
Glama

query_table

Read-onlyIdempotent

Read schedule cells or page an entire construction schedule by title, row tag, column, or value filters, returning source-sheet and box citations for each result.

Instructions

FALLBACK for a mark or room lookup: lookup_mark / room_facts / door_facts answer from the record first; use this to page a whole schedule. Read schedule cells by table title, row tag or column. For a known room/tag, start with row_key alone. title filters the printed title, not the schedule kind. If a narrowed query is empty, remove guessed filters and retry. Values retain source-sheet and box citations; partial coverage limits absence claims, not positively returned cells. Quote codes exactly; expand only from a cited legend/specification. Returned row_evidence IDs can be rechecked with expected_row_evidence_id and the same filters/include_cells:true. IDs verify the observation snapshot, not OCR or interpretation. Give at least one of title, row_key, column, cell_value, cell_contains or sheet_id. For an entire schedule use sheet_id (or title) with include_cells=true: every row comes back in one read. Sheet numbers and their sheet_ids are in the SHEET INDEX. source_links supplies linked notes/definitions from all columns. If omitted or paged, follow source_links_next_tool or read_drawing_links(node_id=source_links_id); preserve note conditions and exceptions before estimating.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
titleNoPrinted schedule-title text, not a kind such as room-finish. Omit guessed titles when querying a known room/tag.
columnNo
offsetNo
row_keyNo
sheet_idNo
cell_valueNo
project_idYesThe project to work on (list_projects names them).
cell_containsNo
include_cellsNoFor an entire schedule, true returns every row with its cited cells in one read (follow next_offset only if the result says it was cut).
expected_row_evidence_idNoRecheck a returned row ID using the same source/table/row filters and include_cells:true. Changed evidence refuses409.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.23

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare it read-only, idempotent and closed-world, but the description adds behaviour well beyond them: returned values keep source-sheet and box citations, partial coverage limits absence claims only, evidence IDs verify the observation snapshot rather than OCR interpretation, and a changed-evidence recheck refuses with 409. That is exactly the extra context a caller needs before trusting or re-verifying results.

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-loads the fallback role so the agent reads the routing decision first, and nearly every clause carries real information. It is dense prose with some hard-to-parse sentences (the evidence-ID recheck sentence packs three rules into one line) and interleaves usage, citation caveats and pagination, but there is little outright filler.

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 an 11-parameter, no-output-schema query tool this covers the essentials: entry point, whole-schedule mode, retry-on-empty, citation semantics, evidence verification and the follow-up tools for linked notes. Gaps remain on offset/limit defaults and any hint at the result envelope's top-level fields beyond rows and citations, though the description does mention paging and next_offset follows.

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 only 36%, so the description carries real weight and does: it disambiguates title ('filters the printed title, not the schedule kind'), explains row_key as the preferred first probe for a known room/tag, links include_cells to the whole-schedule pattern, and specifies expected_row_evidence_id's same-filters requirement and 409 behaviour. limit and offset get only oblique treatment ('If omitted or paged', 'follow source_links_next_tool'), leaving pagination semantics thinner than the rest.

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 ('Read schedule cells by table title, row tag or column') and immediately positions itself against named siblings: 'FALLBACK for a mark or room lookup: lookup_mark / room_facts / door_facts answer from the record first; use this to page a whole schedule.' An agent can distinguish the paged schedule read from the point-lookup tools without opening any 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?

Gives explicit when-not-to-use (mark/room lookups go to the facts tools first), a recommended entry path ('For a known room/tag, start with row_key alone'), a whole-schedule recipe ('use sheet_id (or title) with include_cells=true'), a required-filter rule ('Give at least one of title, row_key, column, cell_value, cell_contains or sheet_id') and recovery guidance ('If a narrowed query is empty, remove guessed filters and retry').

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