Skip to main content
Glama

Hookr

Tokenize an agent's income

hookr_build_agent_income
Read-onlyIdempotent

Builds, one stage per call, the unsigned calls that turn an ERC-8004 agent's payments into a Hookr revenue token from the agent's own wallet: the agent income door for the token's predicted address, then the mint with USDG listed and the door as its stream, then the link in the agent's record, each simulated from the wallet; pass the same terms on every call, send the stage's calls, call again for the next stage, and pay the door only once doorTakesPayments is true.

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>",
      "agentId": "<agentId>"
    },
    "name": "hookr_build_agent_income"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoThe revenue token's name, the same on every call (default AGENT<id> Revenue).
supplyNoThe supply in whole revenue tokens, all minted to the wallet, the same on every call (default 1000000).
symbolNoThe revenue token's ticker, the same on every call (default AGENT<id>r).
walletYesThe agent's own wallet on the ERC-8004 identity registry, which signs every call and becomes the token's creator.
agentIdYesThe agent's ERC-8004 id.

Output Schema

NameRequiredDescriptionDefault
doorNoThe agent income door's address, made by Hookr's factory for this agent; null where the token did not take it.
nextNoWhat to do after these calls.
callsYesUnsigned calls for this stage, in the order to send them.
stageNodoor, mint, link or done: what the chain is waiting for.
termsNo
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, refused or unknown.
agentIdNo
recordHeldNoWhy the agent's record is not written by this wallet.
revenueTokenNoThe revenue token's address, which follows from the wallet and the terms.
doorTakesPaymentsNotrue once the token has taken the door: pay nothing to the door before.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint, so the safety profile is covered. The description adds meaningful context beyond them: the calls are unsigned and simulated from the wallet, the workflow is staged across multiple invocations, and payment is gated on doorTakesPayments. It does not address what happens if terms change between calls or how partial stages fail.

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?

A single dense sentence that is front-loaded with the purpose before folding in the stage sequence and the payment gate. Every clause carries information, though the chained commas make the stage ordering slightly harder to parse than a short enumerated list would.

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 multi-stage composite builder this covers what an agent needs: the three stages, their order, the repeated-terms constraint, and the payment gate. With an output schema present, return shape need not be described. Only error/partial-failure behavior and the boundary with simpler sibling builders are left unstated.

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 coverage is 100%, so the schema already documents name, supply, symbol, wallet and agentId with defaults and patterns. The description's main added meaning is the 'same terms on every call' constraint and that the wallet signs and becomes creator. That is useful but modest, consistent with the baseline 3 when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (builds unsigned calls) and a specific resource outcome: turning an ERC-8004 agent's payments into a Hookr revenue token from the agent's own wallet. It enumerates the three stages (income door, mint with USDG stream, link in the agent's record), which makes the tool's scope concrete. It doesn't explicitly contrast with sibling builders like hookr_build_tokenize or hookr_build_agent_link, so differentiation is inferred rather than stated.

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 real operational guidance: one stage per call, pass the same terms on every call, send the stage's calls, then call again for the next stage, and only pay the door once doorTakesPayments is true. That is a clear invocation protocol dictating sequencing and a gating condition. It does not state when to prefer this composite flow over the simpler individual builders, so alternatives are implied rather than named.

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