Skip to main content
Glama

Create DataLens Spark application

datalens_sparkapplications_create

Creates a Spark application on a DataLens cluster and returns the operation that tracks it. Specify a JAR, PySpark, or Spark Connect application with its cluster, name, and catalogs.

Instructions

Make a Spark application on a cluster and return the operation that makes it.

Experimental in the DataLens API, written from its document and never called: not measured. Ask the person before calling.

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": {
      "body": "<body>"
    },
    "name": "datalens_sparkapplications_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyYesThe application to make: ``clusterId``, a ``name``, the ``catalogs`` to attach, and exactly one of ``sparkApplication`` (a JAR), ``pysparkApplication`` (a Python file) or ``sparkConnectApplication``.
dry_runNoSend nothing: answer `{dry_run: true, request}`, the first write the tool would make (null: none).

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

A3.5/5.0
Behavior3/5

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

The annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false and openWorldHint=true. The description adds real value by disclosing that it returns an operation object and that this is an untested, document-derived endpoint that should be confirmed with a human first — but it says nothing about permissions, side effects on the cluster, or what the operation transitions through.

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?

Very short and front-loaded: purpose and return value first, caveats after. Nothing is redundant, though the sentence fragments ("not measured") read slightly telegraphically.

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 two-parameter create tool with no output schema, the description covers purpose, return shape, and the critical experimental caveat. The remaining gap — what the returned operation means for polling and whether the application starts immediately — is minor but real.

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%, and the body schema documents the clusterId/name/catalogs fields and the exactly-one-of sparkApplication/pysparkApplication/sparkConnectApplication constraint. The description adds no parameter semantics beyond that, 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?

The description names a specific verb and resource ("Make a Spark application on a cluster") and states the return value ("the operation that makes it"). It is clearly distinguishable from the get/list/cancel siblings, though it never names any of them.

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?

"Ask the person before calling" is a concrete pre-call gate and the experimental warning gives context, but there is no guidance on when to choose this over the cluster or catalog creation siblings, nor any stated prerequisite that a cluster must already exist.

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