Skip to main content
Glama

build_model

Create and populate a system dynamics model in one call, including simulation specs, stocks, flows, and connectors, with validation and error detection.

Instructions

Create and populate a model in one call: sim specs, stocks, auxiliaries, flows, connectors, and modules. All-or-nothing — on any item error nothing is registered and the error names the failing item (stage + index). Connector sync and validation run by default, so the response doubles as an inspection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesModel name
model_idNoOptional model ID to assign in this session
sim_specsNoSimulation time settings
stocksNoStocks to add (applied first)
auxsNoAuxiliary variables to add (applied after stocks)
flowsNoFlows to add (applied after stocks and auxs)
connectorsNoExplicit connectors to add (applied after variables)
modulesNoModules to create (applied last)
sync_connectorsNoRun sync_connectors_from_equations after applying items
validateNoInclude validation results in the response
Behavior5/5

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

Annotations indicate readOnlyHint=false and destructiveHint=false, and the description adds critical behavioral details: atomicity, error reporting (names failing stage and index), default sync and validation, and response doubling as inspection. No contradictions with annotations.

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 well-structured sentences: purpose, error behavior, and defaults. No fluff, front-loaded with the primary action. Every sentence earns its place.

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?

Given the tool's complexity (10 parameters, nested objects) and missing output schema, the description covers core aspects (purpose, atomicity, defaults). However, it does not describe the response format (since no output schema), which could help the agent. Still, it is sufficient for invocation decisions.

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?

With 100% schema description coverage, the baseline is 3, but the description adds essential context: the order of application (stocks first, then auxs, etc.) and the default behaviors for sync_connectors and validate. This significantly enriches understanding beyond the schema.

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 description clearly states the tool's purpose: 'Create and populate a model in one call' and enumerates the components (sim specs, stocks, auxiliaries, flows, connectors, modules). This distinguishes it from sibling tools that add individual elements (e.g., add_stock, add_flow).

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?

The description explains the 'All-or-nothing' atomicity and that connector sync and validation run by default, guiding when to use this batch operation. However, it does not explicitly contrast with alternative single-step tools or mention scenarios where partial success is needed.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bradleylab/stella-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server