Skip to main content
Glama

Nova Poshta: Delete a waybill

np_waybill_delete
Destructive

Nova Poshta: DELETE (cancel) a waybill that NP has not received yet — by its number (ttn) or the order's only live waybill. After NP scans the parcel it cannot be deleted (say so). «скасуй ТТН SO-17». Runs propose→confirm. CONFIRMATION: this tool is PROPOSED, never performed directly. You get status='confirmation_required' with an action_id and a plan_token, and the write happens only after confirm_action.

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": "np_waybill_delete"
  }
}

Input Schema

NameRequiredDescriptionDefault
ttnNo
numberNoThe order number as said: SO-17, 17.
order_idNoThe order id from erp_order_list.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare destructiveHint=true and non-read-only; the description goes well beyond that by disclosing the propose→confirm protocol, the exact return status 'confirmation_required', the action_id and plan_token, and that no write occurs until confirm_action. That is a genuine, non-obvious behavioral contract for a destructive operation.

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 with the operation and the deletion window, then the confirmation mechanics, which is the right order for a destructive tool. The propose→confirm fact is stated twice ('Runs propose→confirm' and the CONFIRMATION block), a minor redundancy that costs little.

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?

Although there is no output schema, the description names the fields the agent will receive (status, action_id, plan_token) and the follow-up tool that completes the write. For a 3-parameter destructive tool, nothing needed to call or continue the flow is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 67% and the ttn property has no schema description at all; the description supplies its meaning ('by its number (ttn)'). More importantly it explains the zero-required-parameter resolution rule — omit identifiers and the order's single live waybill is used — which the schema alone cannot convey.

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?

States a specific verb and resource — 'DELETE (cancel) a waybill' — and narrows the target set to a waybill NP has not received yet, identified by ttn or by the order's only live waybill. The example utterance «скасуй ТТН SO-17» makes the intended operation unmistakable against siblings like np_waybill_create or np_track.

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?

Gives an explicit precondition for use and a hard exclusion: once NP has scanned the parcel the waybill cannot be deleted, and the agent is told to say so. It does not name a sibling alternative for the post-scan case, so the routing guidance is clear but not exhaustive.

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