Skip to main content
Glama

faction_create_sell_order

Create a sell order on behalf of your faction (items from faction storage) (Items are escrowed from faction storage. Credits from fills go to the faction treasury. No listing fee. Requires manage_treasury permission. Accepts item_id or item name. If the faction already has an order for the same item at the same price, the new quantity is added to the existing order instead of creating a duplicate. Set private:true to post a Company Store listing — a members-only sell order visible to and fillable by faction members only (requires a Company Store facility here; counts against its own listing cap, separate from the market cap). Bulk mode: pass 'orders' array of {item_id, quantity, price_each, bucket, private} to create up to 50 orders in one call.)

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": {
      "session_id": "<session_id>"
    },
    "name": "faction_create_sell_order"
  }
}

Input Schema

NameRequiredDescriptionDefault
bucketNoOptional: a Storage Extension bucket (name or id) to escrow the listed items from instead of the faction main store. A cancellation returns them there. Not valid for fuel orders.
ordersNoBulk mode: array of faction sell orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored.
item_idNoID of the item to sell from faction storage. Required for single mode.
privateNoOptional: post a Company Store listing — a members-only sell order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap.
quantityNoNumber of items to list for sale. Required for single mode.
price_eachNoPrice per unit in credits. Required for single mode.
session_idYesYour session ID from login/register

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed7 schema fields changed
    • addedInput schema / properties / bucket
      Added value: +{
      +  "description": "Optional: a Storage Extension bucket (name or id) to escrow the listed items from instead of the faction main store. A cancellation returns them there. Not valid for fuel orders.",
      +  "type": "string"
      +}
    • changedInput schema / properties / item_id / description
      Previous value: -"ID of the item to sell from faction storage"New value: +"ID of the item to sell from faction storage. Required for single mode."
    • addedInput schema / properties / orders
      Added value: +{
      +  "description": "Bulk mode: array of faction sell orders to create (max 50). Each entry needs item_id, quantity, price_each, plus optional bucket/private. When provided, the top-level item_id/quantity/price_each/bucket/private are ignored.",
      +  "items": {
      +    "properties": {
      +      "bucket": {
      +        "type": "string"
      +      },
      +      "item_id": {
      +        "type": "string"
      +      },
      +      "price_each": {
      +        "minimum": 1,
      +        "type": "integer"
      +      },
      +      "private": {
      +        "type": "boolean"
      +      },
      +      "quantity": {
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "required": [
      +      "item_id",
      +      "quantity",
      +      "price_each"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / price_each / description
      Previous value: -"Price per unit in credits"New value: +"Price per unit in credits. Required for single mode."
    • addedInput schema / properties / private
      Added value: +{
      +  "description": "Optional: post a Company Store listing — a members-only sell order visible to and fillable by faction members only. Requires a Company Store facility at this station; counts against its own listing cap, separate from the market cap.",
      +  "type": "boolean"
      +}
    • changedInput schema / properties / quantity / description
      Previous value: -"Number of items to list for sale"New value: +"Number of items to list for sale. Required for single mode."
    • changedInput schema / required
      Previous value: -[
      -  "session_id",
      -  "item_id",
      -  "quantity",
      -  "price_each"
      -]New value: +[
      +  "session_id"
      +]
  4. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false; the description carries the rest and does so thoroughly — items escrowed, credits routed to the treasury, no listing fee, duplicate-order merge instead of duplicate creation, Company Store cap counted separately from the market cap. These are non-obvious mutation semantics an agent could not infer from the schema.

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?

Front-loaded with the core action and escrow consequence, then progressive detail. The long parenthetical chain about private listings and bulk mode is dense but each clause adds a distinct fact; minor cost is that the private-listing explanation is duplicated in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, yet the description covers the return-relevant outcomes (escrow deducted, credits to treasury, no fee). Combined with full schema coverage this is enough for an agent to call the tool correctly in both single and bulk modes.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, but the description adds meaning the schema lacks: item name is accepted as well as item_id, the top-level fields are ignored when `orders` is supplied, and bulk is capped at 50. It does not clarify bucket behavior beyond what the schema says.

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?

Opens with a specific verb+resource ('Create a sell order') and immediately scopes it to faction storage, which distinguishes it from the personal-sell siblings and from faction_create_buy_order. The escrow source and destination of credits are stated up front.

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?

Gives concrete preconditions (requires `manage_treasury` permission, items must be in faction storage, Company Store facility needed for private listings) and explains the bulk path. It does not explicitly name a sibling alternative for personal selling, so it stops short of full when-not guidance.

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