graphlit-mcp-server

Official

extractText

Extracts JSON data from text using LLM. Accepts text to be extracted, and JSON schema which describes the data which will be extracted. JSON schema needs be of type 'object' and include 'properties' and 'required' fields. Optionally accepts text prompt which is provided to LLM to guide data extraction. Defaults to 'Extract data using the tools provided'. Returns extracted JSON from text.

Input Schema

NameRequiredDescriptionDefault
promptNoText prompt which is provided to LLM to guide data extraction, optional.
schemaYesJSON schema which describes the data which will be extracted. JSON schema needs be of type 'object' and include 'properties' and 'required' fields.
textYesText to be extracted with LLM.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "prompt": { "description": "Text prompt which is provided to LLM to guide data extraction, optional.", "type": "string" }, "schema": { "description": "JSON schema which describes the data which will be extracted. JSON schema needs be of type 'object' and include 'properties' and 'required' fields.", "type": "string" }, "text": { "description": "Text to be extracted with LLM.", "type": "string" } }, "required": [ "text", "schema" ], "type": "object" }