Skip to main content
Glama

Plan or create Nova Poshta waybills in bulk

np_create_waybills_bulk

Builds a waybill plan for many orders (dry run, default) or creates the waybills of a previous plan. The plan lists for every order whether it is ready, needs a city/branch choice (with candidates), is skipped (already has a waybill, cancelled, other carrier, courier delivery) or has an error, plus the cash-on-delivery total. Creation costs one action per created waybill and writes the numbers back to the stores.

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

Input Schema

NameRequiredDescriptionDefault
limitNo
storeNoLimit to one store connection id or platform (prom, rozetka …)
choicesNoCorrections for needs_choice items: {order_ref: {warehouse_ref, city_ref}}
dry_runNotrue (default): only build a plan; false: create the ready items of plan_id
plan_idNoplan_id returned by a dry run (required when dry_run=false)
order_refsNoOrders to include; default: open orders without a waybill
created_fromNoOrders created from YYYY-MM-DD; default 7 days ago
connection_idNoNova Poshta connection id from list_connections; default: the main one

Output Schema

NameRequiredDescriptionDefault
demoNo
noteNo
failedNo
createdNo
dry_runYes
plan_idYesIdentifier of this plan; creation with dry_run=false refers to it
resultsNoCreation: one entry per order
skippedNo
summaryNoDry run: counts and cash-on-delivery total
expires_atNo
plan_itemsNoDry run: one entry per order
labels_a4_urlNo
labels_100x100_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior3/5

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

Adds real behavior beyond the annotations: plan categories (ready, needs_choice, skipped reasons, error), COD total, one-action cost per created waybill, and write-back of numbers to stores. However it does not address the idempotentHint=false implication (whether a repeated create duplicates waybills) or partial-failure behavior, which matters for a non-idempotent creation call.

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?

Three sentences, front-loaded with the mode distinction, with no filler; the enumeration of plan outcomes is dense but all of it aids decision-making. Slightly long single sentence in the middle, but nothing is wasted.

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?

Output schema exists so return details needn't be explained, yet for a non-idempotent, cost-bearing bulk write the description omits failure/retry semantics and whether re-running creation is safe. Adequate for the happy path but incomplete for safe invocation.

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?

Schema coverage is 88%, so the baseline is 3, and the description goes further by tying choices to needs_choice plan items with candidate branch/city options, clarifying how the plan feeds back into the overrides parameter.

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 (waybill plan / bulk waybill creation), plus the dual dry-run vs create mode and multi-order scope, which distinguishes it from the singular np_create_waybill sibling.

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?

Explains the default dry-run workflow and that plan_id is required to create, so an agent knows the two-step flow. It does not explicitly name alternatives such as np_create_waybill for single orders, but the bulk/many-orders framing implies the split.

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