Skip to main content

Ingest Textbook (Async)

Immutable Catalog + Curated Guide

This lossless descriptor comes from the active Portal catalog and is enhanced with reviewed examples.

WRITEqdrant.qdrant-ingest-textbook
  • Contract tier: agent_ready
  • Risk: write
  • Catalog version: qdrant-2026.07.12.2
  • Descriptor hash: 62698598fe8017073abd0b15277a238965b1c8932b785b3b0909ccc9e48d77f6

Submit a source_url textbook ingestion job and return immediately with job_id.

Request Body

{
"jsonrpc": "2.0",
"id": "qdrant-qdrant-ingest-textbook-example",
"method": "tools/call",
"params": {
"name": "qdrant.qdrant-ingest-textbook",
"arguments": {
"collection_name": "school",
"source_url": "https://files.example.com/com120-textbook.pdf",
"metadata": {
"class": "COM120",
"material_type": "textbook",
"title": "Interpersonal Communication: Everyday Encounters",
"author": "Julia T. Wood",
"edition": "9th",
"isbn": "9781337555889",
"publisher": "Cengage"
}
}
}
}

Arguments Schema

{
"type": "object",
"title": "Qdrant Ingest Textbook input",
"required": [
"collection_name",
"source_url"
],
"properties": {
"ocr": {
"type": "boolean",
"title": "Ocr",
"default": true,
"description": "Enable OCR for textbook PDF extraction."
},
"metadata": {
"anyOf": [
{
"type": "object",
"additionalProperties": true
},
{
"type": "null"
}
],
"title": "Metadata",
"default": null,
"description": "Required metadata keys: class, material_type, title, author, edition, isbn. Optional: publisher, chapter, chapter_title."
},
"chunk_size": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Chunk Size",
"default": null,
"description": "Chunk size in characters (defaults to 1500)."
},
"source_url": {
"type": "string",
"title": "Source Url",
"description": "HTTP(S) URL or upload:// URI returned by qdrant-finish-file-upload for a textbook PDF."
},
"chapter_map": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
],
"title": "Chapter Map",
"default": null,
"description": "Optional chapter overrides with start_page/end_page/chapter/chapter_title."
},
"chunk_overlap": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"title": "Chunk Overlap",
"default": null,
"description": "Chunk overlap in characters (defaults to 200)."
},
"collection_name": {
"type": "string",
"title": "Collection Name",
"description": "The collection to store the textbook in."
},
"return_chunk_ids": {
"type": "boolean",
"title": "Return Chunk Ids",
"default": false,
"description": "Include chunk point ids in job result."
},
"source_url_headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
],
"title": "Source Url Headers",
"default": null,
"description": "Optional request headers used while downloading."
}
},
"description": "Validated input contract for the qdrant-ingest-textbook native Qdrant MCP tool."
}

Output Schema

{
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"data",
"meta"
],
"properties": {
"data": {
"type": "object",
"description": "Normalized result data for qdrant-ingest-textbook: submit a bounded asynchronous textbook PDF ingest from HTTP(S) or a finalized upload URI.",
"additionalProperties": true
},
"meta": {
"type": "object",
"properties": {
"bytes_in": {
"type": "integer",
"description": "Approximate serialized input byte count."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Safe recovery warnings."
},
"bytes_out": {
"type": "integer",
"description": "Approximate serialized output byte count."
},
"elapsed_ms": {
"type": "integer",
"description": "Tool execution time in milliseconds."
},
"request_id": {
"type": "string",
"description": "Stable request trace identifier."
},
"server_version": {
"type": "string",
"description": "Deployed source revision when available."
},
"serialization_ms": {
"type": "integer",
"description": "Response serialization time in milliseconds."
},
"server_uptime_ms": {
"type": "integer",
"description": "Server process uptime in milliseconds."
},
"server_instance_id": {
"type": "string",
"description": "Ephemeral server-process identifier."
}
},
"description": "Secret-safe request, trace, size, timing, and warning metadata.",
"additionalProperties": true
}
},
"description": "Qdrant MCP normalized response envelope.",
"additionalProperties": false
}

Code Examples

curl -X POST 'https://portal.madpanda3d.com/api/mcp' \
-H 'Authorization: Bearer mad_live_***' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": "qdrant-qdrant-ingest-textbook-example",
"method": "tools/call",
"params": {
"name": "qdrant.qdrant-ingest-textbook",
"arguments": {
"collection_name": "school",
"source_url": "https://files.example.com/com120-textbook.pdf",
"metadata": {
"class": "COM120",
"material_type": "textbook",
"title": "Interpersonal Communication: Everyday Encounters",
"author": "Julia T. Wood",
"edition": "9th",
"isbn": "9781337555889",
"publisher": "Cengage"
}
}
}
}'

Example Responses

{
"ok": true,
"status": "accepted",
"job_id": "ingest_tb_01JQDRANTP8X3B4H",
"collection": "school"
}