Skip to main content
Glama
ianderso
by ianderso

update_citations

DestructiveIdempotent

Update multiple citation pages or confidence levels in one batch call; rows with changed pages are reported as drifted, not overwritten.

Instructions

Re-write many citations' pages or confidences in one call -- a sweep.

Each row is update_citation: its own write and transaction. A row whose live page no longer starts with expect_page_prefix is reported as drifted, not overwritten. Rows report applied, unchanged, drifted, missing or error.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYesRows of {citation, page?, confidence?, expect_page_prefix?}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A3.7/5.0
Behavior4/5

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

Annotations declare destructive and non-readOnly, and the description adds real context: each row is its own write and transaction, drift protection via expect_page_prefix is described, and per-row outcomes (applied, unchanged, drifted, missing, error) are listed. It stops short of stating whether partial success is rolled back.

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?

Front-loaded purpose, then transactional behavior and outcome states. The '-- a sweep' aside and line-broken formatting are slightly wasteful but the content is tight overall.

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 single-parameter bulk mutation with no output schema, the description covers scope, concurrency semantics, drift protection and per-row result states. The main gap is partial-failure/rollback behavior, which matters for a destructive tool.

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 100%, so the schema already documents items, page, confidence and expect_page_prefix in detail. The description reinforces the drift semantics but adds no parameter meaning beyond the schema; baseline 3 fits.

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?

States a specific verb and resource: re-writing pages or confidences on many citations in one call. It clearly differs from the singular sibling update_citation, but the phrase '-- a sweep' is informal filler rather than sharpening scope.

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?

The description implies bulk use ('many', one call vs per-row writes) but never states when to prefer this over calling update_citation repeatedly, nor when not to use it. Context is inferable, not explicit.

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