Skip to main content
Glama

List DataLens Spark applications

datalens_sparkapplications_list
Read-onlyIdempotent

List Spark cluster applications with pagination and filtering by name, creator, type, or catalog; use a cluster ID to retrieve its applications from DataLens.

Instructions

The applications of a Spark cluster, auto-paginated.

Experimental in the DataLens API and written from its document: not measured. A cluster nothing knows answers 403 Permission denied, not 404: it is not a lack of rights.

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": {
      "cluster_id": "<cluster_id>"
    },
    "name": "datalens_sparkapplications_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 applications to return; omitted means the configured cap of a tool (YCLI__HTTP__MAX_TOOL_ITEMS).
filterNoConditions, all of which must hold; each is ``field="value"`` over ``name``, ``created_by``, ``application_type`` or ``catalog_id``.
cluster_idYesId of the Spark cluster.

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

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

Annotations already declare readOnly, idempotent and openWorld, and the description adds real context on top: pagination is automatic, the endpoint is experimental/unmeasured, and an unknown cluster returns 403 rather than 404 so an agent won't misread it as a permissions problem. That error-semantics disclosure is exactly the kind of beyond-annotation value that earns above baseline.

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?

Very short and front-loaded with the resource, but the second paragraph is cryptic in phrasing ('written from its document: not measured', 'A cluster nothing knows answers 403') and reads like memo fragments rather than agent-directed guidance. The 403 note is worth keeping; its wording is not.

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 five-parameter filtered list with no output schema, the definition covers pagination behavior, experimental status and the notable non-404 error case, while the schema carries all parameter detail. It omits any hint of what an application record contains, but with no output schema that is a modest gap rather than a blocking one.

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 every parameter including `all`, `next`, `limit`, `filter` and `cluster_id` is already documented in detail. The description only echoes the pagination concept with 'auto-paginated' and adds no syntax or format detail beyond the schema, so the baseline 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?

States the resource and scope precisely: 'the applications of a Spark cluster', which clearly distinguishes it from the sibling `datalens_sparkapplications_get` (single application) and `datalens_sparkapplications_log_list` (logs). It is a noun phrase rather than a verb+resource construction, but the listing intent is unambiguous.

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?

The description says the result is auto-paginated but never states when to reach for this tool versus the sibling `_get` or `_log_list` tools, nor any prerequisite beyond the cluster_id requirement. The only actionable guidance (paginate in pieces) lives in the schema's `all`/`next` descriptions, not in the tool description.

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