Skip to main content
Glama

Replace the in-app catalog

replace_in_app_products
Destructive

Replace the whole in-app catalog with products — not a patch: a product you leave out is deleted, and an empty list clears the catalog. Ask the developer before removing products. Read list_in_app_products first and pass its checksum as expectedChecksum; if the catalog changed meanwhile, the call is refused. While in-game purchases are off, a call that leaves them off is refused (IN_GAME_PURCHASES_OFF): turn them on with hasInGamePurchases: true to change the catalog.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productsYesThe complete catalog after your change
applicationIdYesApplication (game) id, as returned by list_applications
expectedChecksumYesThe `checksum` list_in_app_products answered — the state this call means to replace
hasInGamePurchasesNoDefaults to whether `products` is non-empty

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / products / items / properties / description / description
      Added value: +"Product description"
    • addedInput schema / properties / products / items / properties / title / description
      Added value: +"Display title of the product"
    • addedInput schema / properties / products / items / properties / type / description
      Added value: +"`consumable` can be bought again and again (coins, lives); `non_consumable` is bought once and kept"
  2. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Goes well beyond the destructiveHint annotation by spelling out the concrete consequences: omitted products are deleted, an empty list clears the catalog, and there are two refusal modes (checksum mismatch and IN_GAME_PURCHASES_OFF). This is exactly the operational detail an agent needs before a destructive call.

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?

Front-loads the replacement semantics, then consequences (deletion, clearing), then prerequisites and refusal conditions. Three dense sentences with no filler; every clause carries actionable information.

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

Completeness5/5

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

For a destructive four-parameter tool with no output schema, the description covers scope, side effects, prerequisites, and failure modes completely. Nothing an agent needs to call it safely is missing.

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%, so the schema already documents each field; the description's added value is tying expectedChecksum to the list_in_app_products output and explaining the refusal on mismatch. It reinforces rather than adds new per-parameter syntax, so slightly above baseline.

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 (replace) and resource (the whole in-app catalog), and immediately distinguishes itself from list_in_app_products by emphasizing it is a full replacement, not a patch. An agent can identify the operation without opening the schema.

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?

Explicitly names the prerequisite (read list_in_app_products first and pass its checksum), the safety action (ask the developer before removing products), and the alternative path when purchases are off. Names the relevant sibling tool directly.

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