Skip to main content
Glama

resolve_ndr_issue

Read-onlyIdempotent

Verifies a consignment and generates draft Non-Delivery Report WhatsApp re-engagement copy plus a courier escalation ticket draft for manual merchant follow-up.

Instructions

Verify that a consignment exists on the specified courier via 'track_parcel' and generate honest, draft-only Non-Delivery Report (NDR) re-engagement copy ('status: DRAFT_GENERATED', 'actions_executed: []'). GENERATION-ONLY TOOL: Verifies consignment_id first (returns CONSIGNMENT_NOT_FOUND if unknown), then generates proposed Bengali WhatsApp copy ('whatsapp_draft') and a carrier escalation ticket draft ('courier_ticket_draft') for manual merchant execution.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "consignment_id": "<consignment_id>",
      "courier": "<courier>",
      "issue_type": "<issue_type>"
    },
    "name": "resolve_ndr_issue"
  }
}

Input Schema

NameRequiredDescriptionDefault
courierYesCourier provider
issue_typeYesReason for failed delivery
customer_nameNoCustomer full name
consignment_idYesExisting tracking code or consignment ID to verify and generate NDR drafts for
customer_phoneNoCustomer mobile number
reschedule_dateNoPreferred delivery date (if rescheduled)
corrected_addressNoCorrected delivery address (if wrong address)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.5.5
    • changedInput schema / properties / consignment_id / description
      Previous value: -"Tracking code or consignment ID"New value: +"Existing tracking code or consignment ID to verify and generate NDR drafts for"
  2. Addedv2.4.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already mark this read-only, non-destructive, and idempotent, and the description adds substantial context beyond them: it returns 'status: DRAFT_GENERATED' and 'actions_executed: []', and it validates the consignment first, returning CONSIGNMENT_NOT_FOUND when it is unknown. It also names the exact artifacts produced ('whatsapp_draft', 'courier_ticket_draft') and that a human must execute them.

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 generation-only constraint and the verification step come before the details of what is produced, so the key points are front-loaded. Some wording is redundant, such as 'honest, draft-only' and 'GENERATION-ONLY TOOL' saying much the same thing, but it is still tight for how much behavior it conveys.

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?

There is no output schema, so the description must describe the return values, and it does: the status field, the empty action list, the two draft fields, and the CONSIGNMENT_NOT_FOUND error case. Given the tool's generation-only nature and its seven parameters, nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100%, so the schema already documents all seven parameters, and that sets the baseline at 3. The description adds only one piece of parameter-level meaning, that 'consignment_id' is verified against the specified courier; it does not say how 'issue_type' or 'reschedule_date' shape the generated copy.

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 names a specific verb and resource: verify a consignment through 'track_parcel', then generate draft-only NDR re-engagement copy. It clearly distinguishes itself from 'track_parcel', which it uses internally for verification only, so an agent can tell the two apart 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 Guidelines4/5

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

It gives clear context for use ('GENERATION-ONLY TOOL') and states that drafts are for manual merchant execution, which tells the agent not to expect any action to be taken. It does not name an explicit exclusion or alternative for the cases where a caller should instead use a sibling such as 'cancel_parcel' or 'update_parcel'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.