Skip to main content
Glama

Change the roles on a DataLens shared entry

datalens_sharedentries_access_bindings_update

Add or remove access roles for a DataLens shared entry while preserving all other role assignments.

Instructions

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

The roles are datalens.sharedEntries.* (viewer, admin, …).

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": {
      "entry_id": "<entry_id>",
      "deltas": "<deltas>"
    },
    "name": "datalens_sharedentries_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).
entry_idYesId of a shared entry: one that lies in a collection.

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

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true, so the mutation profile is known. The description adds real value with the partial-update semantics and the role-namespace convention, and the "asks a person on every call" line hints at an approval requirement, but that sentence is too cryptic to give an agent a reliable behavioural rule.

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 merge semantics that matter most. The closing "Grants access: a client that honours the mark asks a person on every call" is the one line that does not clearly earn its place because it reads ambiguously.

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?

With only three parameters, full schema coverage and annotations, the definition supplies what is missing: delta semantics, the role namespace, and dry_run behaviour. It does not describe the result of a successful write, but at this tool's complexity that is a minor gap rather than a blocking one.

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

Parameters4/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 entry_id, deltas, action and dry_run; baseline would be 3. The description goes beyond it by naming the concrete role identifiers (``datalens.sharedEntries.*``, viewer, admin), which tells the agent what values roleId actually takes in the nested accessBinding object.

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 specific verb pair ("give or take away") and a precise resource (roles on a shared entry), which is enough to distinguish it from the *_access_bindings_list siblings. It stops short of naming which sibling to use for collections or workbooks, so the differentiation is implied by the phrase "shared entry" rather than stated.

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?

The clause "the roles not named stay as they are" is genuinely useful guidance because it tells the agent this is a delta patch, not a full permission replacement. Beyond that there is no explicit when-to-use, when-not-to-use, or prerequisite statement (e.g. ownership/admin rights) and no routing to alternatives.

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