Skip to main content
Glama

ingest_text_content

Extract structured entities and relationships from large text blocks to populate knowledge graphs in Graforest MCP. Provides schema and instructions for bulk data ingestion.

Instructions

BATCH INGESTION — the fast way to populate a knowledge graph.

Provide a large block of text (up to 500k chars) and the project code. This tool fetches the graph schema and returns structured extraction instructions. Then call add_knowledge_nodes and add_knowledge_relationships with the extracted data.

3-CALL WORKFLOW:

  1. ingest_text_content(project_code, text) → schema + instructions

  2. add_knowledge_nodes(project_code, entities) → bulk create nodes

  3. add_knowledge_relationships(project_code, relationships) → bulk create edges

This replaces per-entity approach. Extract EVERYTHING from the text in one pass, then write it all in two bulk calls.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
project_codeYesProject code (e.g., 'abc12345') — from list_knowledge_projects
text_contentYesThe full text to extract knowledge from (up to 500k chars). Can be a book chapter, article, lecture notes, etc.
source_titleNoOptional title/name of the source material
source_urlNoOptional URL of the source material
environmentNoTarget environmentstaging

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/velosovictor/graforest-mcp'

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