Skip to main content
Glama

CallMCP — Phone Call MCP Server

Create or Update Agent Product

upsert_product
Destructive

Create a new product row, or update one when id is provided. Creating requires name and business_id. Pass quantity to set/update inventory.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "upsert_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoProduct ID to update (omit to create).
skuNo
nameNo
priceNo
categoryNo
quantityNoInventory quantity to set (optional).
image_urlNoPublic https photo of the product. Shown next to it when the agent lists options on a caller's screen. Null clears it.
attributesNo
business_idNoBusiness ID. Required for create when the token can access multiple businesses.
descriptionNo

Output Schema

NameRequiredDescriptionDefault
errorNoPresent when success is false
productNo
successYesWhether the tool completed successfully

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / image_url
      Added value: +{
      +  "description": "Public https photo of the product. Shown next to it when the agent lists options on a caller's screen. Null clears it.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, so the description must add more than safety labels — and it does clarify the create requirements (name + business_id) and the inventory side effect of `quantity`. However, it never explains the most important destructive behavior for an upsert: whether fields omitted on update are preserved or wiped, which is exactly what an agent needs before mutating a row.

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 short sentences, zero filler, with the create/update distinction and the required fields front-loaded. Every clause carries information an agent cannot get elsewhere.

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?

An output schema exists, so return values need not be described, and the description covers the create path and the key optional side effect. For a 10-parameter destructive upsert at 40% schema coverage, the remaining gap is partial-update semantics (what happens to unset fields), which keeps it short of a 5.

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 only 40% across 10 parameters, so the description has to compensate; it adds real meaning for `id` (omit to create), `quantity` (sets/updates inventory), and the create-time requirement on name and business_id. It still leaves sku, price, category, attributes, and description unaddressed, so it is helpful but not complete.

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?

The description names a specific verb pair and resource — 'Create a new product row, or update one when `id` is provided' — and explicitly encodes the create-vs-update switch. It is clearly distinguishable from siblings like upsert_knowledge or upsert_lead by resource, though it does not reference any sibling by name.

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?

It gives one concrete routing rule: omit `id` to create, supply `id` to update. That is useful mode-selection guidance, but there is no statement about when to prefer this over other agent/product tools, no prerequisite about obtaining an existing product id, and no guidance on lookup before overwriting.

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.