Skip to main content
Glama

Draft a product

create_product

Create a DRAFT product in the store. Nothing goes live: show the user the draft (name, description, price) and ask them to approve before calling publish. Pass the store's agent_key (returned by open_store).

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": {
      "agent_key": "<agent_key>",
      "name": "<name>",
      "description": "<description>",
      "price_usd": "<price_usd>"
    },
    "name": "create_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesProduct name, e.g. 'Inbox Triage'
typeNoWhat kind of product it is
agent_keyYesThe store's agent key (rpy_…), returned by open_store
price_usdYesPrice in US dollars, paid in USDC (1 USDC = 1 USD)
descriptionYesOne or two sentences buyers will read
delivery_urlNoOptional https link buyers get after paying (file, repo, Notion page, ...). The owner can instead upload the file itself in the dashboard.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / delivery_url / description
      Previous value: -"Optional https link buyers get after paying (file, repo, Notion page, ...)"New value: +"Optional https link buyers get after paying (file, repo, Notion page, ...). The owner can instead upload the file itself in the dashboard."
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare the generic mutation profile; the description adds substantive context: nothing goes live, human approval is expected before publish, and agent_key must come from open_store. It omits what is returned (e.g., a draft id needed by publish/delete_draft) and that repeated calls are not idempotent.

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, front-loaded with the draft-only constraint and ending with the required credential source. No filler.

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?

Complete on the safety/approval dimension and parameter origin for a 6-param creation tool. Slightly incomplete in that, with no output schema, an agent is not told what a successful call returns (presumably a draft identifier to pass to publish).

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

Parameters3/5

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

Schema coverage is 100%, so parameters are already well documented. The description's mention of agent_key originating from open_store duplicates the schema description rather than adding new meaning, so the baseline 3 applies.

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?

Specific verb+resource ('Create a DRAFT product') with the critical qualifier that it is a draft, immediately distinguishing it from sibling tools publish and delete_draft.

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?

Clearly frames the workflow: show the user the draft and get approval before calling publish, and pass the agent_key from open_store. It does not explicitly state when-not-to-use or contrast with publish as an alternative path, but the sequencing guidance is strong.

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