Skip to main content
Glama

List what DataLens entries use or are used by

datalens_entries_relations_list
Read-onlyIdempotent

List dependencies for DataLens entries—what they use or what uses them—before changes or deletion to avoid breaking linked charts, datasets, or connections.

Instructions

What entries use (a chart's dataset, a dataset's connection) or what uses them.

Use it before changing or deleting an entry, to see what depends on it. Auto-paginated.

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_ids": "<entry_ids>"
    },
    "name": "datalens_entries_relations_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
allNoReturn everything, ignoring the cap. A long listing is better taken in pieces: `limit`, then `next`.
nextNoGo on from where an earlier call stopped, with the `next` it returned: the token carries its listing; give what is required again, and nothing else but the limit.
limitNoMax relations to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS).
scopeNoKeep one kind of related entry.
entry_idsYesEntry ids.
link_directionNo`from`: what the entries use; `to`: what uses them.
include_permissions_infoNoAlso say what the caller may do with it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.142.2
    • addedInput schema / properties / all
      Added value: +{
      +  "default": false,
      +  "description": "Return everything, ignoring the cap. A long listing is better taken in pieces: `limit`, then `next`.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / limit / description
      Previous value: -"Max relations to return; omitted means the configured cap (YCLI__HTTP__MAX_ITEMS)."New value: +"Max relations to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS)."
    • addedInput schema / properties / next
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Go on from where an earlier call stopped, with the `next` it returned: the token carries its listing; give what is required again, and nothing else but the limit."
      +}
  2. Addedv0.122.1

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint, so the safety profile is covered; the description adds the useful dependency-check framing. It says nothing about what a returned relation looks like (no output schema exists) and the trailing 'Auto-paginated' is vague against a schema that already spells out limit/next/all semantics.

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?

Two short sentences with the core semantics front-loaded and no filler. The closing 'Auto-paginated.' is the one weak element: it is redundant with the fully documented pagination parameters and reads as a stray note.

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 7 parameters at full schema coverage, read-only annotations, and no output schema, the definition supplies the one thing structured fields can't: the dependency-analysis purpose and the pre-delete use case. Only the shape of a returned relation is left unexplained.

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. The opening sentence does map onto link_direction (use vs. used-by), but the schema already defines exactly that for `from`/`to`, and four other parameters (all, next, scope, include_permissions_info) get no mention in the description.

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?

States a specific verb and resource ('what entries use ... or what uses them') and grounds it with concrete examples (a chart's dataset, a dataset's connection), which makes the dependency-graph nature of the tool unmistakable and separates it from plain entry listing or revision-history 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?

Gives an explicit trigger: 'Use it before changing or deleting an entry, to see what depends on it.' That is a clear when-to-use, but it names no alternative tool and doesn't say when a different listing (e.g. a permissions or revisions tool) would be the better call.

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