Skip to main content
Glama

Misata Studio: verified synthetic data

Load a dataset into Postgres

load_dataset
Load a dataset into the caller's own Postgres database, as POST /v1/datasets/{id}/load does.
Signed-in callers only. Plan first: with `apply` false (the default) it says which tables would be
loaded, parents first, with their rows, and checks the host, writing nothing. Show the person the
plan; call again with `apply=True` only once they agree. The load runs in one transaction and reads
every table's rows and keys back.

Args:
    dataset_id: from generate_dataset.
    url:        postgres://user:pass@host:5432/db?sslmode=require. Used for this call alone, never
                stored or returned. A private or unencrypted host is refused.
    schema:     the Postgres schema the tables go in.
    apply:      false: the plan; true: load it.
    replace:    replace this dataset's tables where they already exist (only those tables).

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>",
      "url": "<url>"
    },
    "name": "load_dataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYes
applyNo
schemaNomisata
replaceNo
dataset_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior4/5

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

Beyond the annotations, it discloses the plan/apply split, transactional atomicity, read-back verification, credential handling ('never stored or returned'), and host refusal rules. The only gap is a mild tension with destructiveHint=false, since replace overwrites existing tables without the description saying whether that data is recoverable — the scoping note '(only those tables)' partially mitigates it.

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?

The behavior and precondition sentences are front-loaded, followed by a compact Args block with no filler. Every sentence adds operational information an agent needs before calling.

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?

Although there is no output schema, the description explains what the non-apply call returns (which tables, parents first, row counts, host check) and what the apply call does. For a destructive-capable, credentialed write tool, that is sufficient for correct invocation.

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 fully carries the burden and does: it documents all five parameters, including defaults (apply defaults false, schema defaults conceptually), the URL format with sslmode, the dataset_id provenance, and the exact scope of replace. That is meaning well beyond what the bare schema provides.

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 specific verb and resource ('Load a dataset into the caller's own Postgres database') and anchors it to the equivalent REST endpoint, which immediately tells an agent what the operation is. It also names the source of dataset_id (generate_dataset), implicitly separating it from export_dataset and query_dataset.

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 prescribes the exact workflow: call with apply=false first, show the plan to the person, and only re-call with apply=True once they agree. It also states gating conditions ('Signed-in callers only', 'A private or unencrypted host is refused'), so both when-to-use and when-not-to-use are explicit.

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