Delete purchase order
delete_purchase_orderDelete a purchase order by ID. Requires purchase_orders:write scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Purchase order ID |
delete_purchase_orderDelete a purchase order by ID. Requires purchase_orders:write scope.
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Purchase order ID |
Changes observed during successful MCP inspections.
Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"Input schema / additionalPropertiesRemoved value: -falseInput schema / properties / id / patternAdded value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"Input schema / $schemaPrevious value: -"https://json-schema.org/draft/2020-12/schema"New value: +"http://json-schema.org/draft-07/schema#"Input schema / additionalPropertiesAdded value: +falseInput schema / properties / id / patternRemoved value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"Input schema / $schemaPrevious value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"Input schema / additionalPropertiesRemoved value: -falseInput schema / properties / id / patternAdded value: +"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true, idempotentHint=true, readOnlyHint=false, and openWorldHint=false, so the safety profile is fully covered by structured data. The description adds the genuine extra value of the required auth scope (purchase_orders:write), but says nothing about cascade behavior (e.g., whether associated lines/links are removed), which is the main undisclosed behavioral trait for a delete.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences, front-loaded with the core action and followed by the prerequisite. Nothing is padded or redundant.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple single-parameter delete with no output schema and annotations that already cover destructiveness and idempotency, the description supplies what an agent needs to call it: the action, the key, and the required permission. The only minor gap is the absence of cascade/return-behavior detail.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% with a single 'id' parameter that is fully documented in the schema itself, so the baseline is 3. The phrase 'by ID' mirrors the schema without adding format or constraint detail beyond the UUID pattern the schema already specifies.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (Delete) and resource (purchase order) plus the keying mechanism (by ID), which is unambiguous against siblings like get_purchase_order, update_purchase_order, and list_purchase_orders. It does not explicitly distinguish itself from delete_purchase_order_line or delete_purchase_order_link, so it falls short of the 5 tier for sibling differentiation.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit when-to-use or when-not-to-use statement, and no named alternatives. However, the naming and the added scope prerequisite ('Requires purchase_orders:write scope') make the usage context reasonably inferable for a straightforward delete-by-ID operation.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.