Skip to main content
Glama

fetch_event

Read-only

Retrieves a Nostr event by its nip19 identifier, enabling AI agents to look up public event data from the Nostr network.

Instructions

Fetch a Nostr event using a nip19 identifier

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

Input Schema

NameRequiredDescriptionDefault
identifierYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety and network-reaching profile is covered. Beyond that, the description says nothing about which relays are consulted, timeout/retry behavior, or what happens if the event is not found — the main behavioral questions for a network fetch.

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?

One front-loaded sentence with no filler, and the most important constraint (identifier format) is placed where it is read first. Brevity here is efficient rather than padded.

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

Completeness3/5

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

For a single-parameter read tool with annotations covering the safety profile and no output schema, the definition is roughly adequate. It falls short on accepted identifier variants and not-found/error behavior, which an agent needs to call it correctly and interpret failures.

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

Parameters3/5

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

Schema coverage is 0%, so the single 'identifier' parameter is undocumented in structured data; the description partially compensates by stating it must be a nip19 identifier. It still does not say which nip19 prefixes are accepted (note, nevent, naddr) or that raw hex ids are rejected.

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?

The description names a specific verb ('Fetch') and resource ('a Nostr event'), and even qualifies the input format ('nip19 identifier'). That is enough for an agent to tell this apart from the sibling documentation readers (read_kind, read_nip, read_tag), which all target protocol/spec content rather than a live event.

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?

The only implicit usage condition is that you need a nip19 identifier in hand; there is no explicit when-to-use, no exclusion, and no mention of what to do when only a hex event id or an naddr coordinate is available. An agent must infer the preconditions.

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