Skip to main content
Glama

Flowering UCP

update_cart

Erstat kurvens indhold.

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

Input Schema

NameRequiredDescriptionDefault
idYes
cartYes
metaNoUCP request metadata, fx {"ucp-agent":{"profile":"https://..."}}.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and largely drops it. "Replace the contents" weakly implies a destructive full overwrite of existing line items, but the description never confirms that, nor does it state permission requirements, whether partial items survive, or what is returned.

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

Conciseness2/5

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

It is a single short sentence with no wasted words, but this is under-specification rather than conciseness. For a mutation tool with a nested payload object, one three-word sentence leaves the essential information unstated.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The tool mutates a cart via a nested object parameter, has no annotations and no output schema, yet the definition is a single fragment. An agent would have to guess at payload shape, overwrite semantics, and error conditions before calling it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%: id and the nested cart object are undocumented, and only meta carries a description. The word "indhold" faintly maps to the cart parameter, but the description adds no structure, required fields, or format detail for the most complex nested parameter.

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

Purpose3/5

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

"Erstat kurvens indhold" does name a verb (replace) and a resource (cart contents), so the operation is identifiable. But it is one terse sentence in Danish while the tool name and all siblings are English, and it gives no hint of how it differs from update_checkout or other cart mutations.

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 when-to-use guidance, no preconditions (e.g. cart must exist), and no reference to any alternative such as create_cart or cancel_cart. The agent must infer the entire decision context from the tool name.

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