Skip to main content
Glama

List the content of a DataLens collection

datalens_collections_content_list
Read-onlyIdempotent

Lists collections, workbooks, and entries inside a DataLens collection to help locate workbooks, with limit and next tokens for paginated browsing.

Instructions

What a collection holds: collections, workbooks and entries, auto-paginated.

Start here to find a workbook: list the root, then descend. Capped at the configured item cap unless limit is given.

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": "datalens_collections_content_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoReturn everything, ignoring the cap. A long listing is better taken in pieces: `limit`, then `next`.
modeNoWhich kinds of items to list.
nextNoGo on from where an earlier call stopped, with the `next` it returned: the token carries its listing; give what is required again, and nothing else but the limit.
limitNoMax items to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS).
only_myNoKeep only what the caller created.
order_fieldNoWhat to sort by.
collection_idNoCollection id; `null` lists the root.
filter_stringNoKeep the items whose title has this text.
order_directionNoSort direction.
include_permissions_infoNoAlso say what the caller may do with it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.142.2
    • addedInput schema / properties / all
      Added value: +{
      +  "default": false,
      +  "description": "Return everything, ignoring the cap. A long listing is better taken in pieces: `limit`, then `next`.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Max items to return; omitted means the configured cap (YCLI__HTTP__MAX_ITEMS)."New value: +"Max items to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS)."
    • addedInput schema / properties / next
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Go on from where an earlier call stopped, with the `next` it returned: the token carries its listing; give what is required again, and nothing else but the limit."
      +}
  2. Addedv0.122.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered structurally. The description adds the useful behavioral fact that results are auto-paginated and capped at a configured item cap unless `limit` is given, though that cap is also stated in the `limit` schema entry, so the added value is modest rather than rich.

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?

Three short sentences with the payload description front-loaded and no filler. The phrasing is slightly clipped ("Start here to find a workbook: list the root, then descend") but each sentence contributes.

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 10-parameter read with full schema coverage and no output schema, the description supplies purpose, item kinds, the root-then-descend entry point, and pagination behavior. It does not describe the returned item shape, but with 100% parameter coverage and annotations the definition is sufficient to invoke correctly.

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% across all 10 parameters, including `next` continuation semantics and `all`/`limit` interaction, so the schema does the heavy lifting. The description only gestures at `limit` and adds no format or interaction detail beyond it; baseline 3 is appropriate.

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 names the resource concretely ("What a collection holds: collections, workbooks and entries") and adds the auto-pagination trait, so the agent knows this is a container-listing read. It does not explicitly contrast itself with sibling listers such as datalens_entries_list or datalens_collections_list_by_ids, so it stops short of full sibling differentiation.

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?

"Start here to find a workbook: list the root, then descend" gives a concrete entry-point and traversal strategy, which is real when-to-use guidance. It lacks explicit when-not-to-use conditions or named alternatives, but the sequencing advice is actionable on its own.

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

Deploy Server

Other Tools