Skip to main content
Glama

Draft offers from a key's models

create_offers

Draft offers from a key's models

Drafts one offer per model of the key's last discovery, priced to follow the market unless a fixed discount is given. The selection replaces the key's drafts. A draft goes live after its health test and identity checks pass (the test_offer tool) and it is published (the publish_offer tool). Sellers only: an account that has not accepted the selling terms gets 403 not_seller. Send selfPrices (model id to { p, c, cr? }, USD per 1M tokens, each above 0) to draft any model at your own price; a model with no reference price anywhere needs one. A Z.ai key that discovery found to be an open-platform one (the job's zaiKind is open) is refused while nothing is listed on it: 422 preset_coming_soon (GLM Coding Plan keys work now). At most 500 offers per account (drafts included, cancelled ones not), and 2,000 new ones a day: past either, 409 limit_reached.

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": {
      "credentialId": "<credentialId>",
      "models": "<models>"
    },
    "name": "create_offers"
  }
}

Input Schema

NameRequiredDescriptionDefault
modelsYesModels of the key's last discovery (our id or the vendor's). The selection replaces the key's drafts.
selfPricesNoYour own price for selected models, by model id: { p, c, cr? } in USD per 1M tokens, each above 0. Any model; required for a model with no reference anywhere.
discountPctNo
pricingModeNomatch
credentialIdYes
idempotencyKeyNoOptional. A unique string so that repeating this call never creates twice.
maxDiscountPctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Beyond the annotations it discloses concrete limits (500 offers per account including drafts, 2,000 new per day, 409 limit_reached), the 403 not_seller seller gate, and the 422 preset_coming_soon case for open-platform Z.ai keys — rich operational context the annotations do not carry. Worth noting it states the selection 'replaces the key's drafts' while destructiveHint=false; that is a realistic mild tension, though drafts are ephemeral working state rather than published offers.

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?

The first sentence delivers the core action and pricing default; the rest packs lifecycle, pricing override, and error conditions tightly with no filler. Errors and limits are stated in one clause each rather than padded into prose.

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 7-parameter, nested-object mutation with no output schema, the description covers preconditions, side effects on existing drafts, limits, and failure codes well. The main remaining gap is what the call returns (presumably the created drafts) and how the three pricingMode values interact with the two discount parameters.

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?

With 43% schema coverage the description must compensate, and it does for the most confusing parts: selfPrices is model id to { p, c, cr? } in USD per 1M tokens, each above 0, and is required for a model with no reference price anywhere. It also explains the default market-following behavior versus a fixed discount, but leaves `per_model`, `discountPct`, and `maxDiscountPct` semantics largely to the schema.

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?

The title/description pair states a specific verb and resource ('draft offers from a key's models') and immediately narrows it: one offer per model of the key's last discovery, priced off the market unless a fixed discount is given. It also places the tool in a lifecycle by naming `test_offer` and `publish_offer`, so an agent can distinguish drafting from testing and publishing without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives clear preconditions and follow-ups: sellers only (403 not_seller), drafts go live only after `test_offer` and `publish_offer`, and selfPrices should be sent when you want your own price rather than market-following. There is no explicit contrast with list/discard/bulk siblings, but the when-to-use context is unambiguous.

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