Skip to main content
Glama

get_world_state

Retrieve the current state of a NetLogo model, including tick count, agent counts, and world dimensions, as structured JSON data.

Instructions

Get the current world state: tick count, agent counts, world dimensions.

Returns JSON with ticks, turtle/patch/link counts, and world bounds.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. It only states return values, not side effects, permissions, or constraints. The read-only nature is implied but not explicit, and there is no mention of whether the tool requires an active state or model.

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 short sentences: first states the purpose, second specifies the return structure. Every word is necessary and informative. No filler or redundancy.

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

Completeness3/5

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

While the description covers what is returned, it omits important context such as prerequisites (e.g., does a model need to be open?) or any potential restrictions. Given the output schema exists, the return info is already detailed, but the description lacks completeness in guiding proper use.

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

Parameters4/5

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

There are no parameters, so the description does not need to add parameter documentation. Baseline for 0 params is 4. The description does not include any misleading or redundant param info.

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 specifies the verb 'Get' and the resource 'current world state', listing exact components (tick count, agent counts, world dimensions) and return format. This distinguishes it from sibling tools like get_agent_sample or get_patch_data which focus on subsets.

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

Usage Guidelines3/5

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

The description provides no explicit guidance on when to use this tool vs alternatives or what prerequisites are needed. Usage is implied as a general state inquiry, but without context like 'requires an open model' or 'use for overview, not details', the agent lacks clear direction.

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