Skip to main content
Glama
jgravelle
by jgravelle

get_rows

Read-only

Retrieve filtered rows from datasets using safe, SQL-parameterized filters. Supports operators like eq, contains, and between, plus column projection to reduce token usage.

Instructions

Filtered row retrieval via structured filters. All filters are SQL-parameterized (no injection). Operators: eq, neq, gt, gte, lt, lte, contains, in, is_null, between. Use columns=[] to project — reduces tokens significantly on wide tables. Prefer aggregate() for summaries over paginating through rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax rows returned (default 50, hard cap 500)
offsetNoPagination offset (default 0)
redactNoScrub PII / credentials (emails, SSNs, Luhn-valid credit cards, JWTs, API keys, PEM blocks, AWS keys, GitHub/Slack tokens) from row cells before return (default true). Numeric cells are never altered. _meta.redaction reports cells_redacted + per-pattern counts.
columnsNoColumn projection — reduces tokens (default: all)
datasetYesDataset identifier
filtersNoFilter conditions (ANDed). E.g. [{"column": "AREA NAME", "op": "eq", "value": "Hollywood"}]
order_byNoColumn to sort by
order_dirNoSort direction (default 'asc')asc
redact_patternsNoAdditional Python regex patterns to layer on top of the built-in set. Invalid patterns are silently skipped (reported in _meta.redaction.invalid_custom_patterns).
redact_skip_columnsNoColumn names to exempt from redaction (e.g. an `email_hashed` column where the email pattern would false-positive).
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds value by disclosing SQL parameterization (no injection) and noting that column projection reduces token usage significantly. This provides useful behavioral context beyond the annotation, though it doesn't describe pagination or redaction behavior.

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 is compact and front-loaded with the core purpose, then efficiently adds security, operator list, projection tip, and aggregate alternative in only five short sentences. No redundancy or 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 a tool with 10 parameters and no output schema, the description covers the essential usage: filters, operators, projection, and when to prefer aggregate. It could mention pagination defaults or redaction, but those are documented in the schema, so the description is adequately complete.

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% with all parameters described. The description enhances this by explaining the operator set (eq, neq, gt, etc.), emphasizing the token-reduction benefit of columns=[], and noting the SQL-parameterization security aspect. This adds meaning beyond the schema's descriptions.

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?

Description clearly states 'Filtered row retrieval via structured filters' with a specific verb and resource. It distinguishes itself from aggregate() by suggesting aggregate() for summaries, and the sibling context includes many related tools, but this description scopes the tool's function precisely.

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 provides explicit guidance to prefer aggregate() for summaries instead of paginating through rows, and advises using columns=[] for projection on wide tables. However, it doesn't explicitly mention alternatives like sample_rows or search_data, so there is room for more exclusion guidance.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jgravelle/jdatamunch-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server