Skip to main content
Glama

List DataLens workbooks

datalens_workbooks_list
Read-onlyIdempotent

List workbooks in a DataLens collection, defaulting to the root, with filtering, sorting, and pagination; control capped results using limit or next.

Instructions

The workbooks of one collection (the root by default), auto-paginated.

It does not descend into nested collections: collections_content_list shows what a collection holds. 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_workbooks_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoReturn everything, ignoring the cap. A long listing is better taken in pieces: `limit`, then `next`.
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 workbooks 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 to list; the root when left out.
filter_stringNoKeep the workbooks 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 workbooks to return; omitted means the configured cap (YCLI__HTTP__MAX_ITEMS)."New value: +"Max workbooks 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.9/5.0
Behavior4/5

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

Beyond the readOnly/idempotent annotations, it discloses two non-obvious behaviors: results are auto-paginated, and output is capped at the configured item cap unless ``limit`` is supplied. It does not explain the ``next`` continuation mechanics or what a truncated listing looks like, but the cap and nesting semantics are the important additions.

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, front-loaded with the scope statement followed by the nesting caveat and the cap rule; nothing is redundant. The double-backtick notation around tool and parameter names is slightly noisy but does not hurt comprehension.

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 nine-parameter, zero-required read tool with full schema coverage and a safety-bearing annotation set, the description covers the non-obvious parts: default scope, no recursion, and the item cap. Return shape and pagination token handling are left to the schema and the caller's follow-up, which is acceptable given no output schema exists.

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 nine parameters are already documented in the schema; baseline is 3. The description only reinforces ``limit`` (cap override) and the default root collection, adding marginal meaning beyond the structured fields.

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 (workbooks) and its scope (one collection, root by default), which is enough to distinguish it from datalens_workbooks_list_by_ids and other list tools. It does not restate the verb 'list' explicitly, relying on the title for that, so it falls just short of a full verb+resource statement.

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?

It gives an explicit exclusion — it does not descend into nested collections — and routes the agent to ``collections_content_list`` for that case. It does not say when to prefer this over datalens_workbooks_list_by_ids or when ``only_my``/``filter_string`` should drive tool choice, so it is clear context without full alternative coverage.

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