Skip to main content
Glama

Look up who an agent is

stack_lookup_agent_identity
Read-only

Ask STACK who an agent is. Give exactly one of key_id (the keyid of a Web Bot Auth signature a request carried), site (the host name of the agent's site) or agent_id. Public: no special rights, and the same answer for an agent that does not exist as for one that is closed or whose owner switched the answer off (not found; it never says which and never repeats what you asked). Returns statement (a compact token signed by STACK: check it against STACK's keys at /v1/.well-known/jwks.json before relying on it, and use nothing older than expires_at) and the same facts as plain JSON: agent (id, status active, suspended or closed, and name only when the owner chose to show it), owner (identity_verified and good_standing, yes or no, and nothing else about the owner), lookup (what you asked, echoed) and issued_at and expires_at. It is who stands behind the agent, never what the agent may do.

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": "stack_lookup_agent_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoThe host name of the agent's site
key_idNoThe key id (JWK thumbprint) of a Web Bot Auth signature the agent made: the keyid of its Signature-Input
agent_idNoThe public id of the agent (agt_*), as an earlier statement named it

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?

Goes far beyond the readOnly/openWorld annotations by disclosing the deliberate not-found behavior (indistinguishable for nonexistent, closed, or opted-out agents, with no echo of input), the signed statement plus JWKS verification and expires_at staleness rule, and the privacy limits on owner data. These are exactly the operational caveats an agent cannot get from structured fields.

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?

Purpose is front-loaded in the first clause, followed by input rule, then return shape, then the disambiguation closer. It is a single dense paragraph with long nested parentheticals that make it slower to scan than it needs to be, but every sentence carries substantive content.

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?

There is no output schema, yet the description enumerates the entire return payload (statement, agent, owner, lookup, issued_at, expires_at) including field-level constraints on status values and what owner fields are omitted. Nothing needed to call or interpret this tool correctly 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 the baseline is 3, but the description adds a real constraint the schema does not encode (required is 0 and there is no oneOf): exactly one of the three inputs must be supplied. It also clarifies that key_id comes from a Web Bot Auth Signature-Input keyid and that agent_id comes from an earlier statement, adding provenance the schema only partly implies.

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 ('Ask STACK who an agent is') and pins down its identity scope against the sibling permission tool: 'It is who stands behind the agent, never what the agent may do.' An agent can distinguish this from stack_get_agent_permissions or stack_update_agent without opening a 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 constraints ('give exactly one of key_id, site or agent_id') and states the access posture ('Public: no special rights'). It also implies when not to use it by scoping the answer to identity rather than capabilities, but it never names the alternative tool explicitly.

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.