Skip to main content
Glama

Nova Poshta: Prepare a waybill card for an order

np_quote
Read-only

Nova Poshta: prepare the waybill (ТТН) card for ONE order WITHOUT creating it — recipient (name, phone), city and branch/parcel locker (from the shop order or the client's card), the advised box, weight, who pays, cash on delivery, NP's price and delivery date, and what is missing. Answers «скільки буде доставка для SO-17», «підготуй ТТН для SO-17». Returns draft_id for np_waybill_create. Edits the person names (another phone, branch, box, payer, COD) go in the arguments. Writes nothing to Nova Poshta.

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_quote"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxNoA box key from np_quote/np_box_suggest options (np:… or own:…), when the person picks one.
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.
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.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered; the description reinforces it with "Writes nothing to Nova Poshta" and adds information annotations cannot carry: that the card is a draft, that it includes a computed NP price and delivery date, that it reports "what is missing", and that it hands back a draft_id for the create step. It does not state whether the NP quote is live or cached, nor failure behavior when data is absent.

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?

The negation and the enumeration are front-loaded, and the example utterances efficiently convey intent matching. The run-on sentence packing the field list with parentheses is dense and the clause about person-name edits is somewhat redundant with the schema, but nothing is filler.

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?

With no output schema, the description must describe the return, and it does: a draft card with price, delivery date, missing-data notes, and draft_id for the next step. For a zero-required-parameter, nine-argument quoting tool this is nearly sufficient; the origin of weight/box defaults and quote currency/locale assumptions remain unstated.

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 coverage is 78% and the schema already documents box, payer, phone, number, order_id, cod_amount and warehouse_ref with defaults and cross-references. The description adds only a general rule that override-style edits "(another phone, branch, box, payer, COD) go in the arguments", plus the origin of city/branch values, while leaving first_name, last_name and the number-vs-order_id choice unexplained beyond the schema.

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?

The description opens with a specific verb and resource ("prepare the waybill (ТТН) card for ONE order") and immediately negates the obvious sibling action ("WITHOUT creating it"). It enumerates exactly what the draft card contains (recipient, city/branch, box, weight, payer, COD, NP price, delivery date) and names the one-order scope, so an agent can separate it from np_waybill_create at a glance.

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?

It gives concrete trigger phrasings ("скільки буде доставка для SO-17", "підготуй ТТН для SO-17") and states the handoff path: this tool returns draft_id for np_waybill_create. The when-not-to-use side is only implied by "WITHOUT creating it" — it never explicitly says to call np_waybill_create when the user actually wants the waybill issued, nor when to prefer np_branches or np_box_suggest for lookups.

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