Skip to main content
Glama

read_nip

Read-only

Retrieves a Nostr NIP document by its two-character NIP number, enabling AI agents to look up protocol specifications when needed.

Instructions

Read a Nostr NIP document

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

Input Schema

NameRequiredDescriptionDefault
nipYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile and network-touching nature are covered. The description adds no context beyond them: nothing about behavior when the NIP is unknown, whether the document is returned whole, or what the response contains.

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?

A single front-loaded sentence with no filler or repetition. It is efficient, though its brevity reflects under-specification captured in the other dimensions rather than economical richness.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool is simple (one required param, no output schema), yet the description omits the two things an agent most needs: the 'two uppercase hex characters' format of the identifier and the fact that retrieval happens over the network and may fail for unknown NIPs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There is one parameter and schema description coverage is 0%, so the description must compensate and does not. The cryptic pattern '^[0-9A-F]{2}$' (two uppercase hex characters) is never explained; an agent could easily pass '1', '01', or lowercase '1a' and fail validation.

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 ('Read a Nostr NIP document'), so the agent knows it retrieves a NIP specification. It does not differentiate from siblings such as read_nips_index or read_protocol, so the agent cannot tell which one to pick from the text alone.

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

Usage Guidelines2/5

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

There is no when-to-use guidance whatsoever: no mention of when to prefer this over read_nips_index, no prerequisite, and no statement of what makes a NIP number valid to look up. The agent must infer the routing decision from sibling names.

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