Skip to main content
Glama

Compare relays

compare_relays
Read-onlyIdempotent

Compare configured Nostr relays side by side: NIP-11 details, response speed, activity, event kinds, and propagation of recent reference events to see what reached each relay.

Instructions

Compares several configured relays side by side: what each says about itself (NIP-11: software, supported NIPs, limits), how fast it answers, how busy it is (events per hour) and what kinds it holds, and — the useful part — PROPAGATION: it takes the recent events of one reference relay (default: the first configured, normally yours) and asks every other relay for those exact ids, so you see what share of them reached each one. Busy public relays return only their newest events, so samples are never compared directly. A relay that fails is reported and the others still compared; "0 events" comes with the reason the relay gave when it has one.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoWindow in hours to sample (default 24).
relaysNoRelays to compare (wss://…), at least 2. Each must be one of the configured relays; default: all of them. See nostrclaw_status.
referenceNoThe relay whose recent events are looked for on the others (must be one of the compared relays). Default: the first.
sampleLimitNoMost events to fetch per relay; the reference relay contributes at most 200 of them to the propagation check.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.14.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds genuinely non-obvious behavior: busy relays return only newest events so samples aren't compared directly, failing relays are reported while others still compare, and '0 events' comes with the relay's stated reason. This is strong context beyond the annotations, though return shape details are not given.

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 the core comparison and the propagation value proposition, then supporting caveats. It is one dense paragraph and the em-dash aside is slightly rambling but every clause carries useful information.

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?

With no output schema and read-only annotations already covering safety, the description still explains what the agent will learn (share of events that reached each relay), how failures and zero counts are handled, and sampling caveats. Nothing essential to correct invocation 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% so baseline is 3, but the description adds meaning: the reference relay's events are what get looked for on the others, defaulting to the first configured relay, and the reference contributes at most 200 events to the propagation check. This clarifies the sampleLimit interaction beyond the schema.

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?

Names a specific verb (compares) and resource (configured relays) and enumerates the dimensions compared: NIP-11 info, latency, activity, kinds, and propagation. This is clearly differentiated from siblings like relay_overview because it emphasizes the side-by-side propagation check across multiple relays.

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

Usage Guidelines3/5

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

Describes the mechanics and defaults (first configured relay as reference) but never explicitly says when to pick this over relay_overview or nostrclaw_status, nor when not to use it. Usage is implied by the propagation emphasis rather than stated.

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