wot_trust_path
Discover how two Nostr users are connected by analyzing trust relationships between their public keys, displaying the path and trust scores at each hop.
Instructions
Find the trust path between two Nostr pubkeys. Shows hop-by-hop path with trust scores at each hop. Useful for 'how am I connected to this person?'
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | Source Nostr pubkey in hex | |
| to | Yes | Target Nostr pubkey in hex | |
| payment_hash | No | Payment hash if free tier exhausted |
Implementation Reference
- src/index.ts:150-162 (handler)The registration and handler implementation for the `wot_trust_path` tool. It takes `from` and `to` pubkeys, calls the `wotGet` helper, and formats the result.
server.tool( "wot_trust_path", "Find the trust path between two Nostr pubkeys. Shows hop-by-hop path with trust scores at each hop. Useful for 'how am I connected to this person?'", { from: z.string().describe("Source Nostr pubkey in hex"), to: z.string().describe("Target Nostr pubkey in hex"), payment_hash: z.string().optional().describe("Payment hash if free tier exhausted"), }, async ({ from, to, payment_hash }) => { const data = await wotGet("/trust-path", { from, to }, payment_hash); return textResult(formatL402(data)); } );