Skip to main content
Glama
Pantrist-dev

Pantrist

Official

add_shopping_item

Add an item to your shopping list by name, automatically matching against your article catalog to reuse existing articles or create new ones.

Instructions

Add an item to the shopping list by name. The API matches name against the user's article catalog: an existing article is reused (its category, unit and price history preserved); a new article is created on first use. Returns the resulting ArticleDto. To add directly to the pantry instead use add_pantry_item; to mark an existing shopping item bought use check_shopping_item.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesItem name, e.g. "Milk". Matched case-insensitively against the article catalog; an exact match reuses the existing article.
listIdNoList UUID — call `list_lists` to discover one. Optional only in stdio mode (falls back to the PANTRIST_LIST_ID env var); required explicitly in HTTP mode.
Behavior4/5

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

No annotations provided, so description carries full burden. It explains article matching logic (reuse vs create), and returns ArticleDto. It also mentions listId as optional in stdio mode. Minor lack: doesn't specify which shopping list is used if listId omitted, but still adequate.

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?

Three sentences with no redundancy. The first sentence states the core action, the second adds behavioral nuance, the third provides usage guidance with sibling references. Every sentence 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?

Given no output schema, the description mentions the return type 'ArticleDto', which is sufficient. Input parameters fully covered. Alternative tools referenced. Only minor gap: no explanation of what the 'shopping list' is, but context implies the user's main list.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, but description adds value by explaining case-insensitive matching for name and the context-dependent optionality of listId. This goes beyond what the schema descriptions alone provide.

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?

The description starts with a clear verb-resource pair: 'Add an item to the shopping list by name.' It distinguishes from siblings by naming specific alternatives like add_pantry_item and check_shopping_item.

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?

The description explicitly states when to use this tool vs alternatives: 'To add directly to the pantry instead use add_pantry_item; to mark an existing shopping item bought use check_shopping_item.' It also clarifies listId optionality across modes.

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/Pantrist-dev/pantrist-mcp'

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