Skip to main content
Glama
IBM watsonx.data MCP Server

IBM watsonx.data MCP Server

Official
by IBM

Submit Spark Application

submit_spark_application

Submits a Spark application to a specified engine for execution, with options for JAR, Python, or R files, arguments, configuration, and environment variables.

Instructions

Submit a Spark application for execution on a Spark engine.

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": {
      "engine_id": "<engine_id>",
      "application": "<application>"
    },
    "name": "submit_spark_application"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment variables
confNoSpark configuration properties (e.g., {"spark.executor.memory": "2g"})
nameNoApplication name (will be added to conf as spark.app.name)
typeNoEngine type - "spark" or "gluten"
volumesNoVolume mounts (watsonx.data software only). List of dicts with: - name: volume name - mount_path: path in spark cluster (e.g., "/mount/path") - source_sub_path: path in volume to mount (e.g., "/source/path") - read_only: boolean flag
argumentsNoApplication arguments array
engine_idYesSpark engine identifier
applicationYesApplication file path (JAR, Python, R file)
context_typeNoContext type - "project", "git_project", or "space"
job_endpointNoExternal job endpoint
service_instance_idNoService instance ID - "iae" or "emr"

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changedv0.1.5
    • addedInput schema / properties / application / description
      Added value: +"Application file path (JAR, Python, R file)"
    • addedInput schema / properties / arguments / description
      Added value: +"Application arguments array"
    • addedInput schema / properties / conf / description
      Added value: +"Spark configuration properties (e.g., {\"spark.executor.memory\": \"2g\"})"
    • addedInput schema / properties / context_type / description
      Added value: +"Context type - \"project\", \"git_project\", or \"space\""
    • addedInput schema / properties / engine_id / description
      Added value: +"Spark engine identifier"
    • addedInput schema / properties / env / description
      Added value: +"Environment variables"
    • addedInput schema / properties / job_endpoint / description
      Added value: +"External job endpoint"
    • addedInput schema / properties / name / description
      Added value: +"Application name (will be added to conf as spark.app.name)"
    • addedInput schema / properties / service_instance_id / description
      Added value: +"Service instance ID - \"iae\" or \"emr\""
    • addedInput schema / properties / type / description
      Added value: +"Engine type - \"spark\" or \"gluten\""
    • addedInput schema / properties / volumes / description
      Added value: +"Volume mounts (watsonx.data software only). List of dicts with:\n     - name: volume name\n     - mount_path: path in spark cluster (e.g., \"/mount/path\")\n     - source_sub_path: path in volume to mount (e.g., \"/source/path\")\n     - read_only: boolean flag"
  2. First observedv0.1.4

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden and discloses almost nothing behavioral. It does not say whether submission is asynchronous, whether it returns an application identifier, what side effects or resource allocation occur, or what permissions/instance context (service_instance_id, context_type) are required. This is a consequential write/side-effecting operation described in one neutral sentence.

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?

A single front-loaded sentence with no wasted words. It is efficient, though the terseness borders on under-specification given the tool's complexity.

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

Completeness2/5

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

With 11 parameters, no annotations, no output-schema relief needed for return values, the description leaves major gaps: lifecycle expectations, required engine state, and whether optional conf/volumes override engine defaults. For a submission/mutation tool of this complexity, one sentence is inadequate.

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 11 parameters are already documented in the schema, including env, conf, volumes, and enum-ish fields like type and context_type. The description adds nothing beyond 'on a Spark engine', so the baseline 3 applies rather than higher credit.

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 a specific verb (submit) and resource (Spark application) with the target (a Spark engine), which is enough to distinguish it from status/stop/list siblings in the same family. It stops short of naming any alternative, but the action itself 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?

No guidance on when to use this versus get_spark_application_status, stop_spark_application, or the engine-creation tools. Nothing states prerequisites such as the engine needing to exist or be running, or whether this is the entry point before polling status.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.