relatedness

Pack: conceptnet · Endpoint: https://gateway.pipeworx.io/conceptnet/mcp

Semantic-relatedness score (0..1) between two terms.

Parameters

NameTypeRequiredDescription
node1stringyesFirst term or /c/en/ node
node2stringyesSecond term or /c/en/ node
langstringnoDefault lang for plain-text terms (default en)

Example call

Arguments

{
  "node1": "dog",
  "node2": "cat"
}

curl

curl -X POST https://gateway.pipeworx.io/conceptnet/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"relatedness","arguments":{"node1":"dog","node2":"cat"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('relatedness', {
  "node1": "dog",
  "node2": "cat"
});

More examples

{
  "node1": "/c/en/computer",
  "node2": "/c/en/laptop",
  "lang": "en"
}

Response shape

FieldTypeDescription
relatednessnumberRelatedness score (0..1)
node1stringFirst node URI
node2stringSecond node URI
Full JSON Schema
{
  "type": "object",
  "description": "Semantic relatedness score between two terms",
  "properties": {
    "relatedness": {
      "type": "number",
      "description": "Relatedness score (0..1)"
    },
    "node1": {
      "type": "string",
      "description": "First node URI"
    },
    "node2": {
      "type": "string",
      "description": "Second node URI"
    }
  }
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "conceptnet": {
      "url": "https://gateway.pipeworx.io/conceptnet/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build June 12, 2026