veryfront__create_retrieval_document
Requires project.knowledge.write.
Access
No external-service connection is required. Use a Veryfront credential with access to the requested resources.
Call type: Can change resources.
Arguments
| Field | Type | Required | Description and constraints |
|---|---|---|---|
title | string | Yes | Document title, at least one character. Minimum length: 1. |
source | string | No | Upstream source reference, such as a file path or URL. Defaults to "". |
type | string | No | Document type label. Defaults to "". |
metadata | object | No | Structured metadata stored with the record: an object of string keys to JSON values. |
id | string | No | Caller-chosen record ID. Omit to let the API choose one. An ID that already exists is a conflict. Create the record before writing its chunks; use update to change an existing record. Format: uuid. |
project_reference | string | No | Project ID or slug. Minimum length: 1. |
Example request
Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.
request.json
1{2 "jsonrpc": "2.0",3 "id": 1,4 "method": "tools/call",5 "params": {6 "name": "veryfront__create_retrieval_document",7 "arguments": {8 "title": "example"9 }10 }11}Result
The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.
| Field | Type | Required | Description and constraints |
|---|---|---|---|
id | string | Yes | Retrieval document ID. Format: uuid. |
revision | string | Yes | Opaque revision of this record. Send it as expected_revision to update or delete exactly this version. |
title | string | Yes | Document title. |
source | string | Yes | Upstream source reference, such as a file path or URL; empty when not set. |
type | string | Yes | Document type label; empty when not set. |
metadata | object | Yes | Structured metadata stored with the record: an object of string keys to JSON values. |
created_at | string | Yes | When the record was created (RFC 3339, UTC). Format: date-time. |
updated_at | string | Yes | When the record last changed (RFC 3339, UTC). Format: date-time. |
Full schemas
input-schema.json
1{2 "type": "object",3 "properties": {4 "title": {5 "type": "string",6 "minLength": 1,7 "description": "Document title, at least one character."8 },9 "source": {10 "type": "string",11 "description": "Upstream source reference, such as a file path or URL. Defaults to \"\"."12 },13 "type": {14 "type": "string",15 "description": "Document type label. Defaults to \"\"."16 },17 "metadata": {18 "type": "object",19 "additionalProperties": {20 "description": "Additional structured values supplied to the tool."21 },22 "description": "Structured metadata stored with the record: an object of string keys to JSON values."23 },24 "id": {25 "type": "string",26 "format": "uuid",27 "description": "Caller-chosen record ID. Omit to let the API choose one. An ID that already exists is a conflict. Create the record before writing its chunks; use update to change an existing record."28 },29 "project_reference": {30 "type": "string",31 "minLength": 1,32 "description": "Project ID or slug."33 }34 },35 "required": [36 "title"37 ],38 "additionalProperties": false,39 "description": "Arguments for the create_retrieval_document tool.",40 "$schema": "http://json-schema.org/draft-07/schema#"41}output-schema.json
1{2 "type": "object",3 "properties": {4 "id": {5 "type": "string",6 "format": "uuid",7 "description": "Retrieval document ID."8 },9 "revision": {10 "type": "string",11 "pattern": "^[a-f0-9]{64}$",12 "description": "Opaque revision of this record. Send it as expected_revision to update or delete exactly this version."13 },14 "title": {15 "type": "string",16 "description": "Document title."17 },18 "source": {19 "type": "string",20 "description": "Upstream source reference, such as a file path or URL; empty when not set."21 },22 "type": {23 "type": "string",24 "description": "Document type label; empty when not set."25 },26 "metadata": {27 "type": "object",28 "additionalProperties": {29 "description": "Additional structured values associated with this result."30 },31 "description": "Structured metadata stored with the record: an object of string keys to JSON values."32 },33 "created_at": {34 "type": "string",35 "format": "date-time",36 "description": "When the record was created (RFC 3339, UTC)."37 },38 "updated_at": {39 "type": "string",40 "format": "date-time",41 "description": "When the record last changed (RFC 3339, UTC)."42 }43 },44 "required": [45 "id",46 "revision",47 "title",48 "source",49 "type",50 "metadata",51 "created_at",52 "updated_at"53 ],54 "additionalProperties": false,55 "description": "Structured result returned by the create_retrieval_document tool.",56 "$schema": "http://json-schema.org/draft-07/schema#"57}