Skip to main content
Glama

cards4play_submit_action

Idempotent

Submit exactly one actionId from the current legalActions.

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>",
      "actionId": "<actionId>",
      "expectedVersion": "<expectedVersion>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "cards4play_submit_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
gameIdYes
actionIdYes
idempotencyKeyYes
expectedVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare non-read-only, non-destructive, idempotent, and closed-world, so safety is covered. The description adds a real behavioral constraint (exactly one action, and it must come from the current legal action set), but omits the semantics of expectedVersion conflicts and what idempotencyKey protects against on retry, which are the most important behavioral facts for a mutation call.

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. It is efficient, though the brevity is also the source of the definition's gaps rather than a virtue of economy.

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

Completeness2/5

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

This is a four-required-parameter mutation tool with no output schema and no parameter documentation anywhere. Critical invocation details — how to obtain a valid actionId, what expectedVersion must match, whether idempotencyKey makes retries safe — are absent, so an agent could easily call it incorrectly.

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 description coverage is 0%, so the description must carry the burden and it does not. It explains actionId in part ('from the current legalActions') but says nothing about gameId, expectedVersion (clearly an optimistic-concurrency token), or idempotencyKey (retry deduplication), leaving three of four required parameters without any semantics.

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?

The description names a specific verb (submit) and resource (one actionId drawn from the current legalActions), which is enough to distinguish it from read-oriented siblings such as cards4play_get_state or cards4play_get_rules. It stops short of explicitly naming an alternative tool, but the intent is unambiguous.

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 phrase 'from the current legalActions' implies a prerequisite: the agent must first obtain state/legal actions and may only pass a value from that current set. It gives no explicit when-to-use vs. sibling guidance and does not say what to do when no action is legal or when the action list is stale.

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.