Skip to main content
Glama

Preview a dataset

preview_dataset
Read-only

FREE. Sample of a dataset before buying: up to 3 real rows from the dataset (never more than half of it), all field names, total row count, created_at timestamp and the exact USDC price buy_dataset will charge. JSON output. Returns JSON with up to 3 real rows (never more than half the dataset), every field name, the total row count, created_at, and the exact USDC price buy_dataset charges.

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": {
      "dataset_id": "<dataset_id>"
    },
    "name": "preview_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataset_idYesDataset id from list_datasets. Format: the dataset_id string, lowercase with underscores. Example: live_crypto_top500_markets. Required.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dataset_id / description
      Previous value: -"Id from list_datasets."New value: +"Dataset id from list_datasets. Format: the dataset_id string, lowercase with underscores. Example: live_crypto_top500_markets. Required."
  2. Changed1 schema field changed
    • changedInput schema / properties / dataset_id / description
      Previous value: -"Dataset id from list_datasets. Format: the dataset_id string, lowercase with underscores. Example: live_crypto_top500_markets. Required."New value: +"Id from list_datasets."
  3. Changed1 schema field changed
    • changedInput schema / properties / dataset_id / description
      Previous value: -"Id from list_datasets."New value: +"Dataset id from list_datasets. Format: the dataset_id string, lowercase with underscores. Example: live_crypto_top500_markets. Required."
  4. Changed1 schema field changed
    • changedInput schema / properties / dataset_id / description
      Previous value: -"Dataset id from list_datasets. Format: the dataset_id string, lowercase with underscores. Example: live_crypto_top500_markets. Required."New value: +"Id from list_datasets."
  5. Changed1 schema field changed
    • changedInput schema / properties / dataset_id / description
      Previous value: -"Id from list_datasets."New value: +"Dataset id from list_datasets. Format: the dataset_id string, lowercase with underscores. Example: live_crypto_top500_markets. Required."
  6. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=false and the description is fully consistent, adding that the call is FREE and capped at 3 rows or half the dataset. The only thing left implicit is whether rate limits apply; the cost and sampling constraints are valuable additions beyond 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.

Conciseness3/5

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

Front-loaded well with the FREE flag and sampling cap, but the return contents are listed twice almost verbatim ('up to 3 real rows... all field names, total row count, created_at... USDC price'), which is a wasted second sentence.

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?

No output schema exists, so the description must carry the return contract, and it does: row cap, field names, total row count, created_at, and the exact price buy_dataset would charge. Nothing an agent needs to decide between previewing and buying is missing.

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 coverage is 100% and the single dataset_id parameter already documents format, example, and required status. The description adds no further parameter semantics, so the baseline 3 applies.

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?

States a specific verb (sample/preview) and resource (dataset), and explicitly contrasts with buy_dataset, the purchase action. An agent can tell exactly what this returns and why it exists without consulting the schema.

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?

'Sample of a dataset before buying' plus the repeated mention of buy_dataset gives a clear use context and names the alternative. It stops short of an explicit 'use this instead of buy_dataset when you need to inspect fields first' exclusion, so a 4 rather than a 5.

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.