Skip to main content
Glama

battle

Read-onlyIdempotent

Manage your battle — maneuver, target enemies, adopt combat stances, or self-destruct (Actions: advance, retreat, stance, target, engage, default_stance, self_destruct, help. Use action="help" for full documentation with examples.

  • advance: Move one zone closer (outer→mid→inner→engaged).

  • retreat: Move one zone back.

  • stance: Change posture. Include "stance" field: fire|evade|brace|flee|board. Board also requires "target_id" and a positive "marines" commitment; creatures, drones, and stations are not capturable and are rejected immediately. Optional "intent": capture (default) takes the intact hull; plunder robs another player's ship of its cargo (players only, not in the arena). It suppresses weapons and automatically closes for repeated latch attempts. A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. If multiple eligible boarding requests on the same tick share either hull, deterministic boarding initiative selects one physical link and the battle log records rejected contenders. Changing away from board begins a costly, non-instant withdrawal, and the requested stance applies only after disengagement.

  • target: Focus fire. Include "target_id" field (ID or name of any combatant in the battle — players, pirates, police, drones, creatures, stations, intact prizes).

  • engage: Join the battle in your system from any POI. Optional "side_id" field. A side_id that opposes a station owned by your own faction returns own_faction_station; without side_id a member of that faction joins the station's side. Engaging calls your fleet, faction and mutual allies undocked in the system to your side. Engaging drops your cloak: a battle cannot hold a cloaked ship, so faction, undock, and jump-arrival auto-joins skip cloaked pilots, and a fleet pull drops a fleet mate's cloak.

  • default_stance: Set the stance your active ship opens at when a fight it did not choose pulls it in (pirate, police or player attack, fleet or faction call, jump or undock into a fight): auto|fire|evade|brace|flee. auto = fire if the ship has a weapon or remote repairer, else flee. A fight you start opens at fire. Works in or out of battle; a change applies from the next battle. Resets to auto when the ship changes owner. Include "stance" field.

  • self_destruct: Start the visible in-battle self-destruct countdown; duplicate starts do not reset it. None of these cost a tick — they are queued and applied together at the start of the next battle tick, so you can set a stance, pick a target, and move in the same tick. Reload routes to the standalone reload command and does cost a tick. Examples: {"action":"stance","stance":"evade"}, {"action":"stance","stance":"board","target_id":"enemy_id","marines":12}, {"action":"stance","stance":"board","target_id":"SomePlayer","marines":6,"intent":"plunder"}, {"action":"target","target_id":"SomePlayer"}, {"action":"engage","side_id":1}, {"action":"default_stance","stance":"brace"})

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": {
      "session_id": "<session_id>",
      "action": "<action>"
    },
    "name": "battle"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesBattle action to perform
intentNoBoarding goal for stance=board: capture (default) takes the intact hull; plunder robs another player's ship of its cargo and leaves the hull with its pilot. Plunder targets only players, never NPCs, prizes or arena opponents.
stanceNoBattle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. If same-tick eligible boarding requests share either hull, deterministic boarding initiative starts one physical link; rejected contenders retain their prior stance and weapon fire, and the battle log records reason contested_same_tick. Changing away from board begins non-instant withdrawal. The default_stance action also accepts auto.
marinesNoPositive fit-marine commitment required when setting stance=board. The battle tick caps it to the fit marines actually available.
side_idNoSide to join (optional when you engage — auto-assigned by faction if omitted)
target_idNoID or name of the enemy — required when focusing a target and when entering the board stance. Board attempts against creatures, drones, and stations are rejected immediately because they are not capturable.
session_idYesYour session ID from login/register

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "advance",
      -  "retreat",
      -  "stance",
      -  "target",
      -  "engage",
      -  "self_destruct",
      -  "help"
      -]New value: +[
      +  "advance",
      +  "retreat",
      +  "stance",
      +  "target",
      +  "engage",
      +  "default_stance",
      +  "self_destruct",
      +  "help"
      +]
    • changedInput schema / properties / stance / description
      Previous value: -"Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. If same-tick eligible boarding requests share either hull, deterministic boarding initiative starts one physical link; rejected contenders retain their prior stance and weapon fire, and the battle log records reason contested_same_tick. Changing away from board begins non-instant withdrawal."New value: +"Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. If same-tick eligible boarding requests share either hull, deterministic boarding initiative starts one physical link; rejected contenders retain their prior stance and weapon fire, and the battle log records reason contested_same_tick. Changing away from board begins non-instant withdrawal. The default_stance action also accepts auto."
    • changedInput schema / properties / stance / enum
      Previous value: -[
      -  "fire",
      -  "evade",
      -  "brace",
      -  "flee",
      -  "board"
      -]New value: +[
      +  "fire",
      +  "evade",
      +  "brace",
      +  "flee",
      +  "board",
      +  "auto"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / intent
      Added value: +{
      +  "description": "Boarding goal for stance=board: capture (default) takes the intact hull; plunder robs another player's ship of its cargo and leaves the hull with its pilot. Plunder targets only players, never NPCs, prizes or arena opponents.",
      +  "enum": [
      +    "capture",
      +    "plunder"
      +  ],
      +  "type": "string"
      +}
  3. Added
  4. Removed
  5. Changed1 schema field changed
    • changedInput schema / properties / stance / description
      Previous value: -"Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. Changing away from board begins non-instant withdrawal."New value: +"Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. If same-tick eligible boarding requests share either hull, deterministic boarding initiative starts one physical link; rejected contenders retain their prior stance and weapon fire, and the battle log records reason contested_same_tick. Changing away from board begins non-instant withdrawal."
  6. Changed2 schema fields changed
    • changedInput schema / properties / stance / description
      Previous value: -"Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). Changing away from board begins non-instant withdrawal."New value: +"Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). A faster effective speed lets the boarder intercept its target's retreat and flee movement; an equal or faster target can kite. Changing away from board begins non-instant withdrawal."
    • changedInput schema / properties / target_id / description
      Previous value: -"ID or name of the enemy — required when focusing a target and when entering the board stance"New value: +"ID or name of the enemy — required when focusing a target and when entering the board stance. Board attempts against creatures, drones, and stations are rejected immediately because they are not capturable."
  7. Changed5 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "advance",
      -  "retreat",
      -  "stance",
      -  "target",
      -  "engage",
      -  "help"
      -]New value: +[
      +  "advance",
      +  "retreat",
      +  "stance",
      +  "target",
      +  "engage",
      +  "self_destruct",
      +  "help"
      +]
    • addedInput schema / properties / marines
      Added value: +{
      +  "description": "Positive fit-marine commitment required when setting stance=board. The battle tick caps it to the fit marines actually available.",
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • changedInput schema / properties / stance / description
      Previous value: -"Battle stance (required when you set a stance): fire (100% dmg dealt/taken), evade (0% dealt, 50% taken, costs fuel), brace (0% dealt, 25% taken, shields regen 2x), flee (0% dealt, 100% taken, auto-retreats to outer zone then a minimum of 3 ticks to escape — longer the slower you are than your fastest pursuer, and never while warp-disrupted)"New value: +"Battle stance: fire (100% dmg dealt/taken), evade (0%/50%, costs fuel), brace (0%/25%, shields regen 2x), flee (0%/100%, auto-retreats to escape), or board (0%/100%, automatically closes for repeated latch attempts; requires target_id and marines). Changing away from board begins non-instant withdrawal."
    • changedInput schema / properties / stance / enum
      Previous value: -[
      -  "fire",
      -  "evade",
      -  "brace",
      -  "flee"
      -]New value: +[
      +  "fire",
      +  "evade",
      +  "brace",
      +  "flee",
      +  "board"
      +]
    • changedInput schema / properties / target_id / description
      Previous value: -"ID or name of the enemy to target — any combatant in the battle, including pirates, police, drones, creatures and stations (required when you pick a target)"New value: +"ID or name of the enemy — required when focusing a target and when entering the board stance"
  8. Changed3 schema fields changed
    • changedInput schema / properties / side_id / description
      Previous value: -"Side to join (optional for action=engage — auto-assigned by faction if omitted)"New value: +"Side to join (optional when you engage — auto-assigned by faction if omitted)"
    • changedInput schema / properties / stance / description
      Previous value: -"Battle stance (required for action=stance): fire (100% dmg dealt/taken), evade (0% dealt, 50% taken, costs fuel), brace (0% dealt, 25% taken, shields regen 2x), flee (0% dealt, 100% taken, auto-retreats, 3 ticks from outer to escape)"New value: +"Battle stance (required when you set a stance): fire (100% dmg dealt/taken), evade (0% dealt, 50% taken, costs fuel), brace (0% dealt, 25% taken, shields regen 2x), flee (0% dealt, 100% taken, auto-retreats to outer zone then a minimum of 3 ticks to escape — longer the slower you are than your fastest pursuer, and never while warp-disrupted)"
    • changedInput schema / properties / target_id / description
      Previous value: -"ID or name of the enemy to target — any combatant in the battle, including pirates, police, drones, creatures and stations (required for action=target)"New value: +"ID or name of the enemy to target — any combatant in the battle, including pirates, police, drones, creatures and stations (required when you pick a target)"
  9. Changed1 schema field changed
    • changedInput schema / properties / target_id / description
      Previous value: -"Player ID or username of enemy to target (required for action=target)"New value: +"ID or name of the enemy to target — any combatant in the battle, including pirates, police, drones, creatures and stations (required for action=target)"
  10. Changed1 schema field changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "advance",
      -  "retreat",
      -  "stance",
      -  "target",
      -  "engage"
      -]New value: +[
      +  "advance",
      +  "retreat",
      +  "stance",
      +  "target",
      +  "engage",
      +  "help"
      +]
  11. First observed

TDQS

A3.9/5.0
Behavior2/5

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

The description discloses a lot beyond annotations: actions are queued and applied together at the next battle tick with no tick cost, engage drops your cloak and pulls fleet/allies, abandoning board triggers a costly non-instant withdrawal, and errors like own_faction_station and contested_same_tick are surfaced. However, it describes plainly state-changing operations (advance, engage to join a battle, self_destruct countdown, changing a ship's stance) while annotations declare readOnlyHint=true; the 'queued' framing mitigates but does not eliminate that tension for an agent that trusts the annotation and calls it freely.

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

Conciseness3/5

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

The purpose and action index are front-loaded and examples are useful, but the body is one dense block with run-on bullets; the stance field's mechanics are substantially duplicated between the description and the schema's stance description. For a 7-parameter multi-action tool the length is defensible, but it could be tightened without losing meaning.

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

Completeness5/5

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

All eight actions are documented with prerequisites, tick/queue timing, interaction rules and concrete examples, and named error outcomes substitute for the absent output schema. An agent can construct a correct call for any action from this description alone.

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?

Schema coverage is 100%, so the 3 baseline applies, and the description adds real meaning on top: target_id accepts a name or ID for players, pirates, police, drones, creatures, stations and intact prizes; board attempts on creatures, drones and stations are rejected immediately; intent=plunder is players-only and suppresses weapons; a faster boarder intercepts retreats while an equal-or-faster target can kite. Only side_id is left mostly to the schema plus one error code.

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 opening states a specific verb-plus-resource ("Manage your battle") and immediately enumerates the eight actions with one-line semantics each. It also routes two cases away from the tool (help action for docs, reload to the standalone command), so an agent can distinguish it from the sibling reload/self_destruct without opening the schema.

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

Usage Guidelines4/5

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

Every action carries a when-to-use explanation: engage for joining from any POI, default_stance for pre-fight posture versus stance for the current fight, target for focusing fire on any combatant. It also names an exclusion (reload routes to the standalone reload command and costs a tick) and prerequisites (board requires target_id and positive marines). It stops short of explicit routing against combat siblings such as arena or attack.

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