Skip to main content
Glama

cart_add_persistence

Add cart persistence and synchronization to your project. Provide the project directory to enable saving and restoring cart state across sessions.

Instructions

Add cart persistence and sync

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyNo
directoryYesProject directory
Behavior2/5

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

With no annotations, the description carries the full burden of behavioral disclosure, and it discloses nothing: no mention of files modified, auth requirements (despite the api_key parameter), reversibility, or what 'sync' mechanism is implemented. The verb 'Add' only weakly implies a non-destructive code modification.

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

Conciseness3/5

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

The six-word description is undeniably concise and front-loaded with the verb, but the brevity reflects under-specification rather than efficient information delivery — the sentence adds little beyond the tool name. There is no waste, but also no substantive content.

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

Completeness1/5

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

For a tool with no annotations, no output schema, and an undocumented api_key parameter, this description is radically incomplete. An agent cannot determine what persistence mechanism is used, what 'sync' means, what inputs matter, or what the tool returns.

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 exactly 50%, with api_key completely undocumented in the schema. The tool description adds no parameter semantics at all, failing to explain the purpose of api_key beyond the schema's terse 'Project directory' entry.

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

Purpose2/5

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

The description 'Add cart persistence and sync' restates the tool name 'cart_add_persistence' almost verbatim, adding only the word 'sync'. It conveys no mechanism, scope, or target, and does not distinguish this tool from siblings like state_add_persistence or cart_add_promotions.

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?

No when-to-use guidance is provided. The description never mentions prerequisites (e.g., an existing cart system from cart_generate_system), when cart persistence vs. state persistence is appropriate, or when an alternative sibling would be preferred.

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/barnburner121/claude-plugin-marketplace'

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