Skip to main content
Glama

PostCartsIdLineItemsLine_id

Modify cart line item details such as quantity or custom fields to update shopping cart contents during checkout.

Instructions

Update a line item's details in the cart.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idNo
line_idNo
fieldsNo
Behavior2/5

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

With no annotations provided, the description carries full burden but only states it's an update operation without disclosing behavioral traits. It doesn't mention whether this requires authentication, what permissions are needed, if it's idempotent, what happens on invalid inputs, or any rate limits—critical gaps for a mutation tool.

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 description is a single, clear sentence with no wasted words, making it easy to parse. It's front-loaded with the core action and target, achieving optimal conciseness for its limited content.

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?

For a mutation tool with 3 parameters, 0% schema coverage, no annotations, and no output schema, the description is incomplete. It lacks parameter details, behavioral context, usage guidelines, and output expectations, failing to provide sufficient context for safe and effective use.

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 0%, so the description must compensate but adds no parameter information. It doesn't explain what 'id', 'line_id', or 'fields' represent (e.g., cart ID, line item ID, JSON string of updates), leaving all three parameters semantically undefined beyond their names.

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 clearly states the action ('Update') and target ('a line item's details in the cart'), making the purpose immediately understandable. However, it doesn't explicitly differentiate this tool from sibling tools like 'PostCartsIdLineItems' (which likely creates line items) or 'PostCartsIdCustomer' (which updates customer info), missing full sibling distinction.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., needing an existing cart and line item), exclusions, or comparisons to siblings like 'PostCartsIdLineItems' for creation or 'PostCartsIdComplete' for finalizing the cart.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/SGFGOV/medusa-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server