Create a retrieval document

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

FieldTypeRequiredDescription and constraints
titlestringYesDocument title, at least one character. Minimum length: 1.
sourcestringNoUpstream source reference, such as a file path or URL. Defaults to "".
typestringNoDocument type label. Defaults to "".
metadataobjectNoStructured metadata stored with the record: an object of string keys to JSON values.
idstringNoCaller-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_referencestringNoProject 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.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__create_retrieval_document",
    "arguments": {
      "title": "example"
    }
  }
}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
idstringYesRetrieval document ID. Format: uuid.
revisionstringYesOpaque revision of this record. Send it as expected_revision to update or delete exactly this version.
titlestringYesDocument title.
sourcestringYesUpstream source reference, such as a file path or URL; empty when not set.
typestringYesDocument type label; empty when not set.
metadataobjectYesStructured metadata stored with the record: an object of string keys to JSON values.
created_atstringYesWhen the record was created (RFC 3339, UTC). Format: date-time.
updated_atstringYesWhen the record last changed (RFC 3339, UTC). Format: date-time.

Full schemas

json
{
  "type": "object",
  "properties": {
    "title": {
      "type": "string",
      "minLength": 1,
      "description": "Document title, at least one character."
    },
    "source": {
      "type": "string",
      "description": "Upstream source reference, such as a file path or URL. Defaults to \"\"."
    },
    "type": {
      "type": "string",
      "description": "Document type label. Defaults to \"\"."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "description": "Additional structured values supplied to the tool."
      },
      "description": "Structured metadata stored with the record: an object of string keys to JSON values."
    },
    "id": {
      "type": "string",
      "format": "uuid",
      "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."
    },
    "project_reference": {
      "type": "string",
      "minLength": 1,
      "description": "Project ID or slug."
    }
  },
  "required": [
    "title"
  ],
  "additionalProperties": false,
  "description": "Arguments for the create_retrieval_document tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}
json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Retrieval document ID."
    },
    "revision": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$",
      "description": "Opaque revision of this record. Send it as expected_revision to update or delete exactly this version."
    },
    "title": {
      "type": "string",
      "description": "Document title."
    },
    "source": {
      "type": "string",
      "description": "Upstream source reference, such as a file path or URL; empty when not set."
    },
    "type": {
      "type": "string",
      "description": "Document type label; empty when not set."
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "description": "Additional structured values associated with this result."
      },
      "description": "Structured metadata stored with the record: an object of string keys to JSON values."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the record was created (RFC 3339, UTC)."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the record last changed (RFC 3339, UTC)."
    }
  },
  "required": [
    "id",
    "revision",
    "title",
    "source",
    "type",
    "metadata",
    "created_at",
    "updated_at"
  ],
  "additionalProperties": false,
  "description": "Structured result returned by the create_retrieval_document tool.",
  "$schema": "http://json-schema.org/draft-07/schema#"
}