ai_knowledge_graph
Knowledge graph from text (grounded) — Turn text into a knowledge graph: entities (person, organization, location, product, event, date, money, concept) and subject-predicate-object relations, each with a short evidence quote. Every relation's quote is checked offline against your text (exact/close/partial/not_found) and relations whose endpoints are not in the text are dropped. Returns entities with mention counts and degree, relations, most central entities, a ready-to-render Mermaid graph and a GROUNDED/MOSTLY_GROUNDED/REVIEW verdict. Optional: focus=, max_relations (3-40, default 25). Up to 12,000 chars. Price: $0.01 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "ai_knowledge_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | e.g. Tim Cook is the CEO of Apple. Apple is headquartered in Cupertino, California. In 2014 Apple acquired Beats Electronics for $3 billion. |