Skip to main content
Glama

prepare_job_apply

Convoy hit or Ledger job: prepare (unsigned) your crew's application for an open game: an approve for the exact kit price, then enter. If more crews apply than there are seats, a drand lottery picks the seats and the rest are refunded their kit (prepare_job_refund_kits). Convoy: 1 to 5 wallets, Driver required (a solo Driver can play). Ledger: 2 to 5 wallets, Driver and Hacker required. Roles for both: 1 Driver, 2 Hacker, 3 Muscle, 4 Face, 5 Inside Agent, 6 Pilot (same ids 1 to 5 as the heist and the raid). No vehicle is taken in these two games and a Pilot needs no aircraft. Only the Muscle can bring a weapon, and it counts only while that game is connected to the weapons module (city_state.switches: convoyWeapons and ledgerWeapons; both are on on mainnet as of 13 Nov 2026, and can be off on a test network, where the weapon then adds nothing).

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": {
      "wallet": "<wallet>",
      "game": "<game>",
      "jobId": "<jobId>"
    },
    "name": "prepare_job_apply"
  }
}

Input Schema

NameRequiredDescriptionDefault
gameYesconvoy or ledger.
jobIdYesThe hit or job id (see city_state / /api/uc/convoy and /api/uc/ledger).
rolesNoOne role number per member, same order. Role ids differ per game (see this tool's description).
walletYesYour own 0x wallet address. Nothing is sent from it; it is used to read your balance and allowance and to simulate.
membersNoCrew wallets, YOU first (each other member must have called prepare_approve_leader for you). Omit to go alone where the game allows. The size limit is per game: night_run 1-4, convoy 1-5, ledger 2-5, vehicle_heist 2-5, raid 2-4.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / members / description
      Previous value: -"Crew wallets, YOU first (each other member must have called prepare_approve_leader for you). Omit to go alone where the game allows. The size limit is per game: night_run 1-4, convoy 1-5, ledger 2-5, vehicle_heist 3-5, raid 2-4."New value: +"Crew wallets, YOU first (each other member must have called prepare_approve_leader for you). Omit to go alone where the game allows. The size limit is per game: night_run 1-4, convoy 1-5, ledger 2-5, vehicle_heist 2-5, raid 2-4."
  2. Added

TDQS

A4.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 substantial work: it discloses that output is unsigned, that an approve for the exact kit price is bundled in, that seats are allocated by drand lottery with kit refunds for losers, and that weapon effects depend on the convoyWeapons/ledgerWeapons switches. It stops short of stating failure modes or whether the kit price is read from chain at prepare time.

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-loads the action and the two-mode split, then layers requirements and edge cases. Nearly every clause carries operational information, though the mainnet switch-date aside is longer than an agent needs and the role listing sits mid-paragraph rather than as a distinct block.

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?

For a five-parameter preparation tool with no output schema and no annotations, this covers composition rules, role semantics, lottery/refund behavior, and module-dependent weapon effects. An agent can call it correctly without consulting other documentation.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: the role id mapping (1 Driver through 6 Pilot), the requirement that the wallet appear first in members, and that no vehicle or aircraft is consumed. The schema's own note about 'role ids differ per game' is partly clarified, though the per-game distinction is only implicit.

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 and resource: prepare an unsigned application for a convoy hit or ledger job, including the approve-then-enter sequence. It scopes itself to exactly two enumerated games and names the related refund path, so an agent can distinguish it from other prepare_* tools without reading the schema.

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 per mode (Convoy 1-5 wallets with mandatory Driver; Ledger 2-5 wallets with mandatory Driver and Hacker) and points to prepare_job_refund_kits for the lottery-loser case. It does not explicitly contrast itself with other sibling prepare tools such as prepare_job_claim, but the operating conditions are unambiguous.

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