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:
ingest_text_content(project_code, text) → schema + instructions
add_knowledge_nodes(project_code, entities) → bulk create nodes
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
| Name | Required | Description | Default |
|---|---|---|---|
| project_code | Yes | Project code (e.g., 'abc12345') — from list_knowledge_projects | |
| text_content | Yes | The full text to extract knowledge from (up to 500k chars). Can be a book chapter, article, lecture notes, etc. | |
| source_title | No | Optional title/name of the source material | |
| source_url | No | Optional URL of the source material | |
| environment | No | Target environment | staging |