Skip to main content
Glama

Edit an offer

update_offer
DestructiveIdempotent

Change an offer (text, dates, on/off). Changes the owner's account.

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": {
      "offer_id": "<offer_id>"
    },
    "name": "update_offer"
  }
}

Input Schema

NameRequiredDescriptionDefault
tzNo
termsNo
titleNo
ends_atNo
brand_idNoOptional business id from list_brands (default: this connection's business).
item_idsNo
offer_idYesThe offer id.
starts_atNo
idempotency_keyNo
expected_revisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, so safety is largely covered. The line "Changes the owner's account" flags a side effect beyond the annotations, but it is vague about what actually changes and says nothing about permissions or conflict behavior.

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?

Two short front-loaded sentences with no filler. The only cost is that the parenthetical compresses distinct fields into a shorthand the schema does not match.

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

Completeness2/5

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

A ten-parameter destructive mutation with no output schema needs more than two sentences. Neither the revision/idempotency controls nor the account-level side effect are explained well enough for an agent to call it confidently.

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

Parameters2/5

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

Schema description coverage is only 20%, so the description must carry the load and it does not — idempotency_key, expected_revision, tz, and item_ids go unexplained. Worse, the advertised "on/off" facet has no corresponding parameter in the schema, which misdirects an agent.

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?

"Change an offer" gives a clear verb plus resource, and the parenthetical names the edited facets. It reads distinctly against add_offer and delete_offer 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 Guidelines3/5

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

Implicitly for editing an existing offer rather than creating one, but there is no explicit when-to-use, no prerequisites, and no named alternative for related operations.

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