Skip to main content
Glama

PayPing: create product

payping_create_product
Destructive

Creates a product in PayPing and returns its code so a public payment link can be generated after confirming title and price.

Instructions

Create a product; returns its code. Then payping_create_payment_link makes its public page. Confirm title and price with the user first.

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": {
      "title": "<title>"
    },
    "name": "payping_create_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYes
has_taxNoAdd VAT to the price.
quantityNoStock; omit for unlimited.
descriptionNo
amount_tomanNoPrice in Toman.
amount_set_by_payerNoPayer types the amount; no price.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / amount_set_by_payer / description
      Previous value: -"Payer types the amount (donations); no price."New value: +"Payer types the amount; no price."
  2. Changed8 schema fields changedv0.2.0
    • removedInput schema / properties / amount_set_by_payer / title
      Removed value: -"Amount Set By Payer"
    • removedInput schema / properties / amount_toman / title
      Removed value: -"Amount Toman"
    • removedInput schema / properties / description / title
      Removed value: -"Description"
    • removedInput schema / properties / has_tax / title
      Removed value: -"Has Tax"
    • removedInput schema / properties / quantity / title
      Removed value: -"Quantity"
    • removedInput schema / properties / title / title
      Removed value: -"Title"
    • removedInput schema / title
      Removed value: -"payping_create_productArguments"
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "title": "payping_create_productDictOutput",
      -  "type": "object"
      -}New value: +null
  3. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=false and openWorldHint=true, so the safety profile is known. The description adds real value with the returned `code` and the instruction to confirm title and price with the user before writing. It does not, however, explain the non-idempotency consequence (repeat calls create duplicate products) or what the "destructive" hint means for a create operation.

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?

Two tight sentences with the core action and return value front-loaded, then the follow-up chain and precondition. No filler or restatement of the title.

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

Completeness3/5

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

For a 6-parameter write tool with no output schema, the description covers the action, the returned identifier, and the next step in the workflow. It leaves gaps around parameter interplay (price vs. payer-set amount) and error behavior, which matter for a non-idempotent open-world mutation.

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?

At 67% schema coverage the schema already documents has_tax, quantity and amount_toman. The description reinforces title and price as the two values to confirm, but says nothing about the important ambiguity between amount_toman and amount_set_by_payer (price vs. payer-entered amount) or how quantity interacts with unlimited stock.

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?

States a specific verb+resource ("Create a product") and adds the useful outcome ("returns its `code`"), which is unambiguous against siblings like payping_get_product and payping_list_products. It does not explicitly name a contrasting sibling, but the create verb alone makes selection clear.

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?

Gives both a sequencing rule ("Then payping_create_payment_link makes its public page") and a precondition ("Confirm title and price with the user first"), which is explicit when-to-use guidance tied to a named sibling. It lacks a when-not-to-use clause, e.g. when a product already exists and should be fetched instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.