Skip to main content
Glama

Preview generated data

preview_data
Read-onlyIdempotent

Generate this project's data and return the rows themselves.

    Capped at fifty rows a table so the answer stays readable; every table
    says how many rows it really has. Use `write_data` for the whole set.

    `rows` overrides the project's row count, `seed` pins the values,
    `as_of` (YYYY-MM-DD) pins the day dates are placed around, and `locale`
    overrides the project's. Leave them out and the project's own settings
    are used, which are the ones the studio previewed.
    

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": {
      "project_id": "<project_id>"
    },
    "name": "preview_data"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNo
seedNo
as_ofNo
localeNo
project_idYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, the description discloses the concrete output behavior an agent cannot guess: a fifty-row-per-table cap and the fact that each table reports its true row count. That truncation contract is the key behavioral trait for planning around this tool.

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 purpose and the cap are front-loaded, and the parameter paragraph is tightly organized. The closing clause about the studio-previewed settings is mildly redundant but still adds real information, so there is little waste overall.

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 an output schema present, return-value detail is correctly omitted, and the description covers purpose, cap behavior, alternative routing, and every optional parameter's effect. Nothing an agent needs in order to call this correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does so: it explains `rows` as an override of the project's row count (distinct from the capped return), `seed` as value pinning, `as_of` with an explicit YYYY-MM-DD format, and `locale` as a project-setting override, plus what happens when all are omitted.

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 opening sentence gives a specific verb and resource ("Generate this project's data and return the rows themselves") and immediately distinguishes the tool's scope from the full-data path. An agent can tell what it produces without opening 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 Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the explicit alternative and the condition that selects it: use `write_data` when you need the whole set instead of the capped preview. It also states the fallback behavior (omitted params use the project's own settings, the ones the studio previewed), so there is nothing left to infer.

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