Skip to main content
Glama

Bulk Update

bulk_update
DestructiveIdempotent

Updates many library items at once: sets the status, the read state, pins or unpins, adds or removes tags, or moves the matched items to the Trash. Filters: status group (saved/extracting/failed), saved date range (since/until in UTC; date-only and zoneless values are UTC, pass offset like -08:00 for local days), domain, pinned, type (note/url), read state and tags. At least one filter is required. Defaults to dry_run=true, which reports what would change without touching anything; pass dry_run=false to apply. At most 200 items are updated per call; the result reports total_matched, affected, truncated and the item_ids, so a bulk trash can be undone with restore_item. Use list_items to see what a filter matches before applying.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "bulk_update"
  }
}

Input Schema

NameRequiredDescriptionDefault
pinNoPin (true) or unpin (false) the matched items.
typeNoOnly notes or only saved urls.
sinceNoISO datetime (inclusive): only items saved at/after it. saved_at is UTC; date-only (YYYY-MM-DD) and zoneless values are read as UTC (date-only starts at 00:00:00 UTC). Callers should pass an offset (e.g. -08:00) for local days.
trashNoMove the matched items to the Trash instead of changing them. They stay restorable for 30 days; the result carries their ids.
untilNoISO datetime (inclusive): only items saved at/before it. saved_at is UTC; date-only (YYYY-MM-DD) and zoneless values are read as UTC (date-only covers through 23:59:59 UTC). Callers should pass an offset (e.g. -08:00) for local days.
actionNoChange the read state of the matched items: 'mark_read', 'mark_unread' or 'archive'. An archived item stays archived.
domainNoOnly items from this host (e.g. example.com).
pinnedNoOnly pinned (true) or only unpinned (false).
statusNoOnly items in this status group: 'saved' (extracted), 'extracting' (queued) or 'failed'.
dry_runNoPreview only (true) or apply (false).
add_tagsNoTags to add (at most 20).
tags_allNoOnly items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
tags_anyNoOnly items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
untaggedNoOnly items without any tag.
tags_noneNoExclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names).
read_stateNoOnly items in this read state.
set_statusNoSet the status of the matched items: 'saved' (extracted), 'extracting' (queued again - it does not re-run extraction) or 'failed'.
remove_tagsNoTags to remove (at most 20).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / tags_all / description
      Previous value: -"Only items carrying ALL of these tags. Child tags count: 'work' also matches 'work/research'."New value: +"Only items carrying ALL of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
    • changedInput schema / properties / tags_any / description
      Previous value: -"Only items carrying ANY of these tags. Child tags count: 'work' also matches 'work/research'."New value: +"Only items carrying ANY of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
    • changedInput schema / properties / tags_none / description
      Previous value: -"Exclude items carrying any of these tags. Child tags count."New value: +"Exclude items carrying any of these tags. Child tags linked via parent count ('/' is disallowed in tag names)."
  2. First observed

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so the destructive profile is known. The description still adds real value beyond them: dry_run defaults to true, at most 200 items change per call with truncated reported, and trashed items remain recoverable via restore_item. Since the annotations carry most of the safety signal, this is solid but not exceptional.

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?

The definition is front-loaded with the mutation set, then filters, then the dry_run/cap caveats, which is the right order for a bulk operation. It is dense but partly re-states date/offset rules already in the since/until schema descriptions, so a little redundancy remains.

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

Completeness5/5

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

There is no output schema, so the description must explain returns — and it does, naming total_matched, affected, truncated and item_ids. For an 18-parameter mutation tool it covers the filter-vs-mutation split, safety default, limits, and undo path, leaving no material gap.

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?

Schema coverage is 100%, so the baseline is 3. The description goes beyond it by stating that at least one filter must be supplied (required list is empty in the schema), that dry_run defaults to true, and that filtering caps at 200 items — semantics an agent cannot read off the schema alone.

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 names a specific verb and resource ("Updates many library items at once") and then enumerates the mutations it can perform: set status, read state, pin/unpin, add/remove tags, or trash. This distinguishes it clearly from single-item siblings like update_item and from read-only siblings like list_items.

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?

It gives an explicit precondition ("At least one filter is required") and a recommended workflow ("Use list_items to see what a filter matches before applying"). It also names restore_item as the undo path for bulk trash, so the agent knows both when to call this tool and how to reverse it.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.