Skip to main content
Glama

add_to_cart

Stage one listing in the session draft (replaces any previous draft: EverList books one listing per booking). Does NOT book. Follow with checkout when the customer is ready.

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": {
      "product_id": "<product_id>"
    },
    "name": "add_to_cart"
  }
}

Input Schema

NameRequiredDescriptionDefault
quantityNoseats/units (capped at 12)
product_idYeslisting id from search_products, e.g. even-1

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / product_id / description
      Added value: +"listing id from search_products, e.g. even-1"
    • addedInput schema / properties / quantity / description
      Added value: +"seats/units (capped at 12)"
  2. Added

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description carries the full burden and discharges the most important part: it discloses that adding replaces any existing draft and that no booking occurs. It does not cover whether the replaced draft is recoverable or how re-adding with a different quantity affects the stored one, so the mutation side effects are only partly transparent.

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?

Two sentences, no filler, and the highest-risk fact (previous draft is replaced) is delivered before the workflow hint. Every clause earns its place.

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

Completeness4/5

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

For a two-parameter staging tool with no output schema and no annotations, the description covers the essential behaviors: single-listing scope, replace-on-add, no booking, and the next step. The remaining gap is the interaction between quantity and replacement, which an agent could get wrong when re-staging a listing.

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%, including the 12-unit cap and the listing-id format, so the schema already does the explanatory work. The description adds no parameter-level meaning beyond that, which makes the baseline 3 correct here.

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?

"Stage one listing in the session draft" gives a specific verb plus resource, and the parenthetical pins down the scope: a single listing per draft, with any previous draft replaced. The "Does NOT book" clause separates it from checkout, so an agent can tell the two apart without opening either schema.

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

Usage Guidelines4/5

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

It states the terminal condition for this step and names the follow-on tool explicitly ("Follow with checkout when the customer is ready"). What is missing is guidance for the sibling mutations: nothing says to use remove_from_cart or update_cart_item rather than re-adding, which matters given the replace semantics.

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.