Skip to main content
Glama

Bulk-update documents matching a filter

wflow_bulk_update_documents

Bulk update documents matching a query by applying a single partial patch across one or all organizations, with a dry-run mode for safe testing.

Instructions

Find every document matching a wflow query (optionally across organizations) and apply the SAME partial patch to each. This powers requests like 'set all documents with order Z01 to cost centre Centrála'. SAFETY: runs as a DRY RUN by default (apply=false) — it returns the matched documents and the patch that would be applied, but changes nothing. Re-run with apply=true to execute. patch is a partial DocumentUpdate merged with each document's id, e.g. {accounting:{costCenter:{code:"CENTRALA"}}}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
applyNofalse = dry run (default); true = actually write.
patchYesPartial DocumentUpdate applied to every matched document.
queryYeswflow filter selecting the documents to change, e.g. `orderNo = "Z01"`.
maxItemsNoCap on documents processed per org.
ignoreLockNoUnlock locked documents to apply the patch.
organizationNoSingle organization slug. Defaults to WFLOW_ORG.
organizationsNoExplicit list of org slugs (cross-organization).
allOrganizationsNoOperate over ALL accessible organizations.
Behavior4/5

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

With no annotations provided, the description carries the full burden and does well: it discloses the critical safety default (dry run, apply=false changes nothing), explains how to execute (apply=true), and describes patch merging. It doesn't mention permissions, lock handling, or reversibility, but the most important behavioral trait—the no-op by default—is clearly highlighted.

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

Conciseness5/5

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

Three tight sentences, front-loaded with the main purpose and the most important safety warning. The example is concrete and useful, and every clause earns its place. No redundant fluff.

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 bulk-mutation tool with 8 parameters and no output schema, the description covers the essential operational concerns: what the tool does, how the patch is applied, and the dry-run safety mechanism. It doesn't explain the interaction between organization params or maxItems/ignoreLock, but the schema provides their literal definitions. Overall it's sufficient for an agent to use the tool safely and effectively.

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

Parameters4/5

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

Since the schema covers all 8 parameters with descriptions (100% coverage), the baseline is 3. The description adds genuine value by explaining the patch as a partial DocumentUpdate merged with each document's id and providing a concrete patch shape. It also clarifies apply semantics beyond the schema's simple 'false = dry run; true = actually write'.

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 description clearly states the action: 'Find every document matching a wflow query and apply the SAME partial patch to each.' This is a specific verb+resource with scope, and it distinguishes this bulk tool from singular tools like wflow_update_document or read-only search tools.

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

Usage Guidelines4/5

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

The description provides a concrete example use case ('set all documents with order Z01 to cost centre Centrála') and clearly explains the dry-run vs apply flow. It doesn't explicitly name alternatives like wflow_update_document for single-document updates, but the bulk-update intent is unmistakable from context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/wflowcom/wflow-mcp-experimental'

If you have feedback or need assistance with the MCP directory API, please join our Discord server