Skip to main content
Glama

Take a label off a shipment

remove_label
Idempotent

Changes data: takes one label off one shipment, as the person who connected this app, and records it in the organization's audit log. The label itself stays in the organization's catalogue and can be put back with add_label. Use it only when the user asks to remove a label from 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 what exists. If the answer says several labels match, ask the user which one and call again with its id. Safe to repeat: a shipment without 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": "remove_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?

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, but the description adds context annotations cannot carry: the call runs as the connected user, it writes an audit-log entry, and the label persists in the catalogue so removal is reversible. It also spells out what idempotency means operationally ("a shipment without the label is left as it is") and what the response contains.

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 mutation disclaimer is front-loaded and each sentence carries distinct information (safety, trigger, parameter sourcing, ambiguity handling, idempotency, return shape). It is dense but not padded, though the "safe to repeat" sentence partly restates the idempotentHint annotation.

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 tells the agent the response is the shipment's current label set, and it covers mutation side effects, audit logging, reversibility, ambiguity resolution, and repeat-call behavior. Nothing needed to invoke this correctly is missing.

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, but the description adds meaning the schema does not: the value should be the user's own wording rather than a normalised form, with a concrete fuzzy-match example ("urgent" finds "🔥 Urgent"), and it explicitly says a list_labels lookup is unnecessary. That materially changes how an agent populates the 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?

"Changes data: takes one label off one shipment" names a specific verb (remove), resource (label), and scope (one label, one shipment), immediately separating it from add_label which it explicitly names. The agent knows exactly what mutation happens without opening the 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?

It states the affirmative trigger ("only when the user asks to remove a label from a shipment"), the inverse operation (add_label), and the precise role of list_labels ("only needed to show what exists"). It even specifies the branch when the answer reports multiple matches: ask the user, then re-call with the id.

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