Skip to main content
Glama

Create a dataset

create_dataset

Creates a named table that views read with useDataset(name). Define typed columns and a key: the column(s) that uniquely identify a row (e.g. ["month"], or ["date","campaign"]). The key makes updates idempotent: pushing a row with an existing key updates it instead of duplicating it. You can pass initial rows in the same call. Prefer tidy, raw-ish data (one row per month/day/entity with numeric columns) over pre-aggregated text; views compute totals and deltas themselves. Check get_workspace first: if a dataset with this data already exists, add to it with upsert_rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyYesColumn(s) that uniquely identify a row, e.g. ["month"] or ["date","campaign"].
nameYessnake_case, content + grain, e.g. "mrr_monthly", "ad_spend_daily". Permanent.
rowsNoInitial rows: [{"month": "2026-01", "mrr": 41200}, …].
columnsYesEvery column, the key columns included.
descriptionYesWhat one row represents and where the data comes from.
update_cadenceNoHow often this data is expected to be refreshed. The app flags the dataset as stale when overdue.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations declare this is a non-read-only, non-destructive, non-idempotent create. The description adds real context beyond that: the key makes row pushes idempotent (update-instead-of-duplicate), the name is permanent, and initial rows can be supplied in the same call. It does not cover failure modes (e.g. name collision) or any rate limits, so not a 5.

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?

Purpose is front-loaded in the first clause, followed by key semantics, then the alternative-tool routing. Every sentence carries information, though the tidy-data advice and the key explanation slightly overlap in topic and could be tightened.

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 6-parameter, 4-required creation tool with no output schema, the description covers purpose, key semantics, optional initial rows, data modeling advice, and the alternative workflow. Missing only edge behavior such as what happens on a duplicate name (beyond 'Permanent') or error handling.

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%, so the baseline is 3. The description nevertheless adds meaning the schema does not: the rationale for `key` (idempotent updates rather than duplication), the ability to seed `rows` at creation time, and the recommended shape of those rows, which clarifies what values are actually useful.

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 and resource ('Creates a named table that views read with useDataset(name)') and implicitly distinguishes itself from create_view/upsert_rows by scope. An agent can tell what artifact is produced and who consumes it 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?

Explicitly routes the agent: 'Check get_workspace first: if a dataset with this data already exists, add to it with upsert_rows.' It also gives data-shape guidance (prefer tidy raw-ish data over pre-aggregated text), so both the when-to-use-this and when-to-use-an-alternative conditions are stated.

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.