Skip to main content
Glama

Read NVS record

read_record
Read-onlyIdempotent

Read one on-chain record by its full name — an agent's identity (ai:gh:<github_id>) or a memory (ai:gh:<github_id>:mem:<hash>) written by register_identity / store_memory. Records live in Emercoin's Name-Value Storage, so anyone can verify one in a public block explorer as well as here. Returns the confirmed on-chain record, or a pending one still in the mempool — the status field ('confirmed' | 'pending') distinguishes them. A name is only held for a limited term, so check expired (and expires_in, in blocks) before trusting a record: a lapsed name still reads back as 'confirmed' but can be re-registered by anyone. Read-only, no sign-in required; use whoami to find your own github_id. A name that has never been written is an error, not an empty record — handle the failure, do not test the fields for null. name is the full NVS name and is capped at 512 bytes by the chain. A memory's name ends in the hash that was written, character for character: you cannot search by note or content here. To find memories whose hash you do not have, call list_records with the owner's github_id and read the name field.

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

Input Schema

NameRequiredDescriptionDefault
nameYesFull NVS record name to read. Identity records are 'ai:gh:<github_id>' (e.g. 'ai:gh:3772563'); memory records are 'ai:gh:<github_id>:mem:<hash>', where <hash> is the exact content hash that was stored (e.g. 'ai:gh:3772563:mem:19f4d28b9ef79c22d132cc252f2a2fef02c94c7b91f9c1460990499b522d123b'); if you do not know the hash, list_records(github_id) returns the full names. Any existing NVS name works.

Output Schema

NameRequiredDescriptionDefault
nameNo
timeNo
txidNo
valueNo
statusNo
addressNo
expiredNo
pendingNo
operationNo
days_addedNo
expires_atNo
expires_inNo
pending_updateNo
address_is_mineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Full NVS record name to read. Identity records are 'ai:gh:<github_id>' (e.g. 'ai:gh:3772563'); memory records are 'ai:gh:<github_id>:mem:<sha256-hex>'. Any existing NVS name works."New value: +"Full NVS record name to read. Identity records are 'ai:gh:<github_id>' (e.g. 'ai:gh:3772563'); memory records are 'ai:gh:<github_id>:mem:<hash>', where <hash> is the exact content hash that was stored (e.g. 'ai:gh:3772563:mem:19f4d28b9ef79c22d132cc252f2a2fef02c94c7b91f9c1460990499b522d123b'); if you do not know the hash, list_records(github_id) returns the full names. Any existing NVS name works."
  2. Changed15 schema fields changed
    • addedOutput schema / description
      Added value: +"An NVS record (confirmed from the name DB, or pending from the mempool).\nA field that does not apply is left out: a pending record omits several.\n`status` says whether the write landed; `expired` says\nwhether the name is still held — a lapsed record still reads back as\n'confirmed'."
    • removedOutput schema / properties / address / default
      Removed value: -null
    • removedOutput schema / properties / address_is_mine / default
      Removed value: -null
    • removedOutput schema / properties / days_added / default
      Removed value: -null
    • removedOutput schema / properties / expired / default
      Removed value: -null
    • removedOutput schema / properties / expires_at / default
      Removed value: -null
    • removedOutput schema / properties / expires_in / default
      Removed value: -null
    • removedOutput schema / properties / name / default
      Removed value: -null
    • removedOutput schema / properties / operation / default
      Removed value: -null
    • removedOutput schema / properties / pending / default
      Removed value: -null
    • removedOutput schema / properties / pending_update / default
      Removed value: -null
    • removedOutput schema / properties / status / default
      Removed value: -null
    • removedOutput schema / properties / time / default
      Removed value: -null
    • removedOutput schema / properties / txid / default
      Removed value: -null
    • removedOutput schema / properties / value / default
      Removed value: -null
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the readOnly/idempotent annotations: it discloses that results may be `pending` (mempool) vs `confirmed`, that a lapsed name still reads back 'confirmed' but is re-registerable, and that an never-written name raises an error rather than returning an empty record. These are non-obvious behaviors an agent would otherwise get wrong, and none are inferable from the annotations or schema.

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-loaded with purpose, then behavior, then the fallback path — a logical order with no filler sentences. It loses a point for repeating the name-format examples that the parameter schema already spells out verbatim.

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?

Although an output schema exists, the description still supplies the field semantics that matter for interpretation (status, expired, expires_in) and the error-handling contract. Nothing an agent needs to call this correctly, or to avoid trusting a stale record, 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 already 100% and documents both name formats, so the description's restatement is largely redundant. It does add the 512-byte chain cap and stresses that the trailing hash must match "character for character," which the schema does not say as plainly.

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?

Opens with a specific verb and resource ("Read one on-chain record by its full name") and immediately names the two record kinds plus the sibling tools that write them (`register_identity` / `store_memory`). An agent can distinguish this from `list_records` and the write tools 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 Guidelines5/5

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

Explicitly routes the agent: use `whoami` to get your own github_id, and call `list_records` with the owner's github_id when you don't already have the memory hash. It also states the negative case — you cannot search by note or content here — which is exactly the kind of when-not guidance that separates this from its sibling.

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.