Skip to main content
Glama

Sample rows from a public table

sample_rows
Read-onlyIdempotent

The publisher's materialized preview of a public table — real rows, no account, no query cost. Private workspace tables are not available here; use query_run on a successful build instead. To sample a source before anything is built, use probe_source (kind sample_rows). 20 rows by default, 100 at most, and they are always the same rows: this is a sample for understanding shape and values, NOT a query. Example: {"table_id": "0f2f6bfa-4a63-4f75-9a0b-1a7d9c5b2e10", "limit": 20}. Returns {table, columns, rows, row_count, total_row_count, sample_truncated} — total_row_count is how many rows the whole table holds, which is usually far more than the sample. To find rows by their words, use search_table, which needs no key on a table whose publisher allows download. To filter, sort, aggregate or read beyond the sample, use query_table, which needs a workspace key.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
table_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations cover the safety profile (readOnly, idempotent, non-destructive, open world), and the description adds substantial behavior beyond them: no account required, no query cost, default 20 rows capped at 100, and crucially that the rows are deterministic across calls and this is not a query. It also documents the returned fields and the meaning of total_row_count versus row_count.

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-loaded with the core definition and deterministic-sample warning before routing to alternatives, and the example plus return-shape sentence are compact. It is dense and slightly overstuffed with sibling routing, but nearly every clause carries information an agent needs.

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?

With no output schema, the description compensates by listing the return keys and explaining total_row_count versus row_count. Combined with the determinism warning, cap semantics, and routing rules, nothing essential for a correct call is missing.

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 the load; it supplies a concrete invocation example with a table_id UUID and limit, and clarifies that limit caps the sample size. The 20-default/100-max numeric constraints merely restate the schema's default and maximum, so the added meaning is real but partly duplicative.

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?

The description opens with a concrete verb+resource ('materialized preview of a public table') and immediately states scope ('real rows, no account, no query cost'). It explicitly distinguishes itself from query_run, probe_source, search_table, and query_table, so an agent can route 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?

Every alternative is named with the condition that selects it: pre-build sampling goes to probe_source, word lookup to search_table, filtering/sorting/aggregation or reading beyond the sample to query_table, private workspace tables to query_run. Exclusions are stated explicitly ('Private workspace tables are not available here').

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