Skip to main content
Glama

Fake Store API MCP Server

by op-enny

fakestore_add_cart

Simulate adding a shopping cart with user ID, date, and products for testing e-commerce workflows in development environments.

Instructions

Add a new cart (simulation - does not persist)

Input Schema

NameRequiredDescriptionDefault
dateYesCart date in ISO format (e.g., 2024-01-01)
productsYesArray of products in the cart
userIdYesUser ID who owns the cart

Input Schema (JSON Schema)

{ "properties": { "date": { "description": "Cart date in ISO format (e.g., 2024-01-01)", "type": "string" }, "products": { "description": "Array of products in the cart", "items": { "properties": { "productId": { "description": "Product ID", "type": "number" }, "quantity": { "description": "Product quantity", "type": "number" } }, "required": [ "productId", "quantity" ], "type": "object" }, "type": "array" }, "userId": { "description": "User ID who owns the cart", "type": "number" } }, "required": [ "userId", "date", "products" ], "type": "object" }

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/op-enny/mcp-server-fakestore'

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