Skip to main content
Glama

attack

Destructive

Attack another player, pirate, empire NPC, creature, station, or intact prize (target_id accepts a player ID, username, pirate ID, empire NPC ID, wildlife creature ID, intact-prize actor ID, or station/base ID. The target must be at your current POI, or already fighting in the battle in your system: starting a battle is local, joining one is system-wide. A target you cannot see (at another POI, cloaked, or an unknown ID) returns invalid_target "Target not found"; a docked pilot at your POI returns target_docked, and a station at another charted POI returns out_of_range. A station owned by your own faction cannot be attacked: the command returns own_faction_station. Intact-prize actor IDs are listed by get_nearby; attacking one intercepts the physical captured hull during recovery. Attacking any target creates or joins a system-scale battle with zone-based tactical combat — it is not a single one-off volley. Once the battle exists it resolves automatically every tick without further commands. Do not re-issue 'attack' on a target you are already fighting: it never fires an extra volley — against a player already in your battle it merely re-points your target (identical to battle action 'target'), and against a pirate it re-points your target, re-applies the reputation penalty with that pirate faction and again summons that pirate's stronghold's combat pirates in the system toward you. Attacking a pirate outside your battle pulls it in and re-points your target to it. Reciprocal player attacks submitted for the same tick are each classified from tick-start state as independent aggression, so both attackers may receive crime, bounty, and reputation penalties. Use the 'battle' command with action parameter (advance, retreat, stance, target, engage, self_destruct) for tactical control. The attack response confirms the engagement only; read the fight through 'get_battle_status' (free, no battle_id needed — per-participant hull/shield plus your own damage_dealt and kill_count), the per-tick 'battle_damage' and 'battle_update' notifications, and 'get_battle_summary' for the final tally. Attacking a pirate NPC joins or creates the same shared system battle — it is not a 1v1. Every ship of its stronghold in the system joins the battle, and its stronghold's other combat pirates in the system converge on you; another stronghold's pirates do not. Killing one emits a 'pirate_destroyed' notification with credits_earned and, when a wreck is created, wreck_id plus its system and any POI you are allowed to see. Attacking an empire NPC triggers a battle and applies criminal status. Attacking a wildlife creature starts a hunt (equivalent to the 'hunt' command) — wildlife never dogpile, so engaging one creature does not pull in the rest of the herd. Opening fire on a station starts a siege against its hull, shields and gun batteries, which shoot back. Shelling an empire station is a serious crime — it costs three times the reputation that attacking one of its ships does, carries a bounty, and the police respond. A target whose grant of safe passage binds you returns safe_passage.)

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>",
      "target_id": "<target_id>"
    },
    "name": "attack"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_idYesID of the target: a player, pirate, empire NPC, wildlife creature, intact-prize actor, or station. Prize actor IDs come from get_nearby. Reciprocal player attacks submitted for the same tick are each classified from tick-start state as independent aggression, so both attackers may receive crime, bounty, and reputation penalties. Opening fire on a station starts a siege; shelling an empire station is a serious crime.
session_idYesYour session ID from login/register

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed1 schema field changed
    • changedInput schema / properties / target_id / description
      Previous value: -"ID of the target: a player, pirate, empire NPC, wildlife creature, intact-prize actor, or station. Prize actor IDs come from get_nearby. Opening fire on a station starts a siege; shelling an empire station is a serious crime."New value: +"ID of the target: a player, pirate, empire NPC, wildlife creature, intact-prize actor, or station. Prize actor IDs come from get_nearby. Reciprocal player attacks submitted for the same tick are each classified from tick-start state as independent aggression, so both attackers may receive crime, bounty, and reputation penalties. Opening fire on a station starts a siege; shelling an empire station is a serious crime."
  4. Changed1 schema field changed
    • changedInput schema / properties / target_id / description
      Previous value: -"ID of the target: a player, pirate, empire NPC, wildlife creature, or station. Opening fire on a station starts a siege; shelling an empire station is a serious crime."New value: +"ID of the target: a player, pirate, empire NPC, wildlife creature, intact-prize actor, or station. Prize actor IDs come from get_nearby. Opening fire on a station starts a siege; shelling an empire station is a serious crime."
  5. Changed1 schema field changed
    • changedInput schema / properties / target_id / description
      Previous value: -"Player ID to attack"New value: +"ID of the target: a player, pirate, empire NPC, wildlife creature, or station. Opening fire on a station starts a siege; shelling an empire station is a serious crime."
  6. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only flag destructive=true; the description goes far beyond, disclosing that attack creates a persistent system-scale battle resolving each tick, that repeating it re-applies pirate reputation penalties and summons stronghold pirates, that reciprocal attacks both take crime/bounty penalties, station siege mechanics, own_faction_station and safe_passage refusals, and the exact error strings returned (invalid_target, target_docked, out_of_range).

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 is front-loaded, but the body is one very dense block that restates material already in the target_id schema description (the reciprocal-attack penalty sentence is duplicated verbatim, and the station/siege note repeats twice). Content mostly earns its place, but the lack of paragraph or list structure makes it harder to scan than it needs to be.

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?

For a high-complexity combat tool with no output schema, the description covers initiation conditions, error outcomes, tick-based resolution, and explicitly tells the agent how to observe results (get_battle_status per-participant hull/shield with damage_dealt and kill_count, battle_damage/battle_update notifications, get_battle_summary). Little an agent needs is missing.

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 baseline would be 3, but the description adds real constraints the schema omits: the target must be at your current POI, or already fighting in a battle in your system (local vs system-wide reach), and what each ID class implies behaviorally. Meaningful lift over the structured field.

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?

Opens with a specific verb plus an enumerated resource set ('Attack another player, pirate, empire NPC, creature, station, or intact prize'), immediately followed by the accepted target_id ID classes. An agent can distinguish this from 'hunt', 'battle', or 'station' without opening any schema.

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?

Explicitly states when to use and when NOT to: 'Do not re-issue attack on a target you are already fighting' with the reason (no extra volley, only re-pointing). It routes to alternatives by name — 'battle' with actions advance/retreat/stance/target/engage/self_destruct, 'get_battle_status', 'get_battle_summary', and notes wildlife attack is equivalent to 'hunt'.

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