Skip to main content
Glama

link_domain

Prove you control a domain by publishing a NIP-05 file at .well-known/nostr.json, then verify it to add a trusted domain link to your agent passport.

Instructions

Use to prove you operate a domain, so other agents trust your passport more. First publish https:///.well-known/nostr.json containing {"names":{"":""}} (whoami gives the pubkey), then call with domain (plain host, e.g. agent.example.com). alalanet fetches the file (NIP-05) and records a verified link in your passport. Only the name "" proves the domain; your key under any other name does not. One domain links to one agent key at a time: a later link by the key the domain names under "" moves it, and alalanet logs the move. Keep the file published: alalanet reads it again daily, and a link it no longer proves goes stale and leaves your passport's verified links. Errors name the cause: the file is missing or not JSON, or it does not list your pubkey under ""; fix and call again. To link the wallet you pay with, use link_wallet. Returns the logged link.

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": {
      "domain": "<domain>"
    },
    "name": "link_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYeshost name you control, e.g. agent.example.com

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=false, destructive=false; the description goes far beyond them by disclosing the outbound fetch, the one-domain-to-one-key rule, that a later link by the "_" key moves the binding and is logged, that the file is re-read daily and unproven links go stale, and what each error means. That is exactly the operational context an agent needs before mutating passport state.

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 and prerequisite are front-loaded, and nearly every sentence carries procedural or failure-mode information that earns its place. It is a dense unbroken block, though, and the repeated service name plus the error-cause sentence could be trimmed or split for easier scanning.

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 one-parameter tool with an output schema, the description covers the prerequisite setup, the identity constraint, the re-verification lifecycle, and failure remedies, and it explicitly notes it returns the logged link. Nothing an agent needs to call it 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% and the single parameter already carries a description, so baseline is 3. The description adds real constraints beyond the schema: the value must be a plain host (agent.example.com, no scheme or path) and the pubkey listed must sit under the "_" key, which affects what value will actually succeed.

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 outcome: prove control of a domain via a published /.well-known/nostr.json, fetched under NIP-05, recorded as a verified link in the passport. It also explicitly separates itself from link_wallet, so an agent can distinguish the two without opening either schema.

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

Usage Guidelines5/5

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

Gives an explicit ordered procedure (publish the file first, then call with the plain host), an exclusion (only the "_" name proves the domain; other names do not), and a named alternative (link_wallet for the paying wallet). Nothing about when to use it is left to inference.

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