Skip to main content
Glama

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
NameRequiredDescriptionDefault
sourceYesSource Nostr pubkey in hex
targetYesTarget Nostr pubkey in hex
payment_hashNoPayment hash if free tier exhausted

Implementation Reference

  • 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));
      }
    );

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/joelklabo/maximumsats-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server