Skip to main content
Glama

update_model

Replace the code of the currently loaded NetLogo model and reload it in place. Use when iterating on an existing model to keep the same window and avoid creating new files.

Instructions

Update the currently loaded model's code in place and reload it.

Prefer this over create_model when iterating on an existing model: the same .nlogox file is rewritten and reloaded, so the NetLogo window stays on one model and the models directory doesn't grow a new file per iteration.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesNew NetLogo procedures — a FULL replacement of the code tab, not a diff. Raw procedures only (no .nlogox XML).
widgetsNoOptional new interface widgets (same schema as create_model). When omitted, the model's existing widgets are preserved unchanged — sliders keep their positions and values.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior5/5

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

With no annotations, the description fully discloses the mutation behavior: 'rewritten' and 'reloaded' the .nlogox file, and that widgets are 'preserved unchanged' when omitted. This goes beyond the schema.

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?

Two sentences, front-loaded with the main action, followed by the benefit over the alternative. No extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simple 2-parameter schema and presence of an output schema, the description covers purpose, usage, behavioral effects, and parameter default behavior (widgets preserved). No gaps.

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 coverage is 100% with detailed descriptions for both parameters. The tool description adds some context (e.g., 'in place' implying file rewriting) but does not significantly enhance the meaning of individual parameters beyond what the schema provides.

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 verb ('Update') and resource ('currently loaded model's code'), and explicitly distinguishes it from the sibling 'create_model' by stating when to prefer this tool ('when iterating on an existing model').

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?

The description explicitly advises to 'Prefer this over create_model when iterating on an existing model', providing a clear use case and rationale (same file rewritten, window stays on model, no directory growth).

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/Razee4315/NetLogo-MCP'

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