Skip to main content
Glama

ai_knowledge_graph

Read-only

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

NameRequiredDescriptionDefault
textYese.g. Tim Cook is the CEO of Apple. Apple is headquartered in Cupertino, California. In 2014 Apple acquired Beats Electronics for $3 billion.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only cover read-only/open-world/no-destruction; the description goes well beyond them by disclosing the grounding pipeline (quotes checked offline as exact/close/partial/not_found), the pruning rule (relations with endpoints not in the text are dropped), and the three-tier GROUNDED/MOSTLY_GROUNDED/REVIEW verdict. It also discloses the paid x402 requirement and input size ceiling, which no structured field conveys.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is front-loaded with the core action and the grounding guarantee, and every clause carries information (entity types, quote checking, outputs, limits, price). The single dense block would scan better with the outputs and optional params separated, but there is no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema and only one input field, the description carries the full burden and does so: it lists every returned artifact (entities with mention counts and degree, relations, central entities, Mermaid graph, verdict) and states input limits and cost. Only the phantom optional parameters keep it from being flawless.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for the single 'text' parameter, so the baseline is 3, and the description does add a real constraint (12,000 char limit) plus behavior of the optional 'focus' and 'max_relations' arguments. However, those two optional parameters do not appear anywhere in the supplied input schema, so the description advertises knobs an agent cannot pass — a mismatch that undercuts otherwise useful parameter detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb+resource ('Turn text into a knowledge graph') and enumerates the outputs (entities, SPO relations, evidence quotes, Mermaid graph, verdict), which makes it distinguishable from a generic graph utility like util_graph. An agent knows exactly what it gets back without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage constraints are stated concretely: 'Up to 12,000 chars', 'max_relations (3-40, default 25)', and an optional 'focus=' narrowing hint, plus the price gate ($0.01 USDC via x402). There is no explicit when-not-to-use or named alternative, so it stops short of a 5, but the operating envelope is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources