Skip to main content
Glama

Polish a product view

polish_product_view
Destructive

Pay to correct one ready product photo using a note. Quote view_polish_credits first. Check get_product_views after a timeout; repeating a completed polish incurs a new charge.

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": {
      "id": "<id>",
      "view": "<view>",
      "note": "<note>",
      "max_credits": "<max_credits>"
    },
    "name": "polish_product_view"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYes
noteYes
viewYes
max_creditsYesMaximum credits explicitly authorized for this action

Output Schema

NameRequiredDescriptionDefault
idYes
nameYes
errorYes
linksYes
viewsYes
promptYes
statusYes
creditsYes
renderIdYes
createdAtYes
viewCountYes
readyCountYes
buildCreditsYes
polishCreditsYes
upscaleCreditsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare destructive, non-idempotent, non-read-only and open-world, and the description goes further by disclosing the billing model ('Pay', 'repeating a completed polish incurs a new charge') and the recovery path after a timeout. It does not explain whether the original view is overwritten or whether credits are refunded on failure, which matters for a destructive, open-world call.

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, cost and prerequisite front-loaded, then the timeout/re-charge caveat. 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.

Completeness4/5

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

Since an output schema exists, the description needn't describe return values, and it covers the key agent-facing concerns: credit authorization, prerequisite quoting, asynchronous polling, and duplicate charges. The main remaining gap is clarifying the id vs view distinction and whether the polish mutates in place.

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 description coverage is only 25% (only max_credits is documented), so the description should compensate. It clarifies that 'note' is the natural-language correction instruction and that the target must be a 'ready' view, but leaves id and view semantics to inference from parameter names.

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 and resource: 'Pay to correct one ready product photo using a note.' The cost framing ('Pay') and the 'ready' precondition make the operation distinguishable from siblings like create_product_views or build_from_product_views, though it does not explicitly contrast with them.

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 concrete operational sequencing: quote view_polish_credits first, and poll get_product_views after a timeout. It stops short of saying when to prefer this over alternative polish/build paths, but the 'one ready product photo' precondition is a clear usage gate.

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.