Skip to main content
Glama

Gradient Dynamics: thermal and CFD simulation

Prepare CAD or STL upload

prepare_surface_upload

Reuse an already verified STL with this checksum, size, filename and units in the same project, or open its authenticated file picker. Existing clients may keep these arguments. If artifact.state is ready, continue with that artifact; no upload is needed. Otherwise show the upload panel or labelled Upload STL link and wait for get_artifact to report ready. Never perform client-side S3 uploads, retry previous transfer URLs or run shell/network commands. For a fresh interactive upload, prefer open_surface_upload without computing a hash.

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": {
      "filename": "<filename>",
      "size_bytes": "<size_bytes>",
      "sha256": "<sha256>"
    },
    "name": "prepare_surface_upload"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNosurface
sha256Yes
filenameYes
media_typeNomodel/stl
project_idNo
request_idNo
size_bytesYes
coordinate_unitsNoNormally auto. STEP/STP/3MF use embedded units normalized to mm. STL units are resolved from measured bounds and supplied engineering context; ambiguous scale requires one clarification.auto
expected_length_mmNoOptional known approximate longest overall dimension in millimetres. Supply only when known from the user or source evidence, not an invented guess.
engineering_contextNoBrief supplied engineering context, e.g. a full-size passenger car or a GPU cold plate. Do not infer context from a filename alone.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false, idempotentHint=false, destructiveHint=false, openWorldHint=false; the description adds the meaningful behavior on top: checksum-based reuse/dedupe, the artifact.state readiness gate, and the fact that the call may merely open an authenticated picker rather than transfer bytes. It also discloses hard constraints (never do client-side S3 uploads, never retry previous transfer URLs) that an agent could not infer from the schema. Minor tension exists between checksum-based reuse and idempotentHint=false, but the tool also opens interactive sessions, so this reads as a nuance rather than a contradiction.

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 primary behavior (reuse by checksum or open picker), followed by the state-machine branch and then the constraints, which is the right order for an agent. Sentences are dense and pack multiple instructions each (the 'Never perform...' sentence bundles three prohibitions), which costs some scannability but no content is filler.

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?

An output schema exists, so return values need not be explained, and the description covers the branch logic and the hand-off to get_artifact. It is close to complete for a 10-parameter prepare call; the remaining gap is how project_id and request_id are expected to be set and how ambiguous units get resolved, which are left to the schema.

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 only 30%, so the description must carry weight: it does name checksum, size, filename and units, which maps to the required triple plus coordinate_units, and it explains units resolution implicitly via 'units in the same project'. However, project_id, request_id, kind and media_type get no treatment in the description, and the STL unit-resolution logic lives only in the schema, leaving roughly half the parameters undocumented in prose.

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 concrete verb and resource: reuse an already verified STL identified by checksum, size, filename and units within the same project, or fall back to an authenticated picker. It also names the sibling to use instead for a fresh interactive upload (open_surface_upload), so the agent can distinguish intent. It stops short of a one-line crisp definition because the actual effect (dedupe/registration versus session opening) is spread across several clauses.

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

Usage Guidelines5/5

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

Gives an explicit decision procedure: if a checksum/size/filename triple is known, call this; if that artifact is already ready, continue with it; otherwise render the upload panel or link and poll get_artifact until ready. It also names the alternative for the no-hash case and includes prohibitions (no client-side S3 uploads, no retrying old transfer URLs). When-to-use, when-not-to, and the follow-up tool are all present.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources