Skip to main content
Glama

Update document items bulk

update_document_items_bulk

Update many line items on a document in one call — prefer this over repeated single-item updates.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "quinvoice": "<quinvoice>",
      "items": "<items>"
    },
    "name": "update_document_items_bulk"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesLine items to update; each entry must include the line `id` plus the fields to change.
quinvoiceYesId of the parent document (invoice, quote, bill, etc.) whose line items are being updated (required).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / items / items / properties / stocklocationid
      Added value: +{
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / items / description
      Added value: +"Line items to update; each entry must include the line `id` plus the fields to change."
    • addedInput schema / properties / quinvoice / description
      Added value: +"Id of the parent document (invoice, quote, bill, etc.) whose line items are being updated (required)."
  3. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false and destructiveHint=false, so the safety profile is covered; the description adds only the one-call batching characteristic. It does not disclose the semantics that matter most for a bulk mutation: whether listed fields are merged or replaced, whether unlisted fields are preserved, atomicity/partial-failure behavior, or any item-count limit.

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?

A single sentence with the action and scope front-loaded and the routing guidance appended; no filler or restated title text.

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

Completeness3/5

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

Adequate for a 2-parameter bulk mutation with a fully documented top-level schema and non-destructive annotations, but a batch write tool with no output schema should say more about failure handling and update merge semantics. As written, an agent knows what to send but not how partial success or field merging will behave.

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 100% and the items parameter already carries a description requiring the line `id` plus fields to change, so the schema does the heavy lifting. The description adds no meaning beyond that, though the nested per-field properties (cost, price, sort, baseupdatedat, etc.) have no descriptions in either place.

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

Purpose4/5

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

Specific verb ("Update") plus resource ("many line items on a document") and an explicit batching scope ("in one call"). It behaviorally distinguishes itself from repeated single-item updates, though it never names the sibling tool update_document_item, so differentiation relies on the agent inferring which sibling is the single-item variant.

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?

"prefer this over repeated single-item updates" gives a clear selection condition against the single-item path, which is exactly the decision an agent faces here. It stops short of stating exclusions, prerequisites (e.g., document must be editable/draft), or limits on how many items can be sent.

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.

Resources