Skip to main content
Glama
Backpack Battles MCP

Backpack Battles MCP

by 53721222-gif

bpb_place_item

Places a Backpack Battles item at target grid coordinates via native drop, returning exact occupied cells and supporting outside-bag or multi-backpack placement.

Instructions

原生落格:pickup(当前物品位置) → 设目标包围盒中心 → Item.drop(),成功返回的 cells 精确等于目标格,并触发游戏正常的落格/放置回调。物品/全部模式下允许放到包外(outside_bag=true);物品可以同时覆盖多个背包,不要求属于单一背包;位置/朝向由游戏 drop 校验。

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": {
      "item_id": "<item_id>",
      "x": "<x>",
      "y": "<y>"
    },
    "name": "bpb_place_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
xYes左上角列,0-8
yYes左上角行,0-6
item_idYes物品/技能 id(来自 state 的 backpack.items、storage 或 buy_item 返回的 skill_id)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses that success returns cells exactly matching the target, that the game's normal placement callbacks fire, that an item may span multiple backpacks, and that the game itself validates position/orientation. The one flaw is the reference to 'outside_bag=true', a flag that does not exist in the input schema, which could mislead an agent looking for it.

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

Conciseness4/5

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

One dense paragraph, front-loaded with the purpose then the mechanism, with no filler sentences. The internal implementation steps (pickup → bounding-box center → drop) are arguably more detail than an agent needs, but they are compact and informative rather than wasteful.

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?

For a 3-parameter mutation with no annotations and no output schema, the description does cover return semantics and validation responsibility, which is the main gap it needed to fill. It still leaves out failure behavior, what happens to the item's previous slot, and how it relates to sibling placement/edit tools, so it is adequate but not complete.

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 x/y/item_id are already documented with ranges and sourcing (backpack.items, storage, buy_item skill_id), making the baseline 3 appropriate. The description adds behavioral meaning about multi-bag spanning and game-side validation but no new syntax or constraints on the parameters themselves, and the phantom 'outside_bag' reference adds noise rather than clarity.

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?

The opening phrase '原生落格' plus the pickup → set-target → Item.drop() chain makes it clear this places an item into a grid slot using the game's native drop path. It is distinguishable from bpb_place_bag in that it operates on an item, though the description never names that sibling explicitly. The mechanism detail is precise but the one-line purpose statement is somewhat buried in technical steps.

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

Usage Guidelines2/5

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

It mentions that '物品/全部模式' allows placing outside the bag, but never says when an agent should choose bpb_place_item over bpb_place_bag, bpb_rotate_item, bpb_edit_items, or bpb_edit_all, nor what preconditions (edit mode open, item in backpack) must hold. There are no explicit exclusions or alternative routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.