Skip to main content
Glama

Lock a DataLens entry

datalens_entrylocks_create

Lock a DataLens entry (dataset, chart, or dashboard) for editing and receive a token to extend or release the lock. If already locked, returns holder and expiration instead.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataYesHow long to hold the lock, in milliseconds.
entry_idYesEntry id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.122.1

TDQS

A4/5.0
Behavior4/5

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

Annotations cover the operation profile (readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=true), and the description goes further by disclosing the exact return contract (only a lock token), the obligation to retain it, and the failure semantics (423 plus holder identity and expiry when already locked). It stops short of stating permission/auth requirements, which keeps it out of 5 territory.

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 sentences: the first is the purpose, the second is the return/error contract. Nothing is redundant and the most important fact (what you get back and why it matters) is front-loaded immediately after the purpose.

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 no output schema, the description correctly fills the gap by describing the response (token only) and the 423 already-locked case. Combined with the fully-covered input schema and annotations, this is nearly complete; only auth/permission prerequisites and the concurrency expectations around force are left unstated.

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 baseline is 3 – entry_id, force, and duration are already documented inline. The description reinforces the semantics of the response token that force/duration interact with ('keep it, extending and releasing the lock take it'), but adds no syntax or defaulting detail beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource ('Lock an entry') and enumerates the resource types (dataset, chart, dashboard), which lets an agent distinguish it from the sibling lock-lifecycle tools datalens_entrylocks_extend and datalens_entrylocks_delete without opening a schema.

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: locking before editing is the natural reading, and the mention that 'extending and releasing the lock take it [the token]' hints at the relationship to the extend/delete siblings. But there is no explicit 'use this when... / use X instead when...' routing, and the force-replaces-existing-lock path is only documented in the schema, not framed as a usage decision.

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