Skip to main content
Glama

List DataLens Trino clusters

datalens_trinoclusters_list
Read-onlyIdempotent

Lists Trino clusters available in a DataLens instance, with pagination and filters for catalog, collection, or custom conditions.

Instructions

The Trino clusters of the DataLens instance, auto-paginated.

Experimental in the DataLens API. An instance with none answers an empty list.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "datalens_trinoclusters_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 clusters to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS).
filterNoConditions the clusters must meet.
catalog_idNoOnly the clusters this REST catalog is attached to.
collection_idNoOnly the clusters of this collection.

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 clusters to return; omitted means the configured cap (YCLI__HTTP__MAX_ITEMS)."New value: +"Max clusters 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

B3.2/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 genuinely useful context beyond that: the operation is experimental in the DataLens API and an instance with no clusters returns an empty list rather than an error. It does not explain record shape or confirm how the 'auto-paginated' claim relates to the explicit next-token parameters.

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?

Three short sentences with the resource identified first and caveats after, so it is front-loaded and free of filler. Minor imprecision: 'auto-paginated' sits uneasily with the manual next/limit mechanism exposed in the schema, which slightly muddies an otherwise clean statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only list tool with a fully documented schema and no output schema, the definition covers what the tool returns at a high level and the empty-result case. What is missing is any sense of the cluster record's fields or how large listings should be walked, which matters given the pagination parameters. Adequate but not complete.

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 all six parameters (all, next, limit, filter, catalog_id, collection_id) are already documented in structured form. The description adds only the general notion of pagination and empty-result handling, with no syntax or semantics beyond what the schema provides. Baseline 3 is appropriate here.

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 names the exact resource ('Trino clusters of the DataLens instance') and implies a listing, which matches the verb in the title. An agent can tell this apart from trinoclusters_get, create, delete, start and stop by resource scope. It stops short of explicitly contrasting itself with the other list tools such as restcatalogs_list.

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

Usage Guidelines2/5

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

There is no explicit when-to-use guidance against the alternatives (get, catalog_create, etc.) and no explanation of when the filter/catalog_id/collection_id narrowing should be applied. The only directional hint is the note that a long listing is 'better taken in pieces', which appears in the schema, not the description. An agent must infer usage from the tool name and schema alone.

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