Skip to main content
Glama

Write a product description

describe_product
Idempotent

Write a factual product title, summary and benefit bullets using the existing Cormak Product Cards backend. Costs 1 AI credit under a server-side connection spending permission or individual owner approval; AI consent and rate limits apply. Optional reference analysis. Stable request_id prevents duplicate work; poll get_product_operation.

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": {
      "product": "<product>",
      "request_id": "<request_id>",
      "confirm_spend": "<confirm_spend>",
      "expected_credits": "<expected_credits>"
    },
    "name": "describe_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
localeNoru
productYes
referenceNo
request_idYes
confirm_spendYes
expected_creditsYes
analyze_referenceNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / anyOf
      Previous value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "analysis": {
      -        "anyOf": [
      -          {
      -            "type": "null"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "analysis": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "attributes": {
      -                    "items": {
      -                      "additionalProperties": false,
      -                      "properties": {
      -                        "label": {
      -                          "maxLength": 36,
      -                          "type": "string"
      -                        },
      -                        "value": {
      -                          "maxLength": 100,
      -                          "type": "string"
      -                        }
      -                      },
      -                      "required": [
      -                        "label",
      -                        "value"
      -                      ],
      -                      "type": "object"
      -                    },
      -                    "maxItems": 6,
      -                    "type": "array"
      -                  },
      -                  "category": {
      -                    "enum": [
      -                      "fashion",
      -                      "home",
      -                      "beauty",
      -                      "kids",
      -                      "electronics",
      -                      "sport",
      -                      "pets",
      -                      "hobby",
      -                      "food",
      -                      "auto",
      -                      "garden",
      -                      "construction",
      -                      "stationery",
      -                      "other"
      -                    ]
      -                  },
      -                  "product_name": {
      -                    "maxLength": 80,
      -                    "type": "string"
      -                  },
      -                  "product_type": {
      -                    "maxLength": 80,
      -                    "type": "string"
      -                  },
      -                  "suggested_card_styles": {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "maxItems": 4,
      -                    "type": "array"
      -                  },
      -                  "suggested_photoshoot_styles": {
      -                    "items": {
      -                      "type": "string"
      -                    },
      -                    "maxItems": 4,
      -                    "type": "array"
      -                  }
      -                },
      -                "required": [
      -                  "category",
      -                  "product_name",
      -                  "product_type",
      -                  "attributes",
      -                  "suggested_card_styles",
      -                  "suggested_photoshoot_styles"
      -                ],
      -                "type": "object"
      -              },
      -              "error": {
      -                "type": "string"
      -              },
      -              "status": {
      -                "enum": [
      -                  "pending",
      -                  "running",
      -                  "complete",
      -                  "failed",
      -                  "unknown",
      -                  "skipped"
      -                ]
      -              },
      -              "step_id": {
      -                "format": "uuid",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "step_id",
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "approval_url": {
      -        "type": "string"
      -      },
      -      "confirmation_reason": {
      -        "type": "string"
      -      },
      -      "credits_charged": {
      -        "minimum": 0,
      -        "type": "integer"
      -      },
      -      "description": {
      -        "anyOf": [
      -          {
      -            "type": "null"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "description": {
      -                "additionalProperties": false,
      -                "properties": {
      -                  "bullets": {
      -                    "items": {
      -                      "maxLength": 220,
      -                      "type": "string"
      -                    },
      -                    "maxItems": 8,
      -                    "type": "array"
      -                  },
      -                  "summary": {
      -                    "maxLength": 4008,
      -                    "type": "string"
      -                  },
      -                  "title": {
      -                    "maxLength": 140,
      -                    "type": "string"
      -                  }
      -                },
      -                "required": [
      -                  "title",
      -                  "summary",
      -                  "bullets"
      -                ],
      -                "type": "object"
      -              },
      -              "error": {
      -                "type": "string"
      -              },
      -              "status": {
      -                "enum": [
      -                  "pending",
      -                  "running",
      -                  "complete",
      -                  "failed",
      -                  "unknown",
      -                  "skipped"
      -                ]
      -              },
      -              "step_id": {
      -                "format": "uuid",
      -                "type": "string"
      -              }
      -            },
      -            "required": [
      -              "step_id",
      -              "status"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "frames": {
      -        "items": {
      -          "additionalProperties": false,
      -          "properties": {
      -            "credits_charged": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "credits_refunded": {
      -              "minimum": 0,
      -              "type": "integer"
      -            },
      -            "error": {
      -              "type": "string"
      -            },
      -            "id": {
      -              "format": "uuid",
      -              "type": "string"
      -            },
      -            "image": {
      -              "type": "string"
      -            },
      -            "mime_type": {
      -              "enum": [
      -                "image/png",
      -                "image/jpeg",
      -                "image/webp"
      -              ]
      -            },
      -            "scene": {
      -              "enum": [
      -                "hero",
      -                "benefits",
      -                "lifestyle",
      -                "detail"
      -              ]
      -            },
      -            "status": {
      -              "enum": [
      -                "pending",
      -                "running",
      -                "complete",
      -                "failed",
      -                "unknown",
      -                "skipped"
      -              ]
      -            },
      -            "step_id": {
      -              "format": "uuid",
      -              "type": "string"
      -            },
      -            "url_expires_in_seconds": {
      -              "const": 3600
      -            }
      -          },
      -          "required": [
      -            "step_id",
      -            "status",
      -            "scene",
      -            "credits_charged",
      -            "credits_refunded"
      -          ],
      -          "type": "object"
      -        },
      -        "maxItems": 4,
      -        "type": "array"
      -      },
      -      "message": {
      -        "type": "string"
      -      },
      -      "next": {
      -        "const": "get_product_operation"
      -      },
      -      "poll_after_seconds": {
      -        "const": 5
      -      },
      -      "progress": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "completed_frames": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "finished_steps": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "total_frames": {
      -            "minimum": 0,
      -            "type": "integer"
      -          },
      -          "total_steps": {
      -            "minimum": 0,
      -            "type": "integer"
      -          }
      -        },
      -        "required": [
      -          "completed_frames",
      -          "total_frames",
      -          "finished_steps",
      -          "total_steps"
      -        ],
      -        "type": "object"
      -      },
      -      "quote": {
      -        "anyOf": [
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "analysis_credits": {
      -                "const": 0
      -              },
      -              "aspect_ratio": {
      -                "enum": [
      -                  "1:1",
      -                  "16:9",
      -                  "9:16",
      -                  "4:3",
      -                  "3:4"
      -                ]
      -              },
      -              "count": {
      -                "enum": [
      -                  1,
      -                  4
      -                ]
      -              },
      -              "currency": {
      -                "const": "ai_credits"
      -              },
      -              "description_credits": {
      -                "enum": [
      -                  0,
      -                  1
      -                ]
      -              },
      -              "free_photo_used": {
      -                "const": false
      -              },
      -              "maximum": {
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "model": {
      -                "enum": [
      -                  "nano",
      -                  "nano2",
      -                  "nano-pro",
      -                  "gemini",
      -                  "seedream"
      -                ]
      -              },
      -              "per_image": {
      -                "minimum": 0,
      -                "type": "integer"
      -              },
      -              "quality": {
      -                "enum": [
      -                  "standard",
      -                  "high"
      -                ]
      -              }
      -            },
      -            "required": [
      -              "currency",
      -              "per_image",
      -              "maximum",
      -              "count",
      -              "model",
      -              "quality",
      -              "aspect_ratio",
      -              "description_credits",
      -              "analysis_credits",
      -              "free_photo_used"
      -            ],
      -            "type": "object"
      -          },
      -          {
      -            "additionalProperties": false,
      -            "properties": {
      -              "analysis_credits": {
      -                "const": 0
      -              },
      -              "currency": {
      -                "const": "ai_credits"
      -              },
      -              "description_credits": {
      -                "const": 1
      -              },
      -              "kind": {
      -                "const": "description"
      -              },
      -              "maximum": {
      -                "const": 1
      -              }
      -            },
      -            "required": [
      -              "kind",
      -              "currency",
      -              "maximum",
      -              "description_credits",
      -              "analysis_credits"
      -            ],
      -            "type": "object"
      -          }
      -        ]
      -      },
      -      "request_id": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "awaiting_confirmation",
      -          "approved",
      -          "denied",
      -          "running",
      -          "complete",
      -          "partial",
      -          "failed",
      -          "unknown"
      -        ]
      -      }
      -    },
      -    "required": [
      -      "request_id",
      -      "status",
      -      "progress",
      -      "frames",
      -      "description",
      -      "analysis",
      -      "credits_charged",
      -      "next",
      -      "poll_after_seconds"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "error": {
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "error"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "analysis": {
      +        "anyOf": [
      +          {
      +            "type": "null"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "analysis": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "attributes": {
      +                    "items": {
      +                      "additionalProperties": false,
      +                      "properties": {
      +                        "label": {
      +                          "maxLength": 36,
      +                          "type": "string"
      +                        },
      +                        "value": {
      +                          "maxLength": 100,
      +                          "type": "string"
      +                        }
      +                      },
      +                      "required": [
      +                        "label",
      +                        "value"
      +                      ],
      +                      "type": "object"
      +                    },
      +                    "maxItems": 6,
      +                    "type": "array"
      +                  },
      +                  "category": {
      +                    "enum": [
      +                      "fashion",
      +                      "home",
      +                      "beauty",
      +                      "kids",
      +                      "electronics",
      +                      "sport",
      +                      "pets",
      +                      "hobby",
      +                      "food",
      +                      "auto",
      +                      "garden",
      +                      "construction",
      +                      "stationery",
      +                      "other"
      +                    ]
      +                  },
      +                  "product_name": {
      +                    "maxLength": 80,
      +                    "type": "string"
      +                  },
      +                  "product_type": {
      +                    "maxLength": 80,
      +                    "type": "string"
      +                  },
      +                  "suggested_card_styles": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "maxItems": 4,
      +                    "type": "array"
      +                  },
      +                  "suggested_photoshoot_styles": {
      +                    "items": {
      +                      "type": "string"
      +                    },
      +                    "maxItems": 4,
      +                    "type": "array"
      +                  }
      +                },
      +                "required": [
      +                  "category",
      +                  "product_name",
      +                  "product_type",
      +                  "attributes",
      +                  "suggested_card_styles",
      +                  "suggested_photoshoot_styles"
      +                ],
      +                "type": "object"
      +              },
      +              "error": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "pending",
      +                  "running",
      +                  "complete",
      +                  "failed",
      +                  "unknown",
      +                  "skipped"
      +                ]
      +              },
      +              "step_id": {
      +                "format": "uuid",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "step_id",
      +              "status"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "approval_url": {
      +        "type": "string"
      +      },
      +      "confirmation_reason": {
      +        "type": "string"
      +      },
      +      "credits_charged": {
      +        "minimum": 0,
      +        "type": "integer"
      +      },
      +      "description": {
      +        "anyOf": [
      +          {
      +            "type": "null"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "description": {
      +                "additionalProperties": false,
      +                "properties": {
      +                  "bullets": {
      +                    "items": {
      +                      "maxLength": 220,
      +                      "type": "string"
      +                    },
      +                    "maxItems": 8,
      +                    "type": "array"
      +                  },
      +                  "summary": {
      +                    "maxLength": 4008,
      +                    "type": "string"
      +                  },
      +                  "title": {
      +                    "maxLength": 140,
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "title",
      +                  "summary",
      +                  "bullets"
      +                ],
      +                "type": "object"
      +              },
      +              "error": {
      +                "type": "string"
      +              },
      +              "status": {
      +                "enum": [
      +                  "pending",
      +                  "running",
      +                  "complete",
      +                  "failed",
      +                  "unknown",
      +                  "skipped"
      +                ]
      +              },
      +              "step_id": {
      +                "format": "uuid",
      +                "type": "string"
      +              }
      +            },
      +            "required": [
      +              "step_id",
      +              "status"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "frames": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "credits_charged": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "credits_refunded": {
      +              "minimum": 0,
      +              "type": "integer"
      +            },
      +            "error": {
      +              "type": "string"
      +            },
      +            "id": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "image": {
      +              "type": "string"
      +            },
      +            "mime_type": {
      +              "enum": [
      +                "image/png",
      +                "image/jpeg",
      +                "image/webp"
      +              ]
      +            },
      +            "scene": {
      +              "enum": [
      +                "hero",
      +                "benefits",
      +                "lifestyle",
      +                "detail"
      +              ]
      +            },
      +            "status": {
      +              "enum": [
      +                "pending",
      +                "running",
      +                "complete",
      +                "failed",
      +                "unknown",
      +                "skipped"
      +              ]
      +            },
      +            "step_id": {
      +              "format": "uuid",
      +              "type": "string"
      +            },
      +            "url_expires_in_seconds": {
      +              "const": 3600
      +            }
      +          },
      +          "required": [
      +            "step_id",
      +            "status",
      +            "scene",
      +            "credits_charged",
      +            "credits_refunded"
      +          ],
      +          "type": "object"
      +        },
      +        "maxItems": 4,
      +        "type": "array"
      +      },
      +      "message": {
      +        "type": "string"
      +      },
      +      "next": {
      +        "const": "get_product_operation"
      +      },
      +      "poll_after_seconds": {
      +        "const": 5
      +      },
      +      "progress": {
      +        "additionalProperties": false,
      +        "properties": {
      +          "completed_frames": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "finished_steps": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "total_frames": {
      +            "minimum": 0,
      +            "type": "integer"
      +          },
      +          "total_steps": {
      +            "minimum": 0,
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "completed_frames",
      +          "total_frames",
      +          "finished_steps",
      +          "total_steps"
      +        ],
      +        "type": "object"
      +      },
      +      "quote": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "analysis_credits": {
      +                "const": 0
      +              },
      +              "aspect_ratio": {
      +                "enum": [
      +                  "1:1",
      +                  "16:9",
      +                  "9:16",
      +                  "4:3",
      +                  "3:4"
      +                ]
      +              },
      +              "count": {
      +                "enum": [
      +                  1,
      +                  4
      +                ]
      +              },
      +              "currency": {
      +                "const": "ai_credits"
      +              },
      +              "description_credits": {
      +                "enum": [
      +                  0,
      +                  1
      +                ]
      +              },
      +              "free_photo_used": {
      +                "const": false
      +              },
      +              "maximum": {
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "model": {
      +                "enum": [
      +                  "nano",
      +                  "nano2",
      +                  "nano-pro",
      +                  "gemini",
      +                  "seedream",
      +                  "lite"
      +                ]
      +              },
      +              "per_image": {
      +                "minimum": 0,
      +                "type": "integer"
      +              },
      +              "quality": {
      +                "enum": [
      +                  "standard",
      +                  "high"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "currency",
      +              "per_image",
      +              "maximum",
      +              "count",
      +              "model",
      +              "quality",
      +              "aspect_ratio",
      +              "description_credits",
      +              "analysis_credits",
      +              "free_photo_used"
      +            ],
      +            "type": "object"
      +          },
      +          {
      +            "additionalProperties": false,
      +            "properties": {
      +              "analysis_credits": {
      +                "const": 0
      +              },
      +              "currency": {
      +                "const": "ai_credits"
      +              },
      +              "description_credits": {
      +                "const": 1
      +              },
      +              "kind": {
      +                "const": "description"
      +              },
      +              "maximum": {
      +                "const": 1
      +              }
      +            },
      +            "required": [
      +              "kind",
      +              "currency",
      +              "maximum",
      +              "description_credits",
      +              "analysis_credits"
      +            ],
      +            "type": "object"
      +          }
      +        ]
      +      },
      +      "request_id": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "awaiting_confirmation",
      +          "approved",
      +          "denied",
      +          "running",
      +          "complete",
      +          "partial",
      +          "failed",
      +          "unknown"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "request_id",
      +      "status",
      +      "progress",
      +      "frames",
      +      "description",
      +      "analysis",
      +      "credits_charged",
      +      "next",
      +      "poll_after_seconds"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations only declare non-read-only, open-world, idempotent and non-destructive; the description adds substantially more — credit cost, a server-side spending permission or per-owner approval gate, consent and rate limits, and the fact that a stable request_id prevents duplicate work. The only gap is that it says 'Costs 1 AI credit' while the schema exposes a free-form expected_credits field, leaving the agent unsure whether cost is fixed or caller-declared.

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?

Three tight sentences, front-loaded with the outcome before the cost and lifecycle details. Dense but every clause carries information; the only weakness is the telegraphic 'Optional reference analysis.' fragment, which is terse to the point of ambiguity.

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?

An output schema exists so return values need no explanation, and the async polling path is disclosed. But for an 8-parameter tool with nested objects and zero schema descriptions, the absence of any guidance on the product object's contents or the confirm_spend/expected_credits contract leaves meaningful gaps before a correct first call.

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

Parameters2/5

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

Schema description coverage is 0% across 8 parameters including a nested product object, so the description carries the full burden. It only illuminates two of them — request_id as an idempotency key and analyze_reference via 'Optional reference analysis' — leaving product fields, locale, note, confirm_spend and expected_credits entirely unexplained.

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 concrete outputs: 'Write a factual product title, summary and benefit bullets,' plus the backend that executes it. An agent knows exactly what artifact is produced, though nothing distinguishes it from nearby generation siblings such as generate_ad_copy.

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

Usage Guidelines3/5

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

Prerequisites are well covered (spending permission or owner approval, AI consent, rate limits) and the follow-up path 'poll get_product_operation' is named, which is useful routing. However, there is no statement of when to choose this over alternative generation tools, nor any exclusion or precondition on the product input itself.

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.