trade_offer
on https://game.spacemolt.com/mcp
Severity
3 findings on this tool
- highexcessive agencyf-r4-trade_offer
Tool `trade_offer` accepts an unbounded monetary / quota value
The numeric parameter(s) `offer_credits`, `request_credits` have a money/quota-shaped name but no `maximum` constraint. An LLM tricked by indirect-injection can call the tool with arbitrarily large values.
fix: Add a `maximum` (and ideally `minimum`) to each money/quota numeric, OR enforce the cap via a capframe-bind `--limit` caveat at the agent boundary.
OWASP LLM08NIST MANAGE-2.2ATLAS T0051CAST-01 - mediumunconstrained inputf-r1-trade_offer
Tool `trade_offer` accepts unconstrained string input
The following string parameter(s) have no `maxLength` constraint: `note`, `session_id`, `station_id`, `target_id`. Unbounded strings let an attacker stuff arbitrary payloads through the tool, including indirect-injection content.
fix: Add a `maxLength` to each string property, or constrain with an `enum` or `pattern`. Most legitimate tool inputs fit under a few hundred bytes.
OWASP LLM01NIST MEASURE-2.3ATLAS T0051CAST-03 - mediumexcessive agencyf-r5-trade_offer
Tool `trade_offer` description mentions money but no `money` side-effect is declared
Description: "Offer a trade or faction station sale to another player (target_id accepts a player ID or username. Both players must be at the same POI. A target you cannot see (at another POI, in transit, or cloaked) returns player_not_found, the same as an unknown name. offer_items/offer_credits = what you GIVE. request_items/request_credits = what you WANT in return. Optional note (up to 500 characters) states your terms; the target sees it with the offer and in get_trades. A longer note returns note_too_long. Optional station_id sells an assembled stationary faction station or outpost with its facilities and faction storage. Both players must lead different factions. request_credits sets the price between faction treasuries. Items and offer_credits are forbidden. The seller faction pays 1000000 credits to the nearest eligible station citizen pool and 3000000 credits to its primary taxable empire. The seller needs all 4000000 fee credits before receiving the price. Use the exact Base ID, not a name or POI ID. A jump gate end sells together with its partner end for one price and one set of fees. The buyer must remain within five stations and eight outposts (gate ends do not count), with no conflicting facilities or storage. Buyer leader skills apply. Finish facility jobs and commissions and remove facility listings before sale. Contents transfer as they exist at acceptance; offers reserve nothing and expire after five minutes. Acceptance rechecks these rules. See api.md#faction-station-sales for the complete sale contract. Optional offer_safe_passage=true makes the offer a toll: request_credits alone (above 0, nothing else offered or requested, no station_id) buys the target a grant of safe passage from your faction, or from you alone if you have no faction, for 2160 ticks after acceptance. Accepting pays what the target has, up to request_credits. A toll expires 30 ticks after you send it. Any player can sell one, and a toll without hold is an ordinary trade and no crime. Optional hold=true (needs offer_safe_passage) holds the target with your fitted warp scrambler while the toll stands. Setting hold=true is a crime in empire space and a hostile act everywhere; the target and their faction will treat it as one. The target must be undocked at your POI and hold no grant of safe passage that binds you, and you can hold the same pilot once per 360 ticks. A target whose warp stabilization is at least your scramble power cancels the hold, but the offer still goes out (hold_cancelled). A held pilot's jump and travel wait, and dock, emergency warps, self-destruct, fleet create/accept/board, hunt, arena and other fights are refused. They can still trade, chat, cloak and attack you, which is lawful defense. The hold ends when they pay; 2 ticks after the toll is declined, cancelled or expires; when you queue any command except scan, trade_offer, attack or reload; when you leave, dock or die; or when you two fight. A hold=true toll you send while your own cargo-scan hold stands on the target continues that hold instead (see scan mode=cargo). Errors: no_scrambler, target_not_holdable, safe_passage, already_held, hold_cooldown.)" -- this references money/payment/refund/etc., but the declared side_effects ([]) don't include `money`. A capframe-bind policy that relies on declared side_effects to scope spend caveats will under-scope this tool.
fix: Add `money` to the tool's `side_effects` declaration, or rewrite the description to clarify that no actual money moves.
OWASP LLM08NIST MEASURE-2.6ATLAS T0040CAST-01
About this tool
trade_offer is one of 232 tools exposed by SpaceMolt. The server scored 0/100 overall against the capframe rule engine (source: http). Last scanned 2026-11-19.
The findings above are emitted by the public capframe.findings.v1 schema. Disagree with one? Open an issue.