Skip to main content
Glama

Post your defending army

post_challenge

Lock in your defending army, give it a memorable armyName, and open the challenge. Set dryRun true to only check the army. Once posted it cannot be changed.

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": {
      "defenderCode": "<defenderCode>",
      "troops": "<troops>"
    },
    "name": "post_challenge"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNotrue = just check the army, do not post it.
ordersNoOptional orders per group, fixed before the battle (no changes once it starts). Example: {"bows": {"order": "hold"}, "riders": {"order": "advance", "to": {"x": 20, "y": 12}, "until": {"enemyWithin": 4}, "then": "attack"}}. Ambush: {"hidden": {"order": "hold", "holdFire": true, "until": {"enemyWithin": 6, "enemies": 3}}}. See get_rules.orders.
troopsYesYour whole army: one entry per troop, one troop per tile.
armyNameNoName your army! Invent something memorable that fits your strategy, like "Ironwood Bastion" or "The Crimson Tide" (max 40 characters). It is shown on the website, the leaderboard pages and in replays. Quick-match names are unique: if another saved army already uses it, a numeral (II, III...) is added.
defenderCodeYesYour defender code from create_challenge, like QX7KP-D-9F3A7B2C.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / orders / additionalProperties / properties / holdFire
      Added value: +{
      +  "description": "hold/advance/guard/march only: true = the group moves as ordered but does not attack (so forest can keep it hidden) until its \"until\" is met, one of its troops is hit, or orders lift. Then the whole group opens fire at once and keeps its order (or switches to \"then\" if you give one). Good for ambushes.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / orders / additionalProperties / properties / then / description
      Previous value: -"Order after \"until\" triggers. Default attack."New value: +"Order after \"until\" triggers. Default attack (with holdFire: the same order, now shooting)."
    • addedInput schema / properties / orders / additionalProperties / properties / until / properties / enemies
      Added value: +{
      +  "description": "With enemyWithin only: how many seen enemies (1-50) must be that close. Default 1.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedInput schema / properties / orders / additionalProperties / properties / until / properties / whenGroup
      Added value: +{
      +  "description": "The name of another of your groups: met as soon as any troop of that group attacks (e.g. cannons open fire when the archers do).",
      +  "type": "string"
      +}
    • changedInput schema / properties / orders / description
      Previous value: -"Optional orders per group, fixed before the battle (no changes once it starts). Example: {\"bows\": {\"order\": \"hold\"}, \"riders\": {\"order\": \"advance\", \"to\": {\"x\": 20, \"y\": 12}, \"until\": {\"enemyWithin\": 4}, \"then\": \"attack\"}}. See get_rules.orders."New value: +"Optional orders per group, fixed before the battle (no changes once it starts). Example: {\"bows\": {\"order\": \"hold\"}, \"riders\": {\"order\": \"advance\", \"to\": {\"x\": 20, \"y\": 12}, \"until\": {\"enemyWithin\": 4}, \"then\": \"attack\"}}. Ambush: {\"hidden\": {\"order\": \"hold\", \"holdFire\": true, \"until\": {\"enemyWithin\": 6, \"enemies\": 3}}}. See get_rules.orders."
  2. First observed

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It discloses the critical irreversibility ('Once posted it cannot be changed') and the dry-run mode, but says nothing about auth requirements implied by defenderCode, what 'open the challenge' does to challenge state, or what a successful response contains.

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?

Three short sentences, front-loaded with the action, then the validation shortcut, then the irreversible consequence. No filler; even the armyName clause contributes to the intended call sequence.

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?

This is a complex, irreversible mutation with nested orders, a 300-item troops array, and no output schema. The schema covers the fields thoroughly, but the description omits that troop placement must be valid (one troop per tile, see check_placement) and gives no sense of the response, which matters for a one-way operation.

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 description coverage is 100% with unusually rich per-field documentation, so the baseline is 3. The description only echoes armyName and dryRun, adding nothing about the deeply nested orders structure, the 300-troop array, or how defenderCode is obtained.

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 and resource: lock in a defending army and 'open the challenge', which is distinct from create_challenge and accept_challenge. It stops short of naming a sibling explicitly, so an agent must infer the boundary from the sibling list rather than the text.

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?

Gives a clear validation path ('Set dryRun true to only check the army'), which is genuine when-to-use guidance for one mode. It never says when to post here versus create_challenge, set_lineup, or check_placement, so the workflow position of this call is only implied.

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.

Resources