Skip to main content
Glama

Nova Poshta: Create a waybill

np_waybill_create
Destructive

Nova Poshta: CREATE the waybill (ТТН) for an order from its card. Pass draft_id from np_quote, or the order number (the card is prepared from the order). The confirmation shows the recipient, branch, box, weight, who pays, COD and NP's price; on «Створити» the waybill is created in the shop's NP account, its number and cost go into the order. Refused with the reason when something is missing (no key, no sender, no phone, no branch, no sizes) — say it as is. «створи ТТН для SO-17». test=true marks it «ТЕСТ OrgLines, видалити» (only when the person says it is a test). 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_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxNoA box key from np_quote/np_box_suggest options (np:… or own:…), when the person picks one.
testNo
payerNoWho pays NP: Recipient (default from settings) or Sender (the shop).
phoneNoRecipient phone, only when the person names it.
numberNoThe order number as said: SO-17, 17.
draft_idNo
order_idNoThe order id from erp_order_list.
last_nameNo
cod_amountNoCash on delivery in UAH; 0 = none. Only when the person says so.
first_nameNo
warehouse_refNoAn NP branch ref from np_branches, only when the person picks another branch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Well beyond the annotations: it discloses that the call only proposes (status='confirmation_required' with action_id and plan_token), that the real write happens at confirm_action, exactly what the confirmation previews (recipient, branch, box, weight, payer, COD, NP price), and what side effects occur on «Створити» (waybill created in the shop's NP account, number and cost written into the order). The test=true labeling side effect is also disclosed. This is consistent with destructiveHint=true — the write is destructive but gated behind confirmation.

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?

Dense but front-loaded: the action comes first, then input sourcing, then confirmation behavior. It contains a useful worked example utterance («створи ТТН для SO-17»), though a few clauses such as "say it as is" are informal and the CONFIRMATION block partially restates the earlier "Runs propose→confirm" line.

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?

For a destructive, multi-parameter write with no output schema, the description covers the propose/confirm lifecycle, the preview contents, the side effects, and the failure modes — everything an agent needs to call it and to interpret the response correctly. Nothing critical is left undocumented.

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

Parameters4/5

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

At 64% schema coverage the description meaningfully adds context: draft_id originates from np_quote, box keys come from np_quote/np_box_suggest, warehouse_ref comes from np_branches and is only used for a different branch, number is "the order number as said: SO-17, 17," and phone/cod_amount are only set when the person names them. Coverage gaps remain for draft_id, last_name, first_name, and order_id, but the natural-language mapping covers the important ambiguity.

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?

Opens with a specific verb+resource: "CREATE the waybill (ТТН) for an order from its card," and immediately distinguishes its input sources (draft_id from np_quote vs. order number). An agent can separate it from np_quote (which produces the draft) and np_waybill_delete without opening either schema.

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

Usage Guidelines5/5

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

Explicitly states the two entry paths (draft_id from np_quote, or the order number), the conditional nature of test=true ("only when the person says it is a test"), and the refusal cases (no key, no sender, no phone, no branch, no sizes) which tell the agent what preconditions matter. It also names the flow alternative that must follow: propose→confirm via confirm_action.

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