Skip to main content
Glama

Create eBay drafts

create_ebay_drafts
Destructive

Create eBay DRAFT offers for up to 25 products — real writes to the seller's eBay account, but nothing is buyer-visible until publish_ebay_drafts. Run inspect_ebay_listings first and pass only products whose nextAction is create_draft and ready is true. Each product is attempted on its own: returns created, failed (each with a reason to look up in remediation.ebayPlaybook) and notAttempted (not reached in the time budget — call again with those ids). Refused until the owner switches on AI publishing, and while draft creation is not armed on the eBay connection. Not idempotent: a product that already has a draft fails with alreadyListed. The result echoes the workspace.

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": {
      "productIds": "<productIds>"
    },
    "name": "create_ebay_drafts"
  }
}

Input Schema

NameRequiredDescriptionDefault
productIdsYesThe exact products to create eBay draft offers for, at most 25 ids fetched with search_products. This creates drafts only and never makes them live.
marketplaceIdNoOmit this when the eBay connection sells on exactly one marketplace — the server fills it in automatically. Pass one of the audit's armed ebayDraftSetup.marketplaceIds only when several marketplaces are armed. This is a MARKETPLACE id (e.g. EBAY_DE, EBAY_IT) — never the eBay CONNECTION/adapter id.

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?

Annotations already declare destructive=true, idempotent=false and openWorld=true, and the description builds on that rather than repeating it: it clarifies the write is real but not buyer-visible, that per-product failures must be looked up in remediation.ebayPlaybook, that it is non-idempotent ('a product that already has a draft fails with alreadyListed'), and that it can time out mid-run. This is unusually rich behavioral disclosure for a mutation tool.

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 purpose and tightly packed — every clause carries operational information (preconditions, failure modes, idempotency, refusals) and none is filler. It is dense enough that a reader must parse several semicolon-joined clauses, which costs a little scannability versus a clean multi-sentence split.

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?

With no output schema, the description carries the return contract itself: created / failed (with a playbook lookup key) / notAttempted and the retry instruction, plus the workspace echo. Combined with the refusal and idempotency notes, an agent has everything needed to call this correctly.

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 marketplaceId semantics (omit for single-marketplace connections, use only armed ebayDraftSetup.marketplaceIds, never the connection id) largely duplicate the schema text. The description does add non-schema meaning for productIds provenance and gating (must come from search_products and pass inspect_ebay_listings checks), which lifts it above the baseline 3.

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 specific verb and resource with scope: 'Create eBay DRAFT offers for up to 25 products.' It immediately distinguishes itself from publish_ebay_drafts (nothing buyer-visible until then) and implicitly from delete/recreate_ebay_drafts, so an agent can separate it from siblings 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 Guidelines5/5

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

Gives an explicit prerequisite ('Run inspect_ebay_listings first and pass only products whose nextAction is create_draft and ready is true'), names the downstream alternative (publish_ebay_drafts), and states when it will be refused (AI publishing off, draft creation unarmed). It also tells the agent what to do on partial failure (call again with the notAttempted ids).

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