Skip to main content
Glama

Get Dataset

getDataset
Read-onlyIdempotent

Get one dataset by id (from listDatasets, or a persona item's datasetId): name, description and its items, as in listDatasets. Secret values are always masked here: this server never returns them in clear. Use when: a persona names a dataset and you want to say what it holds. Read-only. Needs data:read. Returns 404 if the dataset is not in your workspace.

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": {
      "id": "<id>"
    },
    "name": "getDataset"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesDataset identifier.

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
itemsYes
createdAtYes
createdByYesUser id that created the dataset.
updatedAtYes
descriptionNo
workspaceIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description still adds real behavioral facts: secret values are always masked and never returned in clear, the required scope is data:read, and a missing dataset yields 404 rather than an empty result. These are exactly the gaps annotations cannot cover.

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?

Front-loads the core action and return shape, then appends trigger, side note on masking, safety/scope, and error behavior — each clause carries distinct information with no filler.

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?

For a single-param read tool this covers everything an agent needs: what it returns, the auth scope, masking behavior, and the 404 failure mode. An output schema exists, so not restating the full response shape is appropriate.

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% and the single `id` param is documented as 'Dataset identifier,' so the baseline is 3. The description adds genuine meaning beyond that by specifying the provenance of the id (listDatasets output, or a persona item's datasetId), which resolves the main ambiguity in how to obtain it.

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 ('Get one dataset by `id`') and immediately enumerates what comes back (name, description, items, 'as in listDatasets'). An agent can distinguish this from listDatasets without opening either 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?

Gives an explicit trigger ('Use when: a persona names a dataset and you want to say what it holds') and tells where the id comes from (listDatasets or a persona item's datasetId). No explicit when-not/exclusion is stated, so it falls short of the top band.

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.