Skip to main content
Glama

compile_model

Compile a model's equation file into a headless LSD simulation program, returning build status and time or compiler errors, skipping rebuilds when the file is unchanged.

Instructions

Compile the model's equation file into a headless LSD program (built into the cache, not the model folder). Returns ok and build time, or the first compiler errors as file:line: message. Nothing is rebuilt if the equation file is unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
groupNomodels
modelYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.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 does well: it discloses where output lands (cache, not model folder), the return shape (ok and build time, or file:line: message errors), and the no-op-if-unchanged caching behavior. It does not mention permissions or whether any artifacts can be invalidated.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with the action and artifact, followed by return values and caching semantics. Every sentence earns its place with no 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?

No output schema exists, so the description rightly explains the return values and error format. For a two-parameter tool with no annotations, the only real gap is documentation of the 'group' parameter, which leaves the definition slightly short of fully self-contained.

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

Parameters2/5

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

Schema description coverage is 0% and the description never mentions the parameters. 'model' is arguably implied by 'the model's equation file', but 'group' is completely undocumented in both schema and description, leaving the agent to guess its role.

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 (Compile) and resource (the model's equation file) with a concrete output artifact (headless LSD program). It is not confusable with siblings like write_equations or run_configuration, though it does not explicitly name an alternative.

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 explicit when-to-use guidance or prerequisites. It does not say when compilation is needed relative to write_equations or run_configuration, nor when to skip it. The incremental-build note hints that repeated calls are safe but is behavioral, not usage routing.

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