Skip to main content
Glama

set_nostr_identity

DestructiveIdempotent

Set a Nostr identity for the agent. Stores the private key and derives the public key. REQUIRES AGENT KEY.

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": {
      "private_key": "<private_key>"
    },
    "name": "set_nostr_identity"
  }
}

Input Schema

NameRequiredDescriptionDefault
private_keyYes64-character hex Nostr private key

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior3/5

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

The description adds real value beyond annotations by disclosing that the private key is persisted and a public key is derived — relevant for a secret-handling tool. Annotations already carry destructiveHint=true and idempotentHint=true, but the description does not say whether an existing identity is overwritten or what "REQUIRES AGENT KEY" actually requires (credential, env var, or prior create_agent call).

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 the action, then the effect, then the hard prerequisite. No filler or repetition.

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?

There is no output schema, so the description could state whether the derived public key is returned or whether the call overwrites an existing identity — both material for a destructive, secret-storing operation. It covers the essentials but leaves these gaps for an agent that needs to know the result of the call.

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% and the single parameter is fully documented as a 64-character hex private key, so the baseline is 3. The description adds only that the key is stored and used to derive a public key, which is behavioral context rather than parameter semantics.

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?

"Set a Nostr identity for the agent" gives a specific verb and resource, and the follow-up sentence clarifies the mechanism (store private key, derive public key). It implicitly distinguishes itself from get_nostr_identity by being the write counterpart, but never names that sibling explicitly.

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?

The prerequisite "REQUIRES AGENT KEY" is stated, which is useful context for invocation, but there is no explicit when-to-use vs. when-not guidance and no pointer to get_nostr_identity for reading an existing identity. Usage is only implied by the verb.

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.