Skip to main content
Glama

Add or edit an offering

save_offering
Destructive

Add an offering to the catalog, or change one. Without offering_id this adds an offering: name, category and sell_rate are required. With offering_id (from list_offerings) it changes that offering: only the fields you pass change, and the old values are overwritten. sell_rate and cogs are amounts in the org currency per unit (e.g. 450 or 450.50). Set is_active=false to retire an offering instead of deleting it. is_public=true lists it on the organization's public storefront, where anyone on the internet can see its name, description and price, and false takes it down; a public offering's new name, description and price show there right away. Returns the offering. Org admins/owners only. Runs on the first call; there is no confirmation step.

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": "save_offering"
  }
}

Input Schema

NameRequiredDescriptionDefault
cogsNocost of goods per unit, same currency as sell_rate
nameNooffering name (required when adding)
unitNopricing unit (default DAY on create; unchanged when omitted on update)
categoryNowhat kind of offering (required when adding)
is_activeNofalse retires it from new quotes
is_publicNotrue lists it on the public storefront
sell_rateNoprice per unit (required when adding)
descriptionNocustomer-facing description
offering_idNochange this offering (id from list_offerings); omit to add one
invoice_labelNolabel printed on invoice lines
organization_idNoorganization to act in, an id from get_me; omit to use your active organization

Output Schema

NameRequiredDescriptionDefault
okYestrue on success (including confirmation_required prompts)
dataNothe API response { status (HTTP status), data: the offering: { id, organization_id, name, description, category, unit, sell_rate, cogs, margin_pct, is_active, is_public, invoice_label, source, history_sample_size, template_use_count, created_at, updated_at } }
errorNowhen ok is false

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: it discloses that updates overwrite prior values, that the call executes immediately with no confirmation step, that is_public exposes name/description/price to anyone on the internet with immediate propagation, and that a specific role is required. These details make the destructiveHint=true and openWorldHint=true annotations actionable rather than abstract.

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 mode split, then required fields, then behavioral caveats, so an agent can stop reading once it knows which mode it is in. It is dense and slightly long, with mild redundancy in the storefront sentence ('...show there right away' after already stating public listings are visible), but no sentence is wasted.

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 an 11-parameter mutation tool, it covers the create/update fork, required fields, currency/unit semantics, side effects on quotes and the public storefront, authorization, and execution timing, while an output schema already exists to carry return values. Nothing an agent needs in order to call this 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 per-field semantics are already documented, and the description largely restates them (required-on-create fields, is_active retirement, is_public storefront). It does add genuinely new meaning: sell_rate and cogs are in the org currency per unit, with a concrete '450 or 450.50' example, plus the partial-update rule that only passed fields change.

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?

Opens with a specific verb+resource ('Add an offering to the catalog, or change one') and immediately splits the two modes by the presence of offering_id, so an agent knows this is a dual create/update tool without reading the schema. It also names list_offerings as the source of the id, which disambiguates it from the sibling catalog tools.

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 states the create-vs-update condition, names list_offerings as the prerequisite for updates, and points to the alternative to deletion ('Set is_active=false to retire an offering instead of deleting it'), which routes against delete_offering. Permission scope (org admins/owners only) and the no-confirmation behavior are also spelled out.

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.