Skip to main content
Glama

Remove a warehouse closure or opening

remove_warehouse_closure
DestructiveIdempotent

Changes data: removes one closure (or opening) from the warehouse calendar, as the person who connected this app, and records it in the organization's audit log. The days follow the weekly schedule and the public holidays again, which moves the collect_by dates for everyone in the organization. It cannot be undone, only added again with add_warehouse_closure. Use it only when the user asks to remove or cancel a closure, and confirm which one (days, note) before calling it. Get the closure_id from the closures of get_warehouse. Answers with the closure as it was. A repeat answers "not found", because the closure is already gone.

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": {
      "closure_id": "<closure_id>"
    },
    "name": "remove_warehouse_closure"
  }
}

Input Schema

NameRequiredDescriptionDefault
closure_idYesA closure id such as "wcl_9", as returned by get_warehouse or add_warehouse_closure.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the supplied destructiveHint/readOnlyHint annotations, it discloses who the action runs as, that it is written to the organization's audit log, that it recalculates `collect_by` dates for everyone in the org, and that it is irreversible except by re-adding. It also documents the repeat-call response ("not found"), which clarifies the practical effect of the idempotent hint.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first clause front-loads the mutation semantics, and each subsequent sentence carries a distinct, non-redundant payload: side effects, irreversibility, invocation guardrails, ID sourcing, and return behavior. No filler or restatement of the title.

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?

For a single-parameter destructive tool with no output schema, the description covers everything needed: prerequisites, confirmation requirement, downstream effects, irreversibility, failure mode on repeat, and the return value. Nothing an agent needs to invoke it safely 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 already met, but the description adds real value by telling the agent where `closure_id` values come from (`closures` of get_warehouse, or add_warehouse_closure). It stops short of discussing ID format nuance beyond what the schema example already shows.

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 ("removes one closure (or opening) from the warehouse calendar") plus the scope qualifier "as the person who connected this app." It clearly differentiates from the sibling add_warehouse_closure by naming it as the inverse operation.

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 triggering condition explicitly ("Use it only when the user asks to remove or cancel a closure"), mandates a confirmation step ("confirm which one (days, note) before calling it"), and points to the alternative for the opposite action. It also tells the agent exactly where to source the required ID (the `closures` of get_warehouse).

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