Skip to main content
Glama

List DataLens Spark resource presets

datalens_sparkclusters_resource_presets_list
Read-onlyIdempotent

List available Spark cluster resource presets for a cloud environment, with pagination controls to fetch results by limit, continuation token, or all at once.

Instructions

The sizes an instance of a Spark cluster can take, auto-paginated.

Experimental API, not measured. Capped at the configured item cap unless limit is given.

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": {
      "cloud_environment_id": "<cloud_environment_id>"
    },
    "name": "datalens_sparkclusters_resource_presets_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 presets to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS).
cloud_environment_idYesThe cloud environment the presets are for.

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

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

The annotations already declare readOnlyHint, idempotentHint and openWorldHint, so safety is covered. The description still earns credit for disclosing two behaviors not in the annotations: an 'experimental, not measured' stability caveat and silent truncation at a configured item cap unless limit is supplied. It stops short of describing the shape of returned presets, which matters since no output schema exists.

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, purpose first, caveats second — no waste and well front-loaded. 'Experimental API, not measured' is compact to the point of being cryptic; an agent may not know whether that means results are unreliable or merely unstable.

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 read-only, auto-paginated list with one required parameter and no output schema, the description covers pagination, the cap, and the experimental status, which is most of what an agent needs to call it correctly. The gap is the absence of any indication of what a preset contains, which would have helped given there is no output schema.

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 four parameters are already documented in the schema, including the meaning of all, next and limit. The description's note about the cap mostly restates the limit parameter's schema text, adding no new syntax or format detail, so the baseline of 3 applies.

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 resource in concrete terms — 'the sizes an instance of a Spark cluster can take' — which tells an agent it returns resource presets rather than clusters or applications. It does not, however, distinguish this from the singular sibling datalens_sparkclusters_resource_presets_get, so an agent must infer that this is the collection view.

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 only implied: 'auto-paginated' and 'capped at the configured item cap unless limit is given' hint that this is the bulk-listing entry point. There is no explicit when-to-use guidance, no mention of the get sibling, and no statement about prerequisites beyond the required cloud environment.

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