Skip to main content
Glama

comsol_cluster_submit

Submit a COMSOL model to a Slurm cluster as a batch job, overriding study, parameters, partition, resources, and time as needed. Returns a job ID for monitoring and fetching results.

Instructions

Cluster: COMSOL-Modell als Slurm-Batchjob rechnen. mph_file leer = aktuell lokal geöffnetes Modell in seiner gespeicherten Fassung (vorher comsol_save!). study: Studien-Tag (z. B. std1), leer = alle. params: {'name': 'wert'} überschreibt Parameter (comsol batch -pname/-plist). partition/time/nodes/cores/mem überschreiben cluster.json für diesen Job. Gibt job_id zurück; danach comsol_cluster_status und comsol_cluster_fetch.

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": "comsol_cluster_submit"
  }
}

Input Schema

NameRequiredDescriptionDefault
memNo
timeNo
coresNo
nodesNo
studyNo
paramsNo
dry_runNo
job_nameNo
mph_fileNo
partitionNo
extra_argsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.5

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose that an empty mph_file uses the saved on-disk version (implying unsaved edits are not picked up) and that job parameters override cluster.json. It says nothing about queueing behavior, blocking vs. async, failure modes, or what dry_run does, leaving meaningful behavioral gaps for a job-submission tool.

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?

The text is dense and front-loaded, with the core action first and parameter notes after. The telegraphic style ('mph_file leer = ...', 'study: ...') is efficient but slightly terse for non-German readers.

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?

An output schema exists, so return values need not be described, and the job_id plus next-step chain is stated. However, for an 11-parameter submission tool with zero schema coverage and no annotations, leaving dry_run, job_name, and extra_args undocumented is a real completeness gap.

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 0% across 11 parameters, so the description must compensate; it explains mph_file, study, params, and the partition/time/nodes/cores/mem override group. Three parameters (dry_run, job_name, extra_args) get no explanation at all, so coverage is partial rather than complete.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening sentence states a specific verb and resource: compute a COMSOL model as a Slurm batch job. It also names the follow-up siblings (comsol_cluster_status, comsol_cluster_fetch), which separates it from the rest of the comsol_cluster_* family.

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

Usage Guidelines4/5

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

It gives a concrete prerequisite (call comsol_save first when relying on the locally open model) and states the empty-value semantics for mph_file and study. It does not explicitly contrast with local solving tools like comsol_solve, so the when-not-to-use case is left implicit.

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