Skip to main content
Glama

AssetLab

Update purchase order

update_purchase_order
DestructiveIdempotent

Update an existing purchase order by ID. Requires purchase_orders:write scope.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPurchase order ID
notesNoNotes
amountNoPO amount
statusNoPO status
po_numberNoPO number
vendor_idNoVendor ID
project_idNoProject ID
category_idNoCost category ID
descriptionNoDescription
issued_dateNoIssued date (ISO 8601)
expected_dateNoExpected delivery date (ISO 8601)
work_order_idNoWork order ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=false, so the risk profile is largely covered. The description does add the required 'purchase_orders:write' scope, which is genuinely useful authorization context. It does not explain whether updates are partial merges, which fields trigger destructive effects, or what happens to omitted fields.

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?

Two short sentences, front-loaded with the core action and followed by the permission requirement. Nothing is wasted and there is no filler.

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?

For a 12-parameter mutation tool with no output schema, the description covers the action and the auth scope, and annotations cover the safety/idempotency profile. It still omits partial-vs-full update semantics and which fields are optional in practice, which an agent needs to call this correctly.

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% across 12 parameters, so the schema already documents id, notes, amount, status, dates, and the various foreign-key IDs. The description adds no parameter-level detail beyond confirming the ID is the identifier, so the baseline of 3 applies.

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 ('Update an existing purchase order by ID'), which is unambiguous and operationally precise. It doesn't explicitly differentiate from the many sibling update_* tools or explain how it relates to update_purchase_order_line, but the resource is clearly named.

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

Usage Guidelines2/5

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

The description gives no when-to-use guidance, no alternatives (e.g., update_purchase_order_line for line items), and no prerequisites beyond the scope requirement. The agent must infer that this tool edits an existing PO rather than creating one.

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