Skip to main content
Glama

Query rows

query_rows
Read-only

Read table rows with pipeline stage and ICP fit scores, filtering by exact column values or stage to review and segment leads.

Instructions

Read rows from a table, each with its pipeline stage and icp: how well the lead fits the workspace's ideal customer profile (score 0-100, the checks behind it, and any manual adjustment with its note).filter is an exact-match object on column keys, e.g. {"country": "Spain"}; stage filters by stage (new, contacted, replied, meeting, won, lost).

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_id": "<table_id>"
    },
    "name": "query_rows"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
stageNo
filterNo
offsetNo
table_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds useful detail about returned row contents (ICP score range, checks, manual adjustment note), but says nothing about pagination defaults, ordering, or result-size behavior for a tool exposing limit and offset.

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 description is compact and front-loaded with the core action, then moves to return semantics and filter/stage usage. It stays dense without padding, though the ICP parenthetical makes the opening sentence heavier than ideal.

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

Completeness3/5

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

With no output schema, the description appropriately explains the row payload including ICP details. It remains incomplete for a paginated query tool because limit and offset behavior, ordering, and default result size are not addressed, which an agent would need to call it safely.

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 0%, so the description must carry parameter meaning: it explains `filter` as an exact-match object on column keys with a concrete example, and names the allowed `stage` values. `table_id` is self-evident and `limit`/`offset` go unexplained, but the two non-obvious parameters are handled well enough to exceed the baseline.

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") and additionally specifies what each row contains (pipeline stage and ICP score, checks, and manual adjustments). It is clear what the tool does, but it does not explicitly distinguish itself from siblings like update_rows or delete_rows beyond the read framing.

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 read-only nature implies when to use it, and the stage/filter explanation gives practical context for narrowing results. However, there is no explicit guidance on when to choose this over sibling tools or any stated exclusions, leaving usage to inference.

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