Skip to main content
Glama

prepare_hire_merc

Mercenary Market: prepare (unsigned) putting a mercenary you hold to work in one of YOUR crews: +150 points on the crew's racket plus his perk until he expires (7 days from purchase). Needs a free worker slot and no other merc on the crew. Refused with the reason if you do not hold him, he is expired or already on a crew, or the crew is not yours, full or has a merc. Costs only gas.

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>",
      "mercId": "<mercId>",
      "crewId": "<crewId>"
    },
    "name": "prepare_hire_merc"
  }
}

Input Schema

NameRequiredDescriptionDefault
crewIdYesYour crew id.
mercIdYesThe mercenary token id (my_shop_items lists yours).
walletYesYour own 0x wallet address. Nothing is sent from it; it is used to read your balance and allowance and to simulate.
contractSetNoOptional: "v2" (live Games Master v2 contracts) or "legacy" (retired original Season 1 contracts). Only needed if you hold the same id in both; otherwise v2 is tried first, then legacy.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden, and it does well: unsigned output, gas-only cost, 7-day expiry, point yield, and the refusal reasons are all disclosed. It still omits what the returned unsigned transaction looks like and whether any approval is required first, which matters for a prepare-style mutation.

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?

Purpose and effect are front-loaded, followed by preconditions and then refusal cases, with no filler sentences. It is dense and reads as one long run-on string, which slightly hurts scannability.

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-style prepare tool with no annotations and no output schema, the description covers preconditions, side effects, cost, duration, and failure modes. The remaining gap is the shape of the unsigned transaction it returns and any approval prerequisite.

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 (including the v2/legacy enum) are already documented in the schema. The description only indirectly constrains crewId ('YOUR crews') and mercId ('a mercenary you hold'), and those ownership constraints are already credited under refusal behavior.

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?

Names a specific verb and resource ('prepare (unsigned) putting a mercenary you hold to work in one of YOUR crews') and states the concrete effect (+150 points on the crew's racket plus his perk until expiry). The phrase 'a mercenary you hold' cleanly separates it from prepare_buy_merc, which is the acquisition step.

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 clear preconditions (a free worker slot and no other merc on the crew) and enumerates the exact conditions under which the call is refused. It does not explicitly name sibling alternatives or explain the full prepare-then-submit workflow, so it stops short of a 5.

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