Skip to main content
Glama

query_table

Read-onlyIdempotent

Read rows from a table. Optional filter is an exact-match map of column slug => value; optional search is a case-insensitive substring match across all cells. Returns source_document for the table (null for spreadsheets and Airtable). Each row includes source_page: the 1-based PDF page, PowerPoint slide, or Google Slides slide the row was extracted from, or null when the page is unknown (Word, ODT, RTF, spreadsheets, Airtable, manually created rows, or a row that spans pages). Cite source_document.filename and source_page when an extracted value looks wrong. Do not invent a page when source_page is null. If a column is already named source_page, the page is returned as _source_page.

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

Input Schema

NameRequiredDescriptionDefault
limitNoMaximum rows to return (default 25, max 100).
filterNoOptional exact-match filter: column slug => value.
offsetNoRows to skip, for paging past the first page. Use offset + returned while it is below total.
searchNoOptional case-insensitive text search: keeps rows where any cell contains this text (e.g. part of a name or invoice number). Combines with filter; total counts matches.
columnsNoOptional column slugs to return (from list_tables). Omit for all columns. source_page is always included.
table_slugYesSlug of the table to read (from list_tables).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / search
      Added value: +{
      +  "description": "Optional case-insensitive text search: keeps rows where any cell contains this text (e.g. part of a name or invoice number). Combines with filter; total counts matches.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / columns
      Added value: +{
      +  "description": "Optional column slugs to return (from list_tables). Omit for all columns. source_page is always included.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "Rows to skip, for paging past the first page. Use offset + returned while it is below total.",
      +  "type": "integer"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / filter / description
      Added value: +"Optional exact-match filter: column slug => value."
    • addedInput schema / properties / limit / description
      Added value: +"Maximum rows to return (default 25, max 100)."
    • addedInput schema / properties / table_slug / description
      Added value: +"Slug of the table to read (from list_tables)."
  4. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover safety with readOnlyHint, idempotentHint, and destructiveHint=false, and the description adds meaningful return behavior: source_document null cases, source_page meaning by file type, null-page handling, citation guidance, and the _source_page collision rule. It does not contradict the annotations.

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

Conciseness5/5

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

The description front-loads the core operation and then packs filter/search and source-page caveats into a short, dense paragraph. Every sentence carries operational value, including the null-page and column-collision rules, with no 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 six-parameter read tool with no output schema, the description covers the key return fields and citation caveats an agent needs. Pagination mechanics remain in the schema, and the definition is complete enough for correct invocation.

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%, including limit, filter, offset, search, columns, and table_slug, so the baseline is 3. The description reinforces exact-match filter and substring search semantics but adds little beyond the schema; the _source_page detail concerns output behavior rather than parameter meaning.

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?

States a specific verb and resource: 'Read rows from a table.' It makes clear the scope is a table identified by table_slug, but does not explicitly contrast with siblings such as related_rows, so sibling differentiation is not fully established.

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

Usage Guidelines3/5

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

The primary use case is clear and the description points to list_tables for discovering table_slug. However, it gives no explicit when-to-use versus related_rows or when-not guidance, so usage is implied rather than fully routed.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources