Skip to main content
Glama

get_records

Read records from a Grist table and narrow results with filters, sorting, and limits to retrieve only the data you need.

Instructions

Read records from a table, with optional filtering, sorting, and limit.

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": "get_records"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoComma-separated column names, prefix with - for descending (e.g. '-Date,Name')
limitNoMaximum number of records to return
doc_idNoDocument ID
filterNoFilter object: {column_name: [allowed_values]}
table_idYesTable to read from

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it only implies read-only semantics through the word "Read." It says nothing about default limit behavior, pagination or truncation of large result sets, permission requirements, or error handling for invalid table_id. For a data-access tool with zero annotation coverage this leaves significant undisclosed behavior.

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?

A single front-loaded sentence with no filler, correctly leading with the core operation before the optional modifiers. It is arguably over-compact given the tool's five parameters, but nothing in it is wasted.

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?

There is no output schema, so the description could usefully say something about the shape or volume of returned records, and it omits any mention of default limits or the nested filter semantics. The rich schema offsets some of this, making the definition minimally adequate rather than complete.

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%, so all five parameters (sort syntax, limit, filter object shape, doc_id, table_id) are already documented in the schema. The description only restates that filtering, sorting, and limit exist, adding no syntax or default-value detail beyond the schema, which warrants the baseline 3.

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?

The description states a specific verb and resource ("Read records from a table") and enumerates the capabilities (filtering, sorting, limit), which clearly separates it from write siblings like add_records, update_records, and delete_records. It does not explicitly name an alternative such as run_sql, so it falls short of full sibling differentiation.

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?

Usage is only implied: an agent can infer this is the tool for fetching rows, and the mention of optional filtering/sorting/limit hints at common scenarios. There is no explicit statement of when to prefer this over run_sql or other read paths, and no exclusions or prerequisites are given.

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