Skip to main content
Glama
dinggi5

Kura

Look up an agent (ERC-8004)

lookup_agent
Read-only

Read an agent's ERC-8004 on-chain identity record by agent ID to check registration, owner, wallet, token URI, domain, and feedback, plus optional payee/resource mismatch checks.

Instructions

Reads an agent's ERC-8004 record from the registry on the active network (read-only, on-chain only — the wallet never fetches the agent's website). Give it agent_id, the agent's number in the Identity Registry. Returns: registered, owner, wallet (the registered agentWallet), token_uri and the uri_domain read from it, declared_name (what the record calls itself), and feedback_clients (how many addresses left feedback). Pass pay_to and/or resource to also get a comparison: whether the address equals the registered wallet and whether the resource's domain equals the domain listed on-chain. IMPORTANT: registration is permissionless — anyone can register any name, domain, or wallet, and anyone can leave feedback. Being registered is NOT proof of safety. Only a mismatch is a strong signal, and only when the agent number came from a source you trust (the service's own docs), not from the payment response itself.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pay_toNoOptional: an address to compare against the agent's registered wallet.
agent_idYesThe agent's ERC-8004 number (agentId — the Identity Registry NFT token id).
resourceNoOptional: a resource URL whose domain is compared with the domain listed on-chain.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.4.1
    • removedInput schema / properties / pay_to / default
      Removed value: -null
    • removedInput schema / properties / pay_to / nullable
      Removed value: -true
    • removedInput schema / properties / resource / default
      Removed value: -null
    • removedInput schema / properties / resource / nullable
      Removed value: -true
  2. Addedv0.3.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint and openWorldHint, and the description goes well beyond them: it discloses that nothing is fetched off-chain, that registration is permissionless, and that being registered is not evidence of safety. This is exactly the kind of adversarial-context caveat an agent needs before treating the result as a trust signal.

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 core action, then the return fields, then the comparison behavior, then the safety caveat. The enumerated return list is long but every item earns its place given there is no output schema. Slightly dense, but no filler sentences.

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?

With no output schema, the description fully enumerates the returned fields (registered, owner, wallet, token_uri, uri_domain, declared_name, feedback_clients) plus the conditional comparison outputs. For a read-only lookup with three parameters, nothing an agent needs to call or interpret it is missing.

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 real semantics: agent_id is the number in the Identity Registry, and pay_to/resource exist specifically to produce address and domain comparisons. That comparison behavior is not derivable from the terse schema property descriptions alone.

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?

States a specific verb and resource: reads an agent's ERC-8004 record from the on-chain registry on the active network. It immediately scopes what the tool does not reach ("the wallet never fetches the agent's website"), which separates it cleanly from the payment/wallet siblings. An agent can tell what this returns without opening 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 invocation guidance (supply agent_id; optionally pass pay_to and/or resource to trigger a comparison) and states the condition under which the result is trustworthy (mismatch only matters when the agent number came from a source you trust). No sibling alternative is named, but the siblings are unrelated domains so the omission is minor. Clear context without explicit when-not-to-call routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.