Skip to main content
Glama

Lock a DataLens entry

datalens_entrylocks_create

Locks a DataLens entry—dataset, chart, or dashboard—for editing and returns the lock token needed to extend or release it; if already locked, reports the holder and expiry.

Instructions

Lock an entry (a dataset, a chart, a dashboard) for editing.

The reply holds the token of the lock and nothing else: keep it, extending and releasing the lock take it. An entry that is already locked answers 423 with who holds the lock and until when.

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>",
      "data": "<data>"
    },
    "name": "datalens_entrylocks_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYesHow long to hold the lock, in milliseconds.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
entry_idYesEntry 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

A3.8/5.0
Behavior4/5

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

Annotations already declare non-read-only, non-idempotent, non-destructive, open-world behavior, and the description adds real context on top: the reply contains the lock token and nothing else, and a contended entry returns 423 with the holder and expiry. That conflict-response detail is exactly the kind of behavior an agent cannot get from the annotations. It stops short of stating permission requirements or whether a lock can be forcibly taken without `force`.

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

Conciseness5/5

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

Two short paragraphs: purpose first, then the return value and the failure mode. Every sentence carries information an agent needs, and nothing is repeated from the schema or annotations.

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?

There is no output schema, and the description compensates by describing the return value (a bare token) and the error shape for a locked entry. For a mutation tool with a nested object parameter, the remaining gap is authorization/mutual-exclusion nuance, which is minor but non-trivial.

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 the nested `data.force` and `data.duration` fields are already documented in the schema. The description adds no further meaning about those parameters (no interaction between force and the 423 case, no default-duration guidance), so the baseline of 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 description opens with a specific verb+resource ("Lock an entry") and enumerates the entry types covered (dataset, chart, dashboard), so the agent knows exactly what is operated on. It does not name the sibling lock tools (extend/delete) explicitly, which is the only thing separating it from a 5.

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 rather than stated: the note that extending and releasing the lock require the returned token tells the agent this is step one of a lock lifecycle. There is no explicit when-to-use/when-not-to-use rule (e.g., when to re-lock vs. extend an existing lock), so guidance remains inferential.

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