Skip to main content
Glama

Put a label on a shipment

add_label
Idempotent

Changes data: puts one of the organization's existing labels (for example "Urgent") on one shipment, as the person who connected this app, and records it in the organization's audit log. Everyone in the organization sees the label on the shipment. Use it only when the user asks to label or tag a shipment. Pass the user's own wording as label ("urgent" finds "🔥 Urgent") or the label's id; list_labels is only needed to show the user what exists. Labels cannot be created here, so if nothing matches the answer lists the labels that exist: say so. If the answer says several labels match, ask the user which one and call again with its id. Safe to repeat: a shipment that already has the label is left as it is. Answers with the shipment's labels as they now stand.

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": {
      "shipment_id": "<shipment_id>",
      "label": "<label>"
    },
    "name": "add_label"
  }
}

Input Schema

NameRequiredDescriptionDefault
labelYesThe label as the user says it, such as "urgent" (case, emoji and punctuation do not matter), or its id, such as "lbl_3".
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.

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?

Goes well beyond the annotations: discloses that the action is attributed to the connected user, written to the organization's audit log, and visible org-wide, and explains the idempotent no-op case in concrete terms. It also states what the response contains (the shipment's current labels), which the absence of an output schema makes valuable.

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 mutating nature of the call, then ordered by decision flow (when to use, what to pass, what to do on no-match, what to do on multi-match, idempotency, return value). Dense but nearly every clause carries information; slightly long for a two-parameter tool.

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?

With no output schema, the description still covers the return value, the audit/visibility side effects, the idempotency contract, and the two error-ish branches an agent will hit. Nothing material is missing for correct 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 100%, so the baseline is 3; the description earns extra credit by explaining the fuzzy-match intent with a concrete example ("urgent" finds "🔥 Urgent") and by clarifying that the user's own wording is preferable to an id. That adds operational meaning beyond the schema's literal field description.

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 up front ("puts one of the organization's existing labels ... on one shipment") and immediately distinguishes itself from list_labels and label-creation by noting labels cannot be created here. An agent can tell exactly what this does and what it doesn't.

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 gates usage ("Use it only when the user asks to label or tag a shipment"), explains when list_labels is actually needed versus not, and prescribes the follow-up path when no label matches or several match (ask the user, call again with the id). This is unusually complete routing guidance.

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