Skip to main content
Glama
COMSOL Multiphysics MCP Server

COMSOL Multiphysics MCP Server

by zixuanguo89

result_available_expressions

Validate candidate expressions and retrieve their physical units and values at a probe point, so you can confirm they work before adding them to plots or exports.

Instructions

Check which candidate expressions are valid, with their physical units.

Each candidate is evaluated with the API-only Interp feature at a point (default: geometry centre), so field expressions are tested in their native spatial scope. Returns ok/error, unit and value per candidate -useful before wiring expressions into plots/exports.

Args: candidates: candidate expressions, e.g. ["T", "ht.ntflux", "u", "1+"]. dataset: dataset tag (None = first solution dataset). coords: point [[x, y, z]] used for the probe (default = geometry centre). model: model name/tag (None = current model).

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": {
      "candidates": "<candidates>"
    },
    "name": "result_available_expressions"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelNo
coordsNo
datasetNo
candidatesYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden, and it delivers: it discloses the evaluation mechanism (API-only ``Interp`` feature probed at a point, defaulting to the geometry centre), the per-candidate return shape (ok/error, unit, value), and the native spatial scope of field expressions. It omits failure modes for the call itself (e.g., behavior with an unresolvable dataset tag) but covers more than most.

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?

Front-loaded with the purpose sentence, then mechanics, then a structured Args block; every part serves the caller. The Args section partially duplicates parameter names already visible in the schema, but with 0% schema coverage that repetition is justified.

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 4-parameter tool with no annotations and no output schema, the description covers purpose, probing behavior, per-candidate return fields, and all parameter defaults. Remaining gaps, such as whether a whole-call error is raised versus per-candidate error strings, are minor for a validation probe.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must do all the work, and it documents all four parameters: the meaning of None for dataset (first solution dataset) and model (current model), the [[x, y, z]] format and geometry-centre default for coords, and example candidate strings. This is meaning beyond the bare property names, which is exactly what the gap requires.

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?

States a specific operation (validity check of candidate expressions) and its distinguishing output (physical units), which separates it from sibling evaluation tools like result_evaluate or result_eval_point that compute values rather than validate syntax.

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?

Gives a clear usage context: "useful before wiring expressions into plots/exports," which tells the agent this is a pre-flight validation step. It does not name an explicit alternative or state when-not-to-use it, so it falls short of a 5.

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