Skip to main content
Glama

Kruuse Chile

Cancelar un carro

cancel_cart
DestructiveIdempotent

Cancela el carro: devuelve cómo estaba y después ya no existe.

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": {
      "id": "<id>"
    },
    "name": "cancel_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesId del carro (cart_…) que entregó create_cart.
metaNoMetadatos de UCP: {"ucp-agent": {"profile": URL del perfil del agente}}. Opcional en esta tienda.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, but the description adds genuine context beyond them: it states that the call returns the cart's prior state and that the cart no longer exists afterwards. It does not explain what happens to line items or whether the deletion is recoverable, which keeps it below a 5.

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?

A single short sentence with the action front-loaded and zero filler. It is efficient, though the second clause could be phrased more precisely than "devuelve cómo estaba".

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 usefully covers the return value and the deletion effect, which is the key information for a destructive tool. However, for a destructive, open-world operation it omits whether the cancellation is reversible, what the returned snapshot contains, and any authorization expectations.

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 description coverage is 100% and both parameters (id and the optional UCP meta object) are documented in the schema, including the cart_… id format and its origin from create_cart. The description adds no parameter-level meaning, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ("Cancela el carro") and adds the post-condition that the cart ceases to exist, which distinguishes it from create_cart/get_cart/update_cart. It stops short of explicitly naming a sibling alternative, so it is clear but not fully differentiated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no explicit when-to-use guidance, no prerequisites (e.g. must the cart be empty or owned by the caller?), and no mention of alternatives such as update_cart for modifying rather than removing. Usage is only inferable from the verb.

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.