Skip to main content
Glama

get_battle_log

Read-onlyIdempotent

View the tick-by-tick combat replay of a battle by ID (Returns per-tick log entries for any battle (active or completed), yours or not — the same detail spectators see on the website: full weapon attack pipeline (hit/crit rolls, resist %, damage breakdown), burns, shield/hull regen, fuel burned evading, flee progress, zone moves, joins/kills. Defense math is reported in order: shield-resistance skill (while shields remain), typed module resistance, then flat/adaptive module reduction, followed by the final shield/hull split. Typed resistance percentages from modules add together and cap at 75%; flat/adaptive reduction does not stack, so only the strongest such module counts (capped at 75%); the three buckets apply sequentially rather than adding across buckets, with integer truncation after each stage. Applied module outcomes are recorded rather than inferred: dot_damage/dot_duration/dot_source_id report the active merged burn; shield_drain_requested/shield_drained and shield_transfer_pct/shield_transferred distinguish requested from actual siphon values; secondary_kind identifies chain, AOE, ammo splash, and retaliation hits; and emergency_cloak_activated with its duration/strength records a successful emergency exit. Burn rows carry source_id, regen rows carry passive_repair, and boarding rows carry qualitative operation progress; terminal event plundered means pirates or a robbing player removed eligible cargo without taking the hull; a player robbery also removes the victim from the battle with reason surrendered. Against plunder, a ship's crew fights only while a fit marine is aboard: with no marines at latch, or once the last marine falls, the crew surrenders, the plundered row carries reason surrendered, and the ship keeps its surviving crew. Captures are fought to the end by the whole crew and never surrender. Fit barracks and recruit marines (recruit_personnel) so your crew can fight back against plunder. Capture rows record successful intact-ship captures without private personnel counts and newly include captor_kind (player, pirate, or npc), while historical rows may omit it. Optional outcome fields are omitted when the effect did not apply and from older stored rows that predate them. Each newly recorded participant snapshot includes is_npc and is_boss identity provenance. Explicit false means the participant was confirmed not to be an NPC or boss; either field may be omitted on historical stored rows recorded before this provenance existed. Optional "tick_start"/"tick_end" bound the range (default: whole battle); "limit" caps entries returned (default 50, max 200). Use "has_more" and "total_ticks" in the response to page through with tick_start on subsequent calls. Works as a query (no tick cost).)

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>",
      "battle_id": "<battle_id>"
    },
    "name": "get_battle_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoMax ticks to return (default 50, max 200)
tick_endNoLast tick to include (default unbounded)
battle_idYesBattle ID to replay (active or completed, yours or not)
session_idYesYour session ID from login/register
tick_startNoFirst tick to include (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint, but the description adds real behavioral context: no tick cost, visibility across all battles, optional fields omitted when inapplicable, and historical rows predating fields may omit them. The bulk of the text instead documents return-field mechanics, which is useful but reads as an output glossary rather than invocation behavior.

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

Conciseness2/5

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

The first sentence is well front-loaded, but it is followed by dense paragraphs on damage-bucket math, plunder/boarding/capture rules, and provenance flags that no agent needs to decide to call the tool. Long run-on sentences with embedded parentheticals bury the actionable pagination guidance at the end.

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

Completeness4/5

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

With no output schema, the description does carry the burden of explaining returned rows and it does so exhaustively, plus pagination and cost. For a high-complexity replay tool, an agent has enough to call and page it correctly, though the essential parts are not separated from the trivia.

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 coverage is 100%, so all five parameters are already documented in the schema; the description only restates the tick_start/tick_end/limit defaults and adds the paging recipe. That paging recipe is genuinely beyond the schema, but the parameter-level value-add is modest.

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?

Opens with a specific verb+resource+key: "View the tick-by-tick combat replay of a battle by ID," and clarifies scope ("any battle (active or completed), yours or not — the same detail spectators see"). It does not explicitly distinguish itself from siblings like get_battle_summary or get_battle_status, leaving the agent to infer the granularity difference.

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 operational guidance for paging ("Use has_more and total_ticks in the response to page through with tick_start") and cost ("Works as a query (no tick cost)"). However, it never states when to prefer this over get_battle_summary/get_action_log, and the machine-guidance is buried at the very end of a long paragraph.

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