Skip to main content
Glama

get_state

Returns the full game state visible to your team, including board dimensions, terrain, visible units with status, turn number, active player, and win-condition progress. Use at turn start to orient before making specific decisions.

Instructions

Read-only. Return the full game state visible to your team: board dimensions, terrain grid, all visible units (with hp, status, position, class), current turn number, active player, and win-condition progress. Fog-of-war hides enemy units outside your vision range. Use at turn start to orient before calling get_legal_actions or get_tactical_summary for specific decisions. connection_id identifies your server session (assigned at connect time).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
connection_idYes
Behavior5/5

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

With no annotations provided, the description fully discloses the read-only nature and the scope of returned data, including board dimensions, terrain, units, turn number, and win-condition progress. It also describes the fog-of-war limitation, which is critical behavioral information beyond what an annotation would provide.

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?

The description is concise, starting with the read-only attribute, then listing returned data, followed by a note on fog-of-war, usage guidance, and parameter explanation. Every sentence adds value with no redundancy.

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?

The description thoroughly covers the returned game state elements and the fog-of-war effect. However, without an output schema, explicitly stating the format (e.g., JSON object) would enhance completeness. Nonetheless, it provides sufficient information for an AI agent to understand what the tool returns.

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?

The input schema has a single parameter connection_id with no description. The tool's description explains that connection_id identifies the server session and is assigned at connect time, adding crucial semantic context that is absent from 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 that the tool returns the full game state visible to the user's team, listing specific components such as board dimensions, terrain grid, and unit details. It differentiates from sibling tools like get_legal_actions and get_tactical_summary by positioning get_state as a broad orientation tool.

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 states to use the tool at turn start before calling get_legal_actions or get_tactical_summary for specific decisions. It also explains the fog-of-war behavior, which helps the agent understand when to expect incomplete information.

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/haoyifan/Silicon-Pantheon'

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