wot_predict_link
Analyze connection likelihood between two Nostr users using five network topology metrics to assess potential Web of Trust relationships.
Instructions
Predict how likely two Nostr pubkeys are to connect. Uses 5 topology signals: Common Neighbors, Adamic-Adar, Preferential Attachment, Jaccard, WoT Proximity.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Source Nostr pubkey in hex | |
| target | Yes | Target Nostr pubkey in hex | |
| payment_hash | No | Payment hash if free tier exhausted |
Implementation Reference
- src/index.ts:216-227 (handler)The tool 'wot_predict_link' is registered and implemented in src/index.ts, using the 'wotGet' helper to call the prediction API.
"wot_predict_link", "Predict how likely two Nostr pubkeys are to connect. Uses 5 topology signals: Common Neighbors, Adamic-Adar, Preferential Attachment, Jaccard, WoT Proximity.", { source: z.string().describe("Source Nostr pubkey in hex"), target: z.string().describe("Target Nostr pubkey in hex"), payment_hash: z.string().optional().describe("Payment hash if free tier exhausted"), }, async ({ source, target, payment_hash }) => { const data = await wotGet("/predict", { source, target }, payment_hash); return textResult(formatL402(data)); } );