Skip to main content
Glama

Get dataset items

get-dataset-items
Read-onlyIdempotent

Returns rows from a dataset produced by an Actor run. Use when you have a datasetId and need the result items.

Input Schema

NameRequiredDescriptionDefault
descNoIf true, return newest items first.
omitNoComma-separated fields to omit.
cleanNoIf true, skip empty items and hidden fields.
limitNoMaximum number of items to return.
fieldsNoComma-separated fields to include.
offsetNoNumber of items to skip.
flattenNoComma-separated fields to flatten.
datasetIdYesDataset id or username~dataset-name.

Output Schema

NameRequiredDescriptionDefault
itemsYesDataset items
limitYesLimit used for pagination
offsetYesOffset used for pagination
summaryYesSummary of the result
nextStepYesOne follow-up action with tool name
datasetIdYesDataset ID
itemCountYesNumber of items returned
totalItemCountYesTotal items in dataset
apifyConsoleUrlNoPersonalized Apify Console link to the dataset; present.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changed
    • changedInput schema / properties / clean / description
      Previous value: -"If true, returns only non-empty items and skips hidden fields (starting with #). Shortcut for skipHidden=true and skipEmpty=true."New value: +"If true, skip empty items and hidden fields."
    • changedInput schema / properties / datasetId / description
      Previous value: -"Dataset ID or username~dataset-name."New value: +"Dataset id or username~dataset-name."
    • changedInput schema / properties / desc / description
      Previous value: -"If true, results are returned in reverse order (newest to oldest)."New value: +"If true, return newest items first."
    • changedInput schema / properties / fields / description
      Previous value: -"Comma-separated list of fields to include in results. Fields in output are sorted as specified. Use dot notation for nested objects (e.g. \"metadata.url\"); the server auto-flattens parent prefixes."New value: +"Comma-separated fields to include."
    • changedInput schema / properties / flatten / description
      Previous value: -"Comma-separated list of fields to flatten (e.g. flatten=\"metadata\" turns {\"metadata\":{\"url\":\"x\"}} into {\"metadata.url\":\"x\"}). Normally derived automatically from dot-notation in `fields`; specify only as a diagnostic override."New value: +"Comma-separated fields to flatten."
    • changedInput schema / properties / limit / description
      Previous value: -"Maximum number of items to return. Default is 20."New value: +"Maximum number of items to return."
    • changedInput schema / properties / offset / description
      Previous value: -"Number of items to skip at the start. Default is 0."New value: +"Number of items to skip."
    • changedInput schema / properties / omit / description
      Previous value: -"Comma-separated list of fields to exclude from results."New value: +"Comma-separated fields to omit."
    • changedOutput schema / properties / apifyConsoleUrl / description
      Previous value: -"Personalized Apify Console link to the dataset; present only for Console sessions"New value: +"Personalized Apify Console link to the dataset; present."
  2. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and closed-world scope, so the safety profile is covered. The description adds only that the dataset originates from an Actor run. It says nothing about pagination behavior, default limits, ordering defaults, or what happens with an invalid/empty datasetId.

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?

Two short sentences, front-loaded with the purpose followed by the usage condition, with no filler. It is arguably too terse for an eight-parameter paginated read, but nothing in it is wasted or misplaced.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return-shape explanation is not required, and all parameters are covered by the schema. However, for a paginated, field-shaping read tool, the description omits any hint about paging through large datasets or how limit/offset interact, leaving the agent to infer retrieval strategy.

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

Parameters3/5

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

Schema description coverage is 100%, so all eight parameters (limit, offset, desc, clean, fields, omit, flatten, datasetId) are already documented in the schema. The description adds no meaning on top of that, which is the expected baseline when the schema does the work.

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?

States a specific verb and resource: 'Returns rows from a dataset produced by an Actor run.' An agent can tell this is a read of dataset items rather than an Actor run or key-value store operation. It does not name a sibling it is not, but no sibling in the list is a closely competing dataset-item reader.

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?

'Use when you have a datasetId and need the result items' gives a clear precondition and intent, which implies when to reach for it. It offers no exclusions, no mention of what to use when you do not yet have a datasetId (e.g. fetching the run first), and no guidance among the field-shaping options.

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.