Skip to main content
Glama
Local Business Data & Report Analyst

Local Business Data & Report Analyst

preview_dataset

Return the first N rows (max 100) of a CSV, Excel, or SQLite dataset to inspect columns and sample values before running revenue, profit, or trend analysis.

Instructions

Return the first N rows (max 100) of any CSV, Excel (.xlsx), or SQLite dataset in data/.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "preview_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nNo
datasetNosales.csv

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden. It usefully discloses the 100-row cap, which is real behavioral context, but it does not state that the operation is read-only, what happens if the dataset name is wrong or the file is missing, or whether n above 100 is clamped or rejected.

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?

A single sentence with zero wasted words, and the most decision-relevant facts – row cap and supported formats – come before the location detail.

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?

Return values are covered by the output schema, so the description only needs to frame inputs and behavior, which it does for a simple two-parameter read tool. The remaining gap is edge-case behavior (invalid dataset, oversized n), which is minor but not trivial for an agent preparing a call.

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 has to compensate, and it largely does: it names N, attaches a hard cap of 100 to it, and attaches format and location constraints (CSV, .xlsx, SQLite, under data/) to the dataset parameter. It still does not mention the defaults (10 rows, sales.csv) or whether 'dataset' is a bare filename or a path relative to data/.

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 gives a specific verb and resource ('Return the first N rows ... of any CSV, Excel (.xlsx), or SQLite dataset in data/'), and the scope implicitly separates it from siblings like describe_data, list_datasets and run_sql_query. It never names an alternative explicitly, so differentiation is inferred rather than stated.

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 by the word 'preview' – an agent can reason that this is the cheap look-at-the-data step before run_sql_query or describe_data, but nothing in the text states when to prefer this tool over those siblings or any prerequisites. No when-not-to-use guidance is provided.

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