Skip to main content
Glama

Create DataLens key for embedding

datalens_embeddingsecrets_create

Create an embedding secret key for a DataLens workbook and return its id and one-time private key; hand off or store the key immediately because later get and list calls omit it.

Instructions

Make a key for embedding and return its id and its private key.

The private key is given once: embeddingsecrets_get and embeddingsecrets_list do not return it. It comes in this tool's result, so it enters your context: hand it to the person at once, and do not repeat it in later messages.

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": {
      "title": "<title>",
      "workbook_id": "<workbook_id>"
    },
    "name": "datalens_embeddingsecrets_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesThe name of the key.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).
workbook_idYesThe workbook the key belongs to.

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

A4.3/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, openWorldHint=true, idempotentHint=false), the description discloses the one-time nature of the secret, that it is unrecoverable afterwards, that it will enter the agent's context and should be handed off immediately and not repeated, and that a client honouring the mark prompts a person on every call. These are exactly the operational traits an agent cannot infer from structured fields.

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?

The purpose and the critical secret-handling warning are front-loaded, and every sentence carries operational weight. The closing line about grants access is slightly elliptical ("honours the mark"), which costs a bit of clarity, but there is no filler.

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 usefully states what is returned (id and private key) and covers the irreversible, sensitive nature of the result. Remaining gaps are minor for a three-parameter create call: nothing is said about failure modes for an invalid workbook_id or about what dry_run returns beyond the schema's own text.

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 title, workbook_id, and dry_run are already documented in the input schema, establishing a baseline of 3. The description adds no further meaning about workbook scoping or dry_run semantics, so it neither compensates nor detracts.

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?

"Make a key for embedding and return its id and its private key" gives a specific verb (make/create) plus resource (embedding key) and states the return payload. It also implicitly distinguishes itself from siblings by noting that embeddingsecrets_get and embeddingsecrets_list do not return the private key, so an agent can tell why this tool exists rather than the read siblings.

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?

The description makes clear this is the only route to obtain the private key (get/list never return it), which effectively tells the agent when this tool is required. It does not spell out exclusions or prerequisites such as required permissions on the workbook, and the dry_run parameter is left to the schema, so it stops short of full when/when-not guidance.

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