Skip to main content
Glama

nostr_zap

Destructive

Send a Nostr zap (NIP-57 Lightning payment with optional Nostr event). If the recipient supports NIP-57, a proper zap receipt is created. Otherwise falls back to a regular Lightning address payment. REQUIRES AGENT KEY with Nostr identity set. Paid as a Lightning-address payment: platform fee 1% of the amount, rounded down, minimum 1 sat, reported as platform_fee_sats.

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": {
      "address": "<address>",
      "amount_sats": "<amount_sats>"
    },
    "name": "nostr_zap"
  }
}

Input Schema

NameRequiredDescriptionDefault
relaysNoNostr relay URLs for zap receipt
addressYesLightning address to zap (user@domain.com)
contentNoOptional zap comment/message
event_idNoNostr event ID to attach zap to (hex format)
amount_satsYesAmount in satoshis to zap
recipient_pubkeyNoNostr hex pubkey of recipient (for NIP-57 zap receipt)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and non-idempotency, so the safety profile is covered; the description adds real value on top by disclosing the 1% platform fee (rounded down, minimum 1 sat) and the exact reporting field, plus the auth prerequisite and protocol fallback. It stops short of stating that the payment is irreversible with no refund path, which would be the natural remaining disclosure for a funds-moving tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences, front-loaded with what the tool does before the protocol nuance, the auth requirement, and the fee. Nothing is repeated from the schema and no sentence is filler.

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

Completeness4/5

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

For a 6-parameter payment tool with no output schema, the description covers purpose, auth, fee, and the NIP-57 vs fallback branch, which is most of what an agent needs to call it correctly. It mentions only platform_fee_sats as a return field, leaving the rest of the response shape (receipt, payment hash) unstated.

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 description coverage is 100%, so all six parameters are already documented in the input schema, and the description adds no per-parameter meaning beyond what is there. The only semantic addition is the fee applied to amount_sats, which is amount-related context rather than a parameter definition. Baseline 3 applies.

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 resource ('Send a Nostr zap') and immediately qualifies it with the protocol ('NIP-57 Lightning payment with optional Nostr event'). The fallback behavior is named explicitly, so an agent can tell this apart from plain invoice or tip siblings without opening the schema.

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

Usage Guidelines4/5

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

Gives a clear precondition ('REQUIRES AGENT KEY with Nostr identity set') and explains the runtime branch: a proper zap receipt when the recipient supports NIP-57, otherwise a Lightning-address payment. It does not compare against alternative payment tools (e.g. create_invoice or board_tip), so the choice of this tool over a generic payment is left implicit.

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.