Skip to main content
Glama

Prepare an unsigned hire request for the owner to approve

prepare_hire
Idempotent

Ask the agent for a signed price for this exact brief and write the hire down in full, UNSIGNED, for a human owner to approve and fund in their own wallet. This tool cannot pay: it signs nothing, moves nothing, escrows nothing and creates no job on chain. The request states every term explicitly — chain, ERC-8183 escrow contract, provider wallet and where that address came from, token, amount in raw units and in words, the owner’s own ceiling in the same money, when the signed price stops holding, and the exact task the signature covers — plus the authority funding it would create and a link where the owner approves it. Show the owner those terms; only they can complete the hire. escrow_chain_id, max_budget and owner_address are all the owner’s, and all three are required: the network this hire spends on, the ceiling it may not exceed, and the wallet that will fund it. The request is bound to that wallet, so two owners asking for the same work are two requests and neither can be handed the other’s job. The escrow chain decides whether this hire spends real money (56) or test tokens (97), so the owner states it: an agent that answers with a price in the other network’s token is refused, never quietly funded on the network it chose. max_budget is the ceiling on that chain’s own token: a price above it is refused rather than prepared, and nothing an agent says in a reply can raise it, change where escrow pays, or grant any wallet permission. Idempotent: calling it again with the same terms returns the same request under the same key, and once that request has been funded it returns the job instead of preparing a second one. If a funding attempt may have landed, pass possibly_funded_job_id and the escrow is read back before anything is offered again.

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": {
      "chain_id": "<chain_id>",
      "token_id": "<token_id>",
      "task": "<task>",
      "escrow_chain_id": "<escrow_chain_id>",
      "max_budget": "<max_budget>",
      "owner_address": "<owner_address>"
    },
    "name": "prepare_hire"
  }
}

Input Schema

NameRequiredDescriptionDefault
taskYesThe brief. Use the payload prepare_brief returned, where it returned one.
answersNoAnswers to prepare_brief’s questions, keyed by field key. Compiled here through the same compiler, so the text quoted is the text the owner approves.
chain_idYesThe ERC-8004 registry chain: 56 for BNB Chain, 97 for BNB Testnet.
token_idYesThe agent’s ERC-8004 token id.
max_budgetYesThe most the OWNER has authorised for this one job, in whole units of the escrow chain’s $U (real $U on 56, test $U on 97), or of payment_token when it is given — 5 then means five of that token, never five $U. Required: there is no default budget, and the owner has to have said both this number and which network it is in.
request_idNoOnly to buy the same work twice on purpose. Omit it and identical terms are treated as one purchase, which is what makes a retry safe.
owner_addressYesThe wallet that will fund this hire: the OWNER’s own public address. Required, with no default — the prepared request is bound to it, so that one owner is never handed another owner’s job and a payment can be checked against the request it answered. If you do not know it, ask the owner; it is not something Pokter can pick. Public address only, never a key or a seed.
payment_tokenNoThe token the OWNER authorised, by contract address, when it is not $U. It must be a token Pokter has turned on for hiring on escrow_chain_id (integration_kit lists them). Omit it for $U. An agent that prices in another token is prepared only when this names exactly that token, and max_budget is then counted in it; a price in any other money than the one named here is refused, never converted.
escrow_chain_idYesThe escrow the OWNER authorised: 56 for BNB Chain, which spends real money (in $U, or in payment_token when given), or 97 for BNB Testnet, which spends test tokens. Required, with no default — an agent is registered on one network and may quote in the other’s token, so this is the owner’s choice and never the agent’s. A quote that settles anywhere else is refused.
possibly_funded_job_idNoA job id from a funding attempt whose outcome is unknown. The escrow is read first and a second request is never offered until the chain has answered.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only flag non-read-only, idempotent, non-destructive and open-world; the description adds far more: no payment, no signing, no escrow, no on-chain job creation, refusal behavior for over-budget or wrong-network quotes, wallet-bound request isolation, idempotent retry semantics, and an escrow read-back when a funding attempt may have landed. This is exactly the behavioral context structured fields cannot carry.

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 purpose and the safety boundary are front-loaded in the first two sentences, and the dense middle spells out the terms the request records. It runs long and repeats the owner-only completion idea, but nearly every sentence carries non-obvious constraint information rather than filler.

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 10-parameter, nested-object mutation with no output schema, the description covers what is written, what it refuses, how retries and post-funding calls behave, and even that a link for owner approval is returned. The only unaddressed parameter, answers, is fully documented in the schema.

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 baseline is 3, but the description adds meaning beyond the schema by framing escrow_chain_id, max_budget and owner_address as owner-authoritative and non-negotiable by an agent reply, and by explaining why the request is bound to that wallet. It does not add detail for task or answers, which the schema already handles.

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 opening states a specific verb and resource: ask the agent for a signed price and write the hire down UNSIGNED for owner approval. The scope boundary ('this tool cannot pay: it signs nothing, moves nothing, escrows nothing') cleanly separates it from the funding/execution siblings such as hire_link and job_status.

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?

Clear when-to-use context is given: get a signed price for this exact brief, then show the terms to the owner, who alone can complete the hire. It also tells the caller when to supply request_id (only to buy the same work twice) and when to pass possibly_funded_job_id. It does not explicitly route between prepare_proposal and prepare_brief, but the sourced guidance is solid.

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.