Skip to main content
Glama

confirm_citizenship

Complete the citizen registration by submitting a signed Nostr event.

This is part of the citizen registration flow (Operator-owned). The Operator calls this on behalf of a patron after the patron has signed the cryptographic challenge from request_citizenship.

Verifies:

  1. The challenge exists and hasn't expired

  2. The Schnorr signature is valid

  3. The event's pubkey matches the claimed npub

  4. The event content contains the issued nonce

  5. The npub is not already registered

On success, commits directly to dpyc-community/members/citizens/{npub}.json to register the new Citizen immediately.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
npubYes
challenge_idYes
signed_event_jsonYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description takes full responsibility for behavioral disclosure. It lists five verification steps (challenge validity, Schnorr signature, pubkey match, nonce content, npub uniqueness) and clearly states the side effect: 'commits directly to dpyc-community/members/citizens/{npub}.json'. This is highly transparent about the tool's write behavior and failure conditions.

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?

The description is well-structured and front-loaded with the primary action. It then provides context, a numbered verification list, and the success outcome. Every sentence adds value and there is no redundant wording. The format is easy to parse for an AI agent.

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

Completeness5/5

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

Given the tool's complexity (3 required parameters, no annotations), the description is remarkably complete. It covers the entire flow, preconditions, verification checks, and the exact commit behavior. Since an output schema exists, the lack of a return value description is not a gap. The tool is fully self-contained for an agent to select and invoke correctly.

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?

The input schema has no descriptions (0% coverage), so the description must compensate. It does so by explaining the context: the challenge, the signed event, and the claimed npub. The verification steps mention 'challenge exists', 'Schnorr signature', 'pubkey matches claimed npub', and 'event content contains the issued nonce', which implicitly define the three parameters. However, there is no explicit per-parameter mapping (e.g., 'challenge_id is the ID returned by request_citizenship'), so it falls just short of a perfect score.

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 the tool's purpose: 'Complete the citizen registration by submitting a signed Nostr event.' It specifies the exact action (confirming citizenship), the resource (citizen registration), and distinguishes itself from sibling tools like request_citizenship by positioning it as the second step in the flow. The verb 'complete' and the mention of 'citizen registration flow' make it unambiguous.

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

Usage Guidelines5/5

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

The description explicitly states when this tool should be used: 'The Operator calls this on behalf of a patron after the patron has signed the cryptographic challenge from request_citizenship.' It conveys a clear precondition and caller role, effectively telling the agent not to use it before request_citizenship or without signed challenges. This is explicit contextual guidance.

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.

TDQS

A3.6/5.0
Disambiguation4/5

Most tools target a distinct resource or lifecycle step: role-specific registrations, campaign tools, relay tools, and doc/status tools are clearly separated. Minor overlap exists between lookup_member/resolve_service and about/get_rulebook, but the descriptions are detailed enough to route an agent correctly.

Naming Consistency4/5

Almost all tool names use lowercase snake_case with a verb_noun structure (register_*, get_*, list_*, update_*, report_*). A few noun-phrase doc/status tools like about, economic_model, network_advisory, and service_status deviate, but the overall pattern remains readable and predictable.

Tool Count2/5

At 30 tools, this surface is heavy and exceeds the 25-tool threshold, especially for what is mostly a registry/oracle service. Several tools are explicitly not yet implemented, and the count would benefit from deferring those stubs or consolidating related doc/resolution tools.

Completeness3/5

Core areas are covered: member lookup, role registration, operator updates, campaigns, relays, governance docs, and status/advisory queries. However, some workflows are stubs (ban elections, citizen renouncement) and lifecycle gaps remain for authority/advocate updates or deregistration, plus no ban-election status/result tool exists.