Skip to main content
Glama

nostr_publish_event

Sign and broadcast raw NOSTR events of any allowed kind with safety checks including read-only gate, signer presence, kind allowlist, and rate limiting.

Instructions

Sign and broadcast a raw NOSTR event of any allowed kind. The primitive write tool — other publish_* tools are convenience wrappers around this. Runs the full safety pipeline: read-only gate, signer presence, kind allowlist, rate limit, optional two-step confirmation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
kindYesNOSTR event kind number. Must be in NOSTR_ALLOWED_KINDS. Common kinds: 0 (profile), 1 (text note), 4 (legacy DM), 5 (delete), 30017 (NIP-15 stall), 30018 (NIP-15 product).
tagsNoArray of tags. Each tag is an array of strings; first element is the tag letter (e.g., ["e", "<event_id>", "<relay>"]).
contentYesEvent content payload (typically text or JSON).
created_atNoUnix timestamp in seconds. Defaults to now; some relays reject timestamps too far in the past or future, so don't over-set this.
Behavior4/5

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

No annotations provided, but the description lists safety pipeline steps (read-only gate, signer presence, kind allowlist, rate limit, optional confirmation), disclosing behavioral traits.

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?

Two sentences that are front-loaded: first defines core function, second adds context. Every sentence earns its place.

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?

No output schema; description does not mention return value (e.g., event ID) or signing prerequisites. Missing some completeness for a primitive write tool.

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%, but the description adds value with examples for kind (common kinds), tag structure, content type, and created_at constraints.

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?

The description clearly states it signs and broadcasts a raw NOSTR event of any allowed kind, and distinguishes itself as the primitive write tool with 'convenience wrappers around this'.

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?

Provides context that it's the primitive tool and mentions the safety pipeline, but does not explicitly state when to prefer convenience wrappers or when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/llmops-pro/nostr-ops-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server