Skip to main content
Glama

Update DataLens embed

datalens_embeds_update
Idempotent

Replace an existing DataLens embed with the supplied full definition and return the saved result; read it first so fields you omit are saved empty.

Instructions

Save an embed as given and return it.

The embed is replaced whole: read it with embeds_list and send back what is to stay; a list left out is saved empty.

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": {
      "embed_id": "<embed_id>",
      "title": "<title>",
      "embedding_secret_id": "<embedding_secret_id>",
      "public_params_mode": "<public_params_mode>",
      "settings": "<settings>"
    },
    "name": "datalens_embeds_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesThe name of the embed.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
deps_idsNoThe entries the embedded one depends on.
embed_idYesEmbed id, from ``embeds_list``.
settingsYesThe settings of the embed; an empty object is valid.
private_paramsNoThe parameters that go signed, inside the token.
unsigned_paramsNoThe parameters a link may carry unsigned.
public_params_modeYesWhether the default mode of parameters is on.
embedding_secret_idYesThe key for embedding that signs its links.

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?

The annotations already declare readOnlyHint=false and idempotentHint=true, so the lower bar applies, yet the description still adds genuinely non-obvious behavior: the write is a full replacement where any omitted collection is wiped, which an agent could not learn from the schema. It also flags an access-control trait (a client honoring the mark prompts a person on each call), which contextualizes openWorldHint. The wording "a client that honours the mark" is jargon that isn't self-explanatory, and the omission-wipes-data behavior sits in mild tension with destructiveHint=false, which is worth spelling out more directly.

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 two sentences are front-loaded and earn their place, delivering the core contract and the replacement rule without waste. The final sentence about grants is opaque shorthand whose referent ("the mark") is never defined, so it consumes space without conveying a clear instruction.

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?

For a nine-parameter, five-required mutation with a nested object and no output schema, the description covers the highest-risk aspect (whole-object replacement and accidental emptying) and cross-references the read tool needed to do it safely. The return value is only gestured at with "return it", but with 100% schema coverage on inputs the remaining gaps are minor.

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 every one of the nine parameters, including the nested `settings` object and `dry_run`, is documented inline, so the baseline is 3. The description reinforces meaning for the collection parameters (private/unsigned/deps_ids) via the "left out is saved empty" rule, but it adds no field-level detail such as format, token implications, or the meaning of `public_params_mode` beyond what the schema already says.

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?

"Save an embed as given and return it" names a specific verb (save/replace) and resource (embed), and the second sentence pins the semantics as a whole-object replacement rather than a patch. It falls short of 5 because it never explicitly distinguishes itself from the sibling creation tool `datalens_embeds_create`, leaving the agent to infer that this is update-only.

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

Usage Guidelines4/5

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

It gives concrete operating guidance: read the current state with `embeds_list` first and send back everything that should survive, with the explicit warning that an omitted list is persisted as empty. That is a real when/how-to-use condition rather than a restatement of the name. What's missing is any exclusion guidance about when to use create or delete instead, or prerequisites such as ownership/permissions on the embed.

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