Skip to main content
Glama

cards4play_get_state

Read-onlyIdempotent

Read the full agent-safe snapshot, stateVersion, legalActions, and expert advice.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "gameId": "<gameId>"
    },
    "name": "cards4play_get_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
gameIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and openWorldHint=false, so safety and repeatability are covered. The description adds the return surface (stateVersion, legalActions, advice), which is genuinely useful, but never explains what "agent-safe" redaction means or what happens with an invalid/stale gameId.

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

Conciseness4/5

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

A single front-loaded sentence with no filler; however, the comma-list of return fields is a run of nouns that spends words on what could be conveyed by an output schema, while omitting the usage context that would actually help.

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?

Reasonable for a simple read tool with annotations and one param, and it does enumerate key return fields absent an output schema. Still missing the workflow position (read state → choose legal action → submit) and any distinction from cards4play_get_advice, which is the main ambiguity an agent faces here.

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 coverage is 0% and the single parameter gameId is not mentioned in the description at all, so its meaning, expected source (from cards4play_list_games presumably), and behavior for unknown IDs are undocumented everywhere. For a one-required-param tool the description had room to compensate and did not.

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 ("Read") and an enumerated payload (snapshot, stateVersion, legalActions, expert advice), so the agent knows this returns current game state. The phrasing "agent-safe snapshot" is unexplained jargon, and including "expert advice" overlaps with the sibling cards4play_get_advice without clarifying the difference.

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?

There is no when-to-use guidance at all: nothing says whether to call this before cards4play_submit_action, after cards4play_wait_for_turn, or instead of cards4play_get_advice despite the explicit overlap in returned advice. The agent must infer the polling/decision workflow from sibling names alone.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.