Skip to main content
Glama

resolve_did

Resolve a decentralized identifier (DID) to its corresponding DID document, or retrieve a list of all registered DID documents.

Instructions

Resolve a DID to its DID document, or list all registered DID documents.

Parameters:
    did: the DID to resolve, e.g. "did:ietf:...". If omitted/empty, returns
         a list of every DID document currently registered.

Returns the matching DID document (dict) when a DID is given, or a list of
all DID documents when none is given. Raises ValueError if the DID is unknown.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
didNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The description discloses key behavioral traits: it returns a dict for a specific DID, a list of documents when no DID is given, and raises ValueError for unknown DIDs. Since no annotations are provided, the description carries the full burden and does so effectively.

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

Conciseness5/5

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

The description is concise, with a clear front-loaded sentence followed by a brief parameter explanation and return values. Every sentence adds value without unnecessary wording.

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?

For a single-parameter tool with an output schema (implied), the description adequately covers return types, error behavior, and parameter semantics. It is complete for the level of complexity.

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?

The description adds significant meaning beyond the schema: it explains the did parameter's role, gives an example format, and describes the special behavior when omitted. With 0% schema coverage, this compensation is strong.

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?

The description clearly states the tool's purpose: resolve a DID to its document or list all DIDs. It specifies the verb 'resolve' and the resource 'DID document', and distinguishes between the two behaviors based on the parameter. This differentiates it from siblings like get_did.

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?

The description provides clear context on when to use the tool (to resolve a specific DID or list all DIDs). It does not explicitly state when not to use it or mention alternatives, but the dual behavior is well explained.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fcapub/idm-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server