Skip to main content
Glama

reload

Reload a weapon or mining gun magazine from ammo in cargo (Consumes 1 ammo item from cargo to fill the magazine. Mining guns use the same weapon_instance_id request field and weapon_id response field as combat weapons. The percussive_mining_array accepts autocannon ammo, kinetic_core_drill accepts railgun ammo, and plasma_fracturing_torch accepts plasma ammo. Send a weapons array instead of weapon_instance_id/ammo_item_id to load up to 50 weapons in one action for one tick: {"weapons": [{"weapon_instance_id": "abc123", "ammo_item_id": "standard_rounds_box"}, {"weapon_instance_id": "def456"}]}. Each entry succeeds or fails on its own and the response reports both. Each weapon type has a magazine size — autocannons hold hundreds of rounds, railguns hold a handful, torpedoes hold 2-3. Energy weapons (lasers, beams) don't need ammo. Works mid-battle and mid-flight (costs a game tick). Swapping to a different ammo type discards remaining rounds. Weapons auto-load when first installed if compatible ammo is in cargo. Weapons with the ammo_from_cargo special (e.g. the Scrapgun) accept any cargo item as ammo. Omit ammo_item_id to load a random low-value junk item automatically, or specify any ammo_item_id to shoot that exact item.)

Input Schema

NameRequiredDescriptionDefault
weaponsNoBulk reload: array of {weapon_instance_id, ammo_item_id?} entries loaded in a single action for one tick, however many weapons. Omit weapon_instance_id/ammo_item_id when using this. Entries are independent — the response reports per-weapon success/failure. Maximum 50 entries.
session_idYesYour session ID from login/register
ammo_item_idNoItem ID of ammo to load from cargo (must match the module's ammo type). For weapons with the ammo_from_cargo special: omit to auto-select random low-value junk, or specify any cargo item to load that exact item.
weapon_instance_idNoInstance ID of the fitted weapon or mining gun to reload (use get_ship to see module instance IDs)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / weapons / items
      Added value: +{
      +  "properties": {
      +    "ammo_item_id": {
      +      "description": "Item ID of ammo to load from cargo. Omit for an ammo_from_cargo weapon to auto-select junk.",
      +      "type": "string"
      +    },
      +    "weapon_instance_id": {
      +      "description": "Instance ID of the fitted weapon or mining gun to reload. An entry without one fails alone with missing_weapon.",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / ammo_item_id / description
      Previous value: -"Item ID of ammo to load from cargo (must match the weapon's ammo type). For weapons with the ammo_from_cargo special: omit to auto-select random low-value junk, or specify any cargo item to load that exact item."New value: +"Item ID of ammo to load from cargo (must match the module's ammo type). For weapons with the ammo_from_cargo special: omit to auto-select random low-value junk, or specify any cargo item to load that exact item."
    • changedInput schema / properties / weapon_instance_id / description
      Previous value: -"Instance ID of the fitted weapon to reload (use get_ship to see weapon instance IDs)"New value: +"Instance ID of the fitted weapon or mining gun to reload (use get_ship to see module instance IDs)"
  3. Changed3 schema fields changed
    • addedInput schema / oneOf
      Added value: +[
      +  {
      +    "required": [
      +      "weapon_instance_id"
      +    ]
      +  },
      +  {
      +    "required": [
      +      "weapons"
      +    ]
      +  }
      +]
    • addedInput schema / properties / weapons
      Added value: +{
      +  "description": "Bulk reload: array of {weapon_instance_id, ammo_item_id?} entries loaded in a single action for one tick, however many weapons. Omit weapon_instance_id/ammo_item_id when using this. Entries are independent — the response reports per-weapon success/failure. Maximum 50 entries.",
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "session_id",
      -  "weapon_instance_id"
      -]New value: +[
      +  "session_id"
      +]
  4. Added
  5. Removed
  6. Changed2 schema fields changed
    • changedInput schema / properties / ammo_item_id / description
      Previous value: -"Item ID of ammo to load from cargo (must match the weapon's ammo type)"New value: +"Item ID of ammo to load from cargo (must match the weapon's ammo type). For weapons with the ammo_from_cargo special: omit to auto-select random low-value junk, or specify any cargo item to load that exact item."
    • changedInput schema / required
      Previous value: -[
      -  "session_id",
      -  "weapon_instance_id",
      -  "ammo_item_id"
      -]New value: +[
      +  "session_id",
      +  "weapon_instance_id"
      +]
  7. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries the bulk of behavioral disclosure and does so well: it consumes one ammo item from cargo, costs a game tick, swapping ammo types discards remaining rounds, and bulk entries succeed or fail independently with both reported. It does not describe the failure mode when cargo has no matching ammo, which keeps it short of a 5.

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 and every substantive sentence conveys a real rule, but the whole definition is a single dense paragraph with nested parentheticals, and the bulk-weapons JSON example duplicates what the input schema already documents, including the 50-entry limit and per-entry reporting.

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?

For a mutating tool with no output schema, the description covers the essentials an agent needs to call it correctly: cost, consumption, compatibility, bulk semantics, and partial-failure behavior. Remaining gaps (exact error payloads, what happens with zero matching ammo in cargo) are minor for a definition of this density.

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%, so the parameters are already documented and the baseline is 3. The description does add genuine meaning beyond the schema — the weapon-to-ammo compatibility mapping (percussive_mining_array/autocannon, kinetic_core_drill/railgun, plasma_fracturing_torch/plasma), the omit-ammo junk fallback, and a literal bulk payload example — but much of this repeats schema text rather than resolving ambiguity the schema leaves open.

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?

"Reload a weapon or mining gun magazine from ammo in cargo" states a concrete verb (reload), a concrete resource (weapon/mining gun magazine), and the source of ammo (cargo). It immediately separates the tool from combat siblings like attack or battle by making clear this is an inventory-to-magazine transfer, not a firing action.

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?

The description supplies real when-to-use and when-not-to-use context: it works mid-battle and mid-flight but costs a game tick, energy weapons (lasers, beams) never need it, and weapons auto-load on install if compatible ammo exists. It does not name a sibling alternative or spell out that a weapon must already be fitted, but the conditions for using it are otherwise clear.

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