Skip to main content
Glama

Confirm Citizenship

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

NameRequiredDescriptionDefault
npubYes
challenge_idYes
signed_event_jsonYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full behavioral burden and does well: it enumerates the five verification checks and discloses the concrete write side effect (commits to dpyc-community/members/citizens/{npub}.json). It implies operator authorization via '(Operator-owned)' but does not state failure responses, idempotency, or whether a duplicate call is safe.

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?

Front-loaded with the core action, then a flow-context line and a numbered verification list — structure is easy to scan. Slight redundancy between the opening sentence and the '(Operator-owned)' flow note keeps it from being maximally tight.

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?

An output schema exists, so return values need not be explained; the description still covers flow position, verification steps, and the persistence side effect. For a 3-parameter mutation it is nearly complete, missing only explicit failure/error semantics and idempotency behavior.

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 description coverage is 0% and none of the three required parameters are defined field-by-field. The description lets the agent infer npub (the citizen's public key), challenge_id (issued by request_citizenship), and signed_event_json (the serialized signed event), but never states formats or expected encodings, so it only partially compensates for the documentation gap.

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?

States a specific verb and resource ('Complete the citizen registration by submitting a signed Nostr event') and situates it precisely within the citizen registration flow, explicitly naming the sibling predecessor request_citizenship. An agent can distinguish it from request_citizenship and from other register_* tools without opening a schema.

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 clear context: the Operator calls this on behalf of a patron after the patron has signed the challenge issued by request_citizenship. The trigger condition is unambiguous, though there is no explicit exclusion or list of failure/retry conditions that would tell the agent when NOT to call it.

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.