Skip to main content
Glama

Import approved WhatsApp catalog products

import_whatsapp_catalog
Idempotent

After preview_whatsapp_catalog_import, copy the owner-approved products from an existing Meta WhatsApp catalog into the site’s Products collection as drafts. The operation is retry-safe by Meta product ID, updates prior imports, never deletes local products, never changes the Meta catalog, and never publishes the site. Call only after the owner approved this exact catalog and product selection.

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": {
      "site_id": "<site_id>",
      "catalog_id": "<catalog_id>",
      "approved": "<approved>"
    },
    "name": "import_whatsapp_catalog"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site whose linked Meta WhatsApp number owns the catalog.
approvedYesMust be true only after the owner approved the exact preview and selection.
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
catalog_idYesThe Meta catalog ID returned by preview_whatsapp_catalog_import.
product_idsNoMeta product IDs (or retailer IDs) selected by the owner. Omit to import every product in the chosen catalog after explicit approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Goes well beyond the annotations by explaining the idempotency mechanism (retry-safe by Meta product ID), the upsert semantics (updates prior imports), and the negative guarantees (no local deletes, no Meta catalog changes, no publishing). These scoping guarantees are exactly what an agent needs for a write tool. It stops short of describing partial-failure behavior or how to confirm results, which keeps it off a 5.

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 action and its prerequisite, and the guarantees are packed into one scannable clause chain. Slight redundancy: 'owner-approved' in the first sentence is restated by the final 'Call only after the owner approved' sentence.

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 mutation tool with no output schema, the description covers prerequisites, idempotency, and mutation scope thoroughly. It omits what a successful call returns and how to verify the imported drafts, which is the main remaining gap.

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 the schema already documents all five parameters including the approved gate and the product_ids omit-to-import-all behavior. The description reinforces the approval precondition but adds no format or boundary detail beyond the schema; baseline 3 applies.

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 concrete verb and resource: copy owner-approved products from an existing Meta WhatsApp catalog into the site's Products collection as drafts. It also positions itself relative to preview_whatsapp_catalog_import, so an agent can distinguish the two without opening either 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?

Explicit sequencing is given (use after preview_whatsapp_catalog_import) plus a hard gate: 'Call only after the owner approved this exact catalog and product selection.' That is a clear when-to-use and when-not-to-use condition, not an implication.

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