Skip to main content
Glama

Run a shipment's checks again

run_checks
DestructiveIdempotent

Changes data: queues the quality checks of one shipment to run again, as the person who connected this app (the same as the Run checks button), usually within a minute. The results replace the earlier ones and can undo what people decided about them: a check someone skipped by hand comes back if it still fails, an acknowledgement lapses if the check's answer has changed, results of checks that no longer apply are removed, and an admin's ERP sign-off is cleared if the figures now need review. A run can also move a draft shipment on once its checks pass. So confirm with the user before calling it. Use it when the user asks to re-run or refresh the checks, for example after a document was corrected; a second call right after the first changes nothing more. Answers at once that the checks are queued; call list_alerts with the shipment_id a minute later to read the results. Not recorded in the organization's audit log itself, as in the app.

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>"
    },
    "name": "run_checks"
  }
}

Input Schema

NameRequiredDescriptionDefault
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.6/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description goes well beyond them by enumerating exactly what is overwritten or lost: manual skips return, acknowledgements lapse, obsolete results are removed, and an admin's ERP sign-off is cleared. It also discloses that the run executes as the connected user, that it returns immediately while work finishes within a minute, that it can advance a draft shipment, and that it is not written to the audit log.

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 mutation warning 'Changes data:' and organized from effect to consequences to follow-up. It is dense but every clause carries operational meaning, though the single long sentence enumerating side effects is heavier than it needs to be.

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 one-parameter mutation with no output schema, the definition covers everything an agent needs: what it does, confirmation requirement, idempotency behavior, latency, result-retrieval path, and audit visibility.

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 coverage is 100%, and the single shipment_id parameter is documented in the schema with an example format. The description adds no extra syntax or constraints beyond referencing the id when telling the agent to call list_alerts, so the baseline of 3 applies.

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?

Opens with a specific verb plus resource: 'queues the quality checks of one shipment to run again'. It also anchors the effect to a known UI action ('the same as the Run checks button'), which distinguishes it from siblings like acknowledge_check or list_alerts.

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 trigger ('when the user asks to re-run or refresh the checks... after a document was corrected') and an explicit exclusion ('a second call right after the first changes nothing more'). It also routes the agent onward: call list_alerts with the shipment_id a minute later to read results.

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