Skip to main content
Glama

Workflows

notion_workflow
Destructive

Automate Notion tasks with multi-step workflows triggered by schedules or webhook events. Chain actions like query, create page, comment, and more, with retries and durable execution.

Instructions

Multi-step workflows (version 2 of automations): a trigger (manual, schedule, or Notion webhook events) and typed steps run in order. Step actions: query, set, append, comment, create_page, move_page, duplicate_page, trash, replace_text, export_markdown, render_template, http, slack, foreach, switch, approval, delay, run_workflow. Each step has an id; may have if (a ${…} reference), retry {attempts, backoff_seconds}, timeout_seconds, and continue_on_error. Steps read earlier outputs with ${steps..} (query returns rows with id, url, title, and each property), the trigger with ${trigger.}, inputs with ${inputs.}, loop items with ${item} (or the foreach as name), and secrets with ${secret:NAME} (environment variable NOTION_PLUS_SECRET_NAME; never stored or shown). approval pauses until a checkbox is checked or a comment with a keyword is posted; delay pauses for minutes; both resume on the next scheduler pass. Runs are durable: a crash, failure, or pause resumes after the last finished step, and creating steps check what an interrupted attempt already made, so nothing is created twice. http and slack steps only reach hosts in NOTION_PLUS_HTTP_ALLOW (Slack's hook host is always allowed for slack). on_failure notifies Slack, an HTTP endpoint, or a page comment. Actions: list, get, save, delete, validate, run (now, with inputs), runs (history), run_status, resume (continue a waiting or failed run), cancel, convert (a v1 rule into a workflow, saved disabled), events / replay / discard (the webhook queue and its dead letters). Webhook events: page.created, page.content_updated, page.properties_updated, page.moved, page.deleted, page.undeleted, comment.created, data_source.content_updated, data_source.schema_updated.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNoWorkflow id (get, delete, run, runs, convert: the rule id).
limitNo
actionYes
inputsNorun: values for ${inputs.*}.
run_idNo
statusNoruns / events: filter.
event_idNo
workflowNosave / validate: the whole workflow spec.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4/5.0
Behavior5/5

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

Despite annotations already declaring destructiveHint=true and openWorldHint=true, the description layers substantial extra behavior: secrets are referenced as ${secret:NAME} and 'never stored or shown', http/slack are restricted to NOTION_PLUS_HTTP_ALLOW hosts, runs are durable and resume after the last finished step with double-create protection, and approval/delay pause until the next scheduler pass. This is exactly the kind of operational context annotations cannot convey.

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

Conciseness3/5

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

Content is dense and mostly relevant, and the core purpose is front-loaded, but the body degenerates into a long semicolon-heavy run-on mixing step actions, reference syntax, durability, and action enums. It would benefit from paragraph or bullet structure; nearly every clause is useful but hard to parse as one block.

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 complex tool with 8 params, no output schema, and nested objects, the description covers triggers, step actions, reference variables, durability/idempotency, host allow-lists, approval/delay pauses, and the full action set. What is missing is per-action return behavior, but that is a modest gap given how much ground is already covered.

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 coverage is only 50% across 8 params. The description explains the `inputs` param ('run: values for ${inputs.*}') and extensively documents the `workflow` object's internal structure, but leaves run_id, event_id, limit, and status semantics to the schema. It adds meaningful value for the nested workflow spec but does not fully close the coverage gap.

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?

The opening sentence gives a precise verb+resource: 'Multi-step workflows (version 2 of automations): a trigger (manual, schedule, or Notion webhook events) and typed steps run in order.' It names the sibling relationship to automations v1 via the 'convert (a v1 rule into a workflow)' action, so an agent can distinguish it from notion_automation 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 Guidelines3/5

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

Usage is implied through the enumerated actions (list, get, save, run, runs, resume, cancel, convert) and the mention that convert migrates a v1 rule, but there is no explicit 'use this instead of X when Y' routing against the obvious alternative notion_automation. The agent can infer the lifecycle but gets no exclusions or conditions.

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