Skip to main content
Glama

scene_add_currency

Destructive

Define a custom currency in a copied save and add a backpack to every character to hold it, with an optional starting amount.

Instructions

Define a currency (货币) in a copy of a save and give every character a backpack that can hold it, optionally with a starting amount. Currency is the platform's own money: a graph reads and changes it with f.getInventoryCurrencyQuantity(character, currencyId) and f.modifyInventoryCurrencyQuantity(character, currencyId, change), whenTheQuantityOfInventoryCurrencyChanges fires on the character, and shops, item prices and drops are all counted in it. The holder is the character entity (the backpack component is put on the character template), not the player entity. If the map has no backpack template, one of ten slots is made. icon is the number of a currency icon (100001 is the default one, 100007 the Mora coin). The records written are byte for byte those of the official sample 货币与商店. Writes a new .gil in the workspace; the official save is not touched. Verified in play on 2026-10-10: the starting amount is there, and the change event also fires once when the level starts, for the starting amount.

Input Schema

NameRequiredDescriptionDefault
iconNo
nameYes
mapPathNo
outputNameNo
startAmountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

The description adds substantial behavior beyond the annotations: it writes a new .gil in the workspace, leaves the official save untouched, places the backpack on the character template for every character, creates a ten-slot backpack when needed, and notes that the change event fires at level start. It also discloses runtime APIs and event behavior, which is unusually rich for an agent deciding whether and how to invoke 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?

The description is front-loaded with the core action and affected entities, and most sentences carry useful domain or runtime information. It is somewhat overpacked with API signatures, sample parity, and a verification date, but remains readable and well ordered.

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 mutation tool with no output schema and low schema description coverage, the description is largely complete on effects, target entity, backpack behavior, file output, and event semantics. The main remaining gap is that two parameters, mapPath and outputName, are not explained.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning. It explains icon in detail and gestures at name and startAmount, but mapPath and outputName are not described at all, leaving important invocation details undocumented.

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?

The description states a specific verb and resource: define a currency in a save copy and equip characters with a currency-holding backpack. It also distinguishes the concept from player entities and ties it to shops, item prices, drops, and character inventory, so an agent can tell exactly what this tool creates.

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?

Usage context is clear: use this when defining platform currency for a copied save, including optional starting amounts. However, it does not explicitly name alternatives such as scene_list_currencies or state when not to use it, so routing guidance is strong but not complete.

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