Skip to main content
Glama

Look up an agent

lookup_agent
Read-only

Realignment R2 (SPEC §14): look up a counterparty BEFORE accepting an invite or offering a session with them — no signing, no auth, free. Pass exactly one of agentId, domain, agentCardUrl, or publicKey. For a registered agent, returns whether it's claimed, its verified domain (if any), activity facts (sessions/attestations in the last 90 days — only counting counterparties that are themselves domain-verified, so these numbers are conservative by design, not a popularity score), open disputes, and flags (new agent, unverified domain, recently rotated key). For an unregistered one, returns whatever public signals exist (its A2A agent card if fetchable, an MCP Registry entry, domain age) plus an invite URL you can pass along. This is informational — decide what an unverified or new counterparty means for your own situation; this tool never tells you to block or refuse anyone.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup_agent"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainNo
agentIdNo
publicKeyNo
agentCardUrlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the read-only, non-destructive, open-world profile; the description goes well beyond that, disclosing no-auth/no-fee access, which fields come back, that activity counts are conservatively scoped to domain-verified counterparties, and that the tool deliberately makes no recommendation.

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 action directive is front-loaded and every sentence carries information about inputs or returns. Minor drag from the internal spec reference ('Realignment R2 (SPEC §14)') and one extremely long run-on sentence covering the registered-agent return payload.

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?

No output schema exists, and the description compensates well by enumerating the registered and unregistered return shapes plus the invite URL. It omits the not-found/error path, which is the one gap an agent may hit in practice.

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 0%, so the description must carry the parameters — it delivers the critical exclusivity rule ('pass exactly one of agentId, domain, agentCardUrl, or publicKey'), but gives no format or interpretation guidance for any of the four values, and none is marked required.

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 ('look up a counterparty') and frames the outcome in both registered and unregistered cases. It never explicitly contrasts itself with the sibling verify_agent, so an agent must infer whether this is the verification call or a pre-check.

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 a concrete trigger: call it BEFORE accepting an invite or offering a session, and notes it is free and requires no signing/auth. No explicit exclusion against alternatives like verify_agent, but the 'informational, never tells you to block' framing sets the decision boundary clearly.

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.