Skip to main content
Glama

Move a document to a sibling container

move_document
DestructiveIdempotent

Deletes data: moves one document to another container shipment of the same group, as the person who connected this app, and records it in the organization's audit log. Use it when a certificate or invoice landed on the wrong container's shipment (a check says it does not name its container) and the user says which container it is for. The target must be a sibling of the document's shipment (same group, same organization): ask search_shipments for it. Everything the document owns moves with it, its packing list is deleted here and built again on the target from the same reading, so a correction a person made by hand to its pallets or lines may not carry over, and both shipments' checks run again. Refused, with nothing changed, when boxes are pre-allocated on the document's packing list (delete those pre-allocations first), when either shipment has arrived, or when the document is shared across the containers. Safe to repeat: moving a document to the shipment it is already on changes nothing. Answers with the document, now on the target.

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": {
      "document_id": "<document_id>",
      "target_shipment_id": "<target_shipment_id>"
    },
    "name": "move_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
document_idYesA document id such as "doc_45", as returned by list_documents.
target_shipment_idYesThe sibling shipment to move it to, such as "shp_124", 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 flag destructive and idempotent, but the description adds substantial context beyond them: the move is performed as the connecting user and written to the audit log, the packing list is deleted and rebuilt from the same reading (so manual corrections may be lost), both shipments' checks re-run, and the call is a no-op when the document is already on the target. It also spells out the exact refusal preconditions and that nothing changes on refusal.

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?

Single dense paragraph with no filler sentences; the leading 'Deletes data:' framing is front-loaded and the refusal rules close it out logically. It is on the long side and would scan faster as short clauses or bullets, but every sentence contributes actionable information.

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 destructive two-parameter mutation with no output schema, the description covers actor identity, side effects (packing list rebuild, re-run checks, audit entry), failure modes, idempotency, and even the return value ('Answers with the document, now on the target'). Nothing an agent needs in order to call 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% and both parameters are documented, so the baseline would be 3; the description adds real constraint meaning by requiring target_shipment_id to be a sibling of the document's shipment (same group, same organization) and pointing to search_shipments as the source of valid ids. It does not add format or validation detail beyond that.

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 (moves one document to another container shipment) plus scope (same group, same organization) and actor (as the person who connected this app). An agent can immediately tell this apart from sibling tools like recategorize_document or replace_document.

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?

Gives an explicit triggering scenario (a certificate or invoice landed on the wrong container's shipment, the user names the intended container) and routes the agent to search_shipments for the target id. It also lists three refusal conditions (pre-allocated boxes, arrived shipments, shared documents) with the remedy for the first, so when-not-to-use is covered too.

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