Skip to main content
Glama

Hookr

Link a wallet to its agent id

hookr_build_agent_link
Read-onlyIdempotent

Builds the Agent gate's link of a wallet to its ERC-8004 agent id, so the agent's score counts on agents-only pools: an unsigned call, simulated from the wallet, which the gate takes only from the agent's wallet or its owner on the identity registry, on the gate a poolId names. Where that gate asks a wallet with code for a proof, pass proof to build linkWithProof, or sign the digest returned with a refused status as a message (a Safe) and send link; with unlink it builds the call that removes the link, and its status is ok (send the call), or refused or unknown (no calls, with the reason).

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

Input Schema

NameRequiredDescriptionDefault
proofNoFor a wallet with code: the signature its isValidSignature approves for the link digest. Builds linkWithProof.
poolIdNoAn agents-only pool's PoolId: the link goes to the gate the pool names. Without it, to the gate launches bind.
unlinkNoBuild the unlink instead, which removes the wallet's link.
walletYesThe wallet that signs and links.
agentIdNoThe agent's ERC-8004 id, a whole number. Needed to link.

Output Schema

NameRequiredDescriptionDefault
callsYesUnsigned calls, in the order to send them.
reasonNoWhy the answer is not ok, in words an agent can act on.
statusYesok, refused or unknown.
linkDigestNoFor a wallet with code: the digest its isValidSignature must approve.
simulationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive behavior, but the description adds substantial context: this is an unsigned simulated call, the gate only accepts it from the agent's wallet or identity-registry owner, and it explains proof handling plus ok/refused/unknown status behavior. None of this contradicts the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded and the content is dense with relevant information rather than filler. However, the long semicolon-heavy sentence is difficult to parse and would benefit from being split into clearer steps.

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?

Given the complex multi-branch flow, the description covers authorization constraints, proof handling, unlink behavior, and status outcomes, while the output schema removes the need to explain return values. The main remaining gap is explicit routing guidance among sibling tools.

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%, and the schema already explains proof, poolId, unlink, wallet, and agentId semantics. The description mostly restates those meanings rather than adding new parameter-level guidance beyond the schema.

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 and resource: builds the Agent gate's link of a wallet to its ERC-8004 agent id, scoped to agents-only pools. It also distinguishes the unlink variant through a parameter, but it does not name or differentiate itself from sibling tool hookr_build_agent_links.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives conditional usage guidance for proof, unlink, and signing the digest when the gate refuses, which is useful procedural context. However, it does not explicitly say when to choose this tool over sibling builders such as hookr_build_agent_links, nor does it state exclusions.

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