Skip to main content
Glama

ngit_connect

Connect a user's Nostr identity by showing a QR or code, then wait for signer approval; collect a name and optional backup email for new accounts without handling nsec keys.

Instructions

Connect the user's Nostr identity. Call with no arguments, show say (and the QR, or qr_text if you cannot show images), then wait_s=50 until connected. For a new user, pass name and then email as say asks (email="" to skip). Never ask for, accept or repeat an nsec.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "ngit_connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNonew user: what people should call them
emailNonew user: backup email, "" or "skip" to skip
backupNothey want to back up or move their key
bunkerNoa bunker:// link the user pasted
wait_sNo
confirmNoonly when the user said yes to state "confirm"
restartNonew code / switch account / make a new account anyway
new_userNothey said they are new but gave no name
use_git_configNoonly after the user agreed, when state is no_keychain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations only declare openWorldHint=true and destructiveHint=false; the description adds real behavioral context beyond that — a blocking wait/polling pattern (wait_s=50 until connected), a multi-turn conversational protocol driven by the `say` field, and a hard security rule against handling nsecs. It does not state what happens on timeout or failure, which is the main remaining gap.

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?

Three tight sentences, front-loaded with the purpose and then the call sequence; no filler. It is slightly cryptic in places, referencing `say`, `qr_text`, and states like "confirm" and "no_keychain" without defining them, which costs a bit of readability.

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 9-parameter, no-output-schema, interactive tool, the description covers the critical path: initial call, rendering the prompt, polling, and the new-user branch. It is thin on the recovery branches (restart, bunker, confirm, use_git_config) and on what a timeout returns, but the schema descriptions carry those.

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 already 89%, so the baseline is 3; the description adds ordering semantics (name before email), a concrete recommended value for wait_s (50), and the skip convention for email. It leaves confirm, restart, backup, and use_git_config to the schema descriptions, so it is additive but not exhaustive.

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?

States a specific verb and resource ('Connect the user's Nostr identity') plus the interactive flow that follows, so an agent knows this is the identity-onboarding entry point rather than a read tool like ngit_get or ngit_list. It does not explicitly name a sibling to contrast with, which keeps it just short of a 5.

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 concrete invocation guidance: call with no arguments first, show `say`, then poll with wait_s=50; for a new user pass name then email, with email="" to skip. It also imposes a clear prohibition ('Never ask for, accept or repeat an nsec'). It stops short of explaining when to choose bunker, restart, backup, or confirm branches, leaving those to the schema.

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