Skip to main content
Glama

Change the roles on a DataLens workbook

datalens_workbooks_access_bindings_update

Add or remove roles on a DataLens workbook while leaving unnamed roles unchanged; specify only the access bindings to grant or revoke.

Instructions

Give or take away roles on a workbook; the roles not named stay as they are.

Grants access: a client that honours the mark asks a person on every call.

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": {
      "workbook_id": "<workbook_id>",
      "deltas": "<deltas>"
    },
    "name": "datalens_workbooks_access_bindings_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
deltasYesThe roles to add (`ADD`) and remove.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
workbook_idYesWorkbook id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.142.2
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": false,
      +  "description": "Send nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).",
      +  "type": "boolean"
      +}
  2. Addedv0.122.1

TDQS

B3.3/5.0
Behavior3/5

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

The description adds genuinely useful behavior beyond the annotations: unnamed roles are preserved, so this is a delta update, not a replace. But the second sentence ('a client that honours the mark asks a person on every call') is cryptic and does not clearly convey what approval or consent behavior the agent should expect. It also does not address reversibility of removals or the non-idempotent hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence is tight, front-loaded and does real work. The second sentence is opaque, reads as garbled boilerplate, and is the kind of line that costs the agent attention without returning clear meaning.

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?

For a 3-parameter mutation tool with full schema coverage and annotations covering safety, the description covers the essential patch semantics. It leaves out permission prerequisites, what happens when all bindings are removed, and a plain explanation of the consent/approval sentence, which matters for an access-control mutation.

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 coverage is 100%, so the schema already documents workbook_id, deltas, action, subject and roleId, making 3 the baseline. The description's 'give or take away' and 'roles not named stay' reinforce the ADD/REMOVE delta semantics but add no format or value-level detail beyond the schema, and it says nothing about dry_run.

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 a concrete verb pair and resource: 'Give or take away roles on a workbook.' That is clearly distinct from the sibling list/get tools for the same resource. It does not name a sibling alternative, but the mutation scope is unambiguous.

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?

Usage is implied by the patch statement 'the roles not named stay as they are,' which tells the agent this is incremental rather than a full replacement. However, there is no explicit when-to-use vs. when-not, no mention of listing existing bindings first, and no guidance on how to source roleId or subject values.

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