Skip to main content
Glama

create_workflow_trigger

Create a single standalone Paperless-ngx workflow trigger. It has no effect alone; build automations with create_workflow or edit triggers inside workflows.

Instructions

Create ONE standalone workflow trigger. On its own a trigger does nothing, and Paperless deletes triggers that belong to no workflow whenever any workflow is updated. To build an automation, use create_workflow with the triggers inline; to change a trigger inside a workflow, use update_workflow (or update_workflow_trigger with the trigger id from get_workflow).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeYesTrigger type: 1=consumption started, 2=document added, 3=document updated, 4=scheduled
matchNo
sourcesNoConsumption-started (type 1) triggers only: consumption sources 1=consume folder, 2=API upload, 3=mail fetch, 4=web UI (default [1,2,3])
filter_pathNoConsumption-started (type 1) triggers only: consume-folder path pattern, * wildcards allowed
is_insensitiveNo
filter_filenameNoFilename pattern (the whole name must match, case-insensitive), * wildcards allowed. Works for every trigger type: at consumption start it checks the incoming file's name, for types 2–4 the document's original file name.
filter_has_tagsNoDocument has ANY of these tags. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_mailruleNoConsumption-started (type 1) triggers only: only documents fetched by this mail rule ID
matching_algorithmNoContent match for `match`: 0=none, 1=any word, 2=all words, 3=exact, 4=regular expression, 5=fuzzy word. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_has_all_tagsNoDocument has ALL of these tags. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_has_not_tagsNoDocument has NONE of these tags. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
schedule_date_fieldNoType 4: date the schedule is based on
schedule_offset_daysNoType 4: days to offset from schedule_date_field
schedule_is_recurringNo
filter_custom_field_queryNoCustom-field filter as a JSON expression passed as a string. A condition is [field, operator, value], where field is the custom field's name or ID. Combine conditions with ["AND", [cond, …]] or ["OR", [cond, …]], and negate with ["NOT", cond]. Valid operators depend on the field's data type (e.g. exact, in, isnull, exists, icontains, gt, gte, lt, lte, range); pick an invalid one and Paperless names the valid ones. Examples: '["Amount", "gte", 100]', '["AND", [["Due", "lt", "2026-10-01"], ["Paid", "exact", false]]]'. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
schedule_date_custom_fieldNoType 4 with schedule_date_field=custom_field: the date custom field ID
filter_has_any_storage_pathsNoStorage path is one of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_has_not_storage_pathsNoStorage path is none of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_has_any_correspondentsNoCorrespondent is one of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_has_any_document_typesNoDocument type is one of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_has_not_correspondentsNoCorrespondent is none of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
filter_has_not_document_typesNoDocument type is none of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet.
schedule_recurring_interval_daysNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv3.2.1
    • changedInput schema / properties / filter_custom_field_query / description
      Previous value: -"Custom-field filter as a JSON expression passed as a string. A condition is [field, operator, value], where field is the custom field's name or ID. Combine conditions with [\"AND\", [cond, …]] or [\"OR\", [cond, …]], and negate with [\"NOT\", cond]. Valid operators depend on the field's data type (e.g. exact, in, isnull, exists, icontains, gt, gte, lt, lte, range); pick an invalid one and Paperless names the valid ones. Examples: '[\"Amount\", \"gte\", 100]', '[\"AND\", [[\"Due\", \"lt\", \"2026-10-01\"], [\"Paid\", \"exact\", false]]]'."New value: +"Custom-field filter as a JSON expression passed as a string. A condition is [field, operator, value], where field is the custom field's name or ID. Combine conditions with [\"AND\", [cond, …]] or [\"OR\", [cond, …]], and negate with [\"NOT\", cond]. Valid operators depend on the field's data type (e.g. exact, in, isnull, exists, icontains, gt, gte, lt, lte, range); pick an invalid one and Paperless names the valid ones. Examples: '[\"Amount\", \"gte\", 100]', '[\"AND\", [[\"Due\", \"lt\", \"2026-10-01\"], [\"Paid\", \"exact\", false]]]'. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_filename / description
      Previous value: -"Filename pattern (whole name must match), * wildcards allowed"New value: +"Filename pattern (the whole name must match, case-insensitive), * wildcards allowed. Works for every trigger type: at consumption start it checks the incoming file's name, for types 2–4 the document's original file name."
    • changedInput schema / properties / filter_has_all_tags / description
      Previous value: -"Document has ALL of these tags"New value: +"Document has ALL of these tags. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_any_correspondents / description
      Previous value: -"Correspondent is one of these"New value: +"Correspondent is one of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_any_document_types / description
      Previous value: -"Document type is one of these"New value: +"Document type is one of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_any_storage_paths / description
      Previous value: -"Storage path is one of these"New value: +"Storage path is one of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_not_correspondents / description
      Previous value: -"Correspondent is none of these"New value: +"Correspondent is none of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_not_document_types / description
      Previous value: -"Document type is none of these"New value: +"Document type is none of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_not_storage_paths / description
      Previous value: -"Storage path is none of these"New value: +"Storage path is none of these. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_not_tags / description
      Previous value: -"Document has NONE of these tags"New value: +"Document has NONE of these tags. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_has_tags / description
      Previous value: -"Document has ANY of these tags"New value: +"Document has ANY of these tags. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / filter_mailrule / description
      Previous value: -"Only documents fetched by this mail rule ID"New value: +"Consumption-started (type 1) triggers only: only documents fetched by this mail rule ID"
    • changedInput schema / properties / filter_path / description
      Previous value: -"Path pattern, * wildcards allowed"New value: +"Consumption-started (type 1) triggers only: consume-folder path pattern, * wildcards allowed"
    • changedInput schema / properties / matching_algorithm / description
      Previous value: -"Content match for `match`: 0=none, 1=any word, 2=all words, 3=exact, 4=regular expression, 5=fuzzy word"New value: +"Content match for `match`: 0=none, 1=any word, 2=all words, 3=exact, 4=regular expression, 5=fuzzy word. Checked for types 2–4 (added, updated, scheduled) only — not at consumption start, when the document has no content or metadata yet."
    • changedInput schema / properties / sources / description
      Previous value: -"Consumption sources: 1=consume folder, 2=API upload, 3=mail fetch, 4=web UI (default [1,2,3])"New value: +"Consumption-started (type 1) triggers only: consumption sources 1=consume folder, 2=API upload, 3=mail fetch, 4=web UI (default [1,2,3])"
  2. First observedv3.2.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only say readOnlyHint=false and destructiveHint=false, but the description discloses a non-obvious destructive behavior: Paperless deletes triggers belonging to no workflow whenever any workflow is updated. That 'what gets destroyed' detail is exactly the context annotations cannot carry. It stops short of return-value or error behavior, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with the action, each earning its place by routing the agent to the correct sibling. The final parenthetical is dense but functional; no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 23-parameter, type-conditional tool with no output schema, the description covers the essential decision context (ephemeral standalone trigger + correct alternatives). It does not explain return values or that most filters are ignored at consumption start, though the schema covers the latter in detail.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 83%, so nearly every parameter is already documented in the schema (type enums, type-1-only filters, type-4 schedule fields). The description adds no parameter syntax or conditional guidance of its own, so the baseline of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create ONE standalone workflow trigger') and immediately distinguishes it from create_workflow and update_workflow. An agent can tell which of the four workflow-trigger-related siblings to pick without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing guidance: use create_workflow for inline triggers, update_workflow (or update_workflow_trigger with an id from get_workflow) to change triggers inside a workflow. It also names the condition under which this tool is the wrong choice, since a standalone trigger does nothing and gets garbage-collected.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools