wot_score
Check a Nostr pubkey's Web of Trust reputation score using PageRank algorithm. Get score (0-100), rank, percentile, and follower data to assess trustworthiness in the network.
Instructions
Look up a Nostr pubkey's Web of Trust score (PageRank-based, 0-100). Returns score, rank, percentile, followers. 50 free requests/day, then L402.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pubkey | Yes | Nostr public key in hex format | |
| payment_hash | No | Payment hash if free tier exhausted |
Implementation Reference
- src/index.ts:124-135 (handler)The 'wot_score' tool is defined and implemented here using the `server.tool` method. It calls the `wotGet` helper function to fetch the score from the API and formats the result.
server.tool( "wot_score", "Look up a Nostr pubkey's Web of Trust score (PageRank-based, 0-100). Returns score, rank, percentile, followers. 50 free requests/day, then L402.", { pubkey: z.string().describe("Nostr public key in hex format"), payment_hash: z.string().optional().describe("Payment hash if free tier exhausted"), }, async ({ pubkey, payment_hash }) => { const data = await wotGet("/score", { pubkey }, payment_hash); return textResult(formatL402(data)); } );