Skip to main content
Glama

List the roles on a DataLens collection

datalens_collections_access_bindings_list
Read-onlyIdempotent

Lists access bindings for a DataLens collection, showing which subjects have which roles, with pagination and optional inherited roles.

Instructions

Who has which role on a collection, auto-paginated.

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": {
      "collection_id": "<collection_id>"
    },
    "name": "datalens_collections_access_bindings_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 subjects to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS).
collection_idYesCollection id.
get_inherited_bindingsNoAlso list the roles inherited from above.

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 subjects to return; omitted means the configured cap (YCLI__HTTP__MAX_ITEMS)."New value: +"Max subjects 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

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and openWorldHint=true, so the safety profile is covered. The description's one contribution is 'auto-paginated', which usefully signals that results are paged automatically and need not be fetched manually, but it adds nothing about inherited roles, empty results, or ordering.

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?

A single clause with zero waste, and the identifying information is front-loaded. It is a fragment without a verb, however, which makes it slightly clipped rather than crisply structured.

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?

With 100% schema coverage and read-only annotations, the definition covers the mechanics adequately, and 'who has which role' implies a subject-plus-role result shape. For a five-parameter tool it is still thin: it says nothing about what get_inherited_bindings surfaces in the response or how the returned `next` token should be reused, both of which the schema only partly conveys.

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% and each of the five parameters (all, next, limit, collection_id, get_inherited_bindings) carries a detailed description, so the schema does the heavy lifting. The description adds only the generic notion of pagination and explains none of the parameters itself; baseline 3 applies.

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 phrase 'Who has which role on a collection' pins down both the resource (collection) and the returned concept (subject-to-role bindings), which distinguishes it from the sibling list tools scoped to shared entries or workbooks. It stops short of a verb ('List...') and never names the update counterpart, but an agent can still identify the operation without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance at all: nothing says to reach for this rather than the workbook/shared-entry binding lists, nor that the *_access_bindings_update sibling mutates the same roles. The only hint is 'auto-paginated', which is a behavior, not a selection rule.

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