Skip to main content
Glama

ELART parts

addToCart

Add one exact catalogue part to an agent cart. Pass exactly one of part_id or part_number (server enforces). part_number must match exactly — for substitutes call searchPartsByNumber then pass part_id. Prefer checkFitment first. Write tool.

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": {
      "cart_token": "<cart_token>"
    },
    "name": "addToCart"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandNoOptional brand of part_number when several brands share the number, e.g. MAGNETI MARELLI. Prefer part_id from the search.
countryNoISO 3166-1 alpha-2 country code, uppercase, for example LT.
part_idNoInternal product id. Pass this or part_number, not both.
quantityNoHow many units to add.
cart_tokenYesCart token from createCart. Required on every later cart call.
part_numberNoManufacturer part number. Pass this or part_id, not both.

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when the call failed. The HTTP status stays 200.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false and idempotentHint=false; the description reinforces the write nature ('Write tool') and adds the important behavioral constraint that part_number must match exactly rather than fuzzy. It does not cover what happens on a duplicate add (quantity merge vs. error) despite idempotentHint=false, leaving one meaningful gap.

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?

Short, front-loaded, and constraint-ordered with no filler sentences; the trailing 'Write tool.' is redundant given annotations but costs little.

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 6-parameter write tool with an output schema and full schema coverage, the description supplies the key decision logic (which id to pass, prerequisites, exact-match warning). Only duplicate-add/idempotency behavior is unaddressed.

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%, so the schema already documents all six parameters including the part_id/part_number exclusivity. The description mostly echoes that exclusivity and the exact-match rule already implied in the field descriptions, adding little new meaning.

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?

States a specific verb+resource+scope: 'Add one exact catalogue part to an agent cart.' The 'exact' qualifier and the 'agent cart' target make it clearly distinguishable from search/check siblings.

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 explicit routing: pass exactly one of part_id/part_number, use searchPartsByNumber then part_id for substitutes, and 'Prefer checkFitment first'. This names the alternatives and the ordering prerequisites an agent needs.

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