Skip to main content
Glama

Add item to collection

collection_add_item
Destructive

Add or update a product entry in a Kliv-side collection overlay. Calling on an existing item replaces its included price set. Omit price_ids to include all currently active prices. Presentation is rendered by tenant-side JSX from the Stripe Product mirror. This is DB-only and does not call Stripe.

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": {
      "explanation": "<explanation>",
      "account": "<account>"
    },
    "name": "collection_add_item"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountYesAccount (app) UUID; call account_list to find it
price_idsNoOptional full set of included Stripe price ids. Omit to include all currently active prices.
environmentNoOptional environment uuid. Overrides environment_slug. Use it to target a specific app's sandbox (list them with sim_env_list); omit it to act on this app's own.
explanationYesWhy you are making this call, in one sentence for the user.
collection_idNoCollection database id. Provide exactly one of collection_id or collection_uuid.
display_orderNoOptional display order; defaults to 0.
collection_uuidNoCollection uuid starting with pt. Provide exactly one of collection_id or collection_uuid.
environment_slugNoCollection environment (live, test, or sim). Required because collections are env-scoped — the same name can exist once per environment. 'sim' means THIS app's own sandbox; to act on a different app's, pass its uuid as 'environment'.
stripe_product_idNoRequired Stripe product id starting with prod_. Must reference a product in the table's environment.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Goes meaningfully beyond the annotations by disclosing the replace semantics for price_ids, the omit-to-include-all-active-prices default, and the important fact that this is DB-only and never calls Stripe. Annotations already flag destructiveHint=true and idempotentHint=false, so the description's job is context, which it partially does; it omits failure modes and whether the Stripe product must pre-exist.

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?

Front-loaded with the core action and side effect, then supporting context in four tight sentences. The JSX-rendering sentence is slightly tangential but earns its place by telling the agent presentation is not configured here.

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 9-parameter mutation with no output schema, the description covers the main semantic risks (overwrite behavior, Stripe non-involvement, price defaults). Remaining gaps are minor: no statement of what is returned or what happens when the referenced product is missing in the target environment.

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 every parameter is already documented, and the description merely restates the price_ids omission rule. It adds no cross-parameter guidance (e.g. collection_id vs collection_uuid exclusivity, or environment vs environment_slug interplay) beyond what the schema states.

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

Purpose4/5

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

States a specific verb+resource: 'Add or update a product entry in a Kliv-side collection overlay,' and clarifies the write target is Kliv-side, not Stripe. It does not name a sibling to differentiate against (e.g. collection_set_prices or collection_remove_item), so it falls short of a 5.

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

Usage Guidelines3/5

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

The description implies usage (add products to a collection) and explains the upsert behavior, but gives no explicit when-to-use-vs-alternative routing, such as when to use collection_set_prices instead. The 'calling on an existing item replaces its included price set' line reads as a warning about side effects rather than selection guidance.

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