Skip to main content
Glama

nostr_publish_text_note

Publish a kind:1 text note to NOSTR with automatic tag building for replies, mentions, and hashtags.

Instructions

Convenience wrapper for publishing a kind:1 text note. Builds the e / p / t tags from the structured inputs (replies, mentions, hashtags) so the agent doesn't have to assemble them. Requires kind 1 to be in NOSTR_ALLOWED_KINDS.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesThe text note's body.
hashtagsNoOptional. Hashtags to attach (adds `t` tags). Don't include the `#` prefix.
mention_pubkeysNoOptional. Additional pubkeys to mention (adds `p` tags).
reply_to_authorNoOptional. Author pubkey of the event being replied to (adds a `p` tag).
reply_to_event_idNoOptional. If set, the note is a reply to this event id (adds an `e` tag with marker `reply`).
Behavior3/5

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

No annotations provided, so the description carries the burden. It explains tag assembly and the allowed kinds constraint, but doesn't disclose other traits like idempotency, rate limits, or error behavior.

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 concise sentences: first states purpose, second states a key requirement. No wasted words.

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 5-parameter tool with no output schema, the description is adequate but lacks details about the return value (e.g., the published event ID) or error conditions.

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 100%, so the baseline is 3. The description adds minor value by noting hastags omit the # prefix, but otherwise repeats schema info.

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's a convenience wrapper for publishing kind:1 text notes, distinguishing it from generic event publishing (nostr_publish_event) and other siblings.

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?

Mentions the NOSTR_ALLOWED_KINDS requirement, but doesn't explicitly state when to use this vs alternatives (e.g., for simple text notes vs custom kinds).

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