Skip to main content
Glama

remove_items_from_container

Destructive

Remove items from a placeable container's inventory by resref (all matches) or by 0-based index.

Instructions

Remove items from a placeable container's inventory by resref (all matching) or by index.

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": {
      "area": "<area>",
      "containerTag": "<containerTag>"
    },
    "name": "remove_items_from_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaYesArea resref
indexNoRemove a specific item by 0-based index
itemResrefNoRemove all items matching this resref
containerTagYesTag of the placeable container

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.3.1

TDQS

A3.7/5.0
Behavior4/5

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

The destructiveHint annotation already flags this as a write operation, and the description adds the crucial scope detail that resref removal deletes ALL matching items, not just one. It still omits irreversibility, behavior when the container is missing, and what happens if both index and itemResref are supplied.

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

Conciseness5/5

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

A single front-loaded sentence with no filler; the destructive scope caveat ('all matching') is placed immediately after the mode it qualifies.

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?

With full schema coverage and a destructive annotation, the definition is minimally sufficient. It does not resolve the ambiguity of the optional index/itemResref pair (which wins, or whether one is required), which matters for a destructive call.

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 all four parameters are already documented, including the 0-based index and the resref match rule. The description largely restates that schema content rather than adding format or precedence semantics, so the baseline 3 applies.

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?

States a specific verb (remove) and resource (items from a placeable container's inventory) plus the two selection modes, so the operation is unambiguous. It does not differentiate itself from siblings such as bulk_remove_objects or add_items_to_container, leaving the agent to infer the boundary.

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?

The 'by resref (all matching) or by index' clause gives useful mode-selection guidance for the two parameters. However, there is no statement of when to prefer this tool over bulk_remove_objects, nor any prerequisite or failure condition.

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

Deploy Server

Other Tools