upload_product_icon
Upload a product icon/logo (base64-encoded JPEG/PNG/WebP, max 2MB).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | ||
| content_type | Yes | ||
| image_base64 | Yes |
Upload a product icon/logo (base64-encoded JPEG/PNG/WebP, max 2MB).
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | ||
| content_type | Yes | ||
| image_base64 | Yes |
Changes observed during successful MCP inspections.
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden, and it does disclose a real behavioral constraint absent from the schema: a 2MB maximum and the accepted image formats. However, it omits what a mutation tool really needs to convey — whether re-uploading replaces an existing icon, idempotency, required permissions, and failure modes.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single sentence with zero filler, front-loading the action and resource before the encoding/size constraints. Nothing could be trimmed without losing information.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 3-parameter, 0%-coverage mutation tool with no annotations and no output schema, the description covers the image payload reasonably but leaves the product_id parameter, replacement semantics, and likely error conditions undocumented. Adequate minimum, but not complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate; it partially does by clarifying that image_base64 must be base64-encoded and by naming the accepted formats that map to the content_type enum. It says nothing about product_id (format, where it comes from) and gives no guidance on when to prefer jpeg vs jpg vs png vs webp.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description gives a specific verb (upload) plus the resource (product icon/logo), so the operation is unmistakable and clearly distinct from siblings such as remove_product_icon, create_product, and update_product. It does not explicitly name or contrast those siblings, which keeps it short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no statement of when to use this tool versus alternatives; the agent must infer from the name that this sets an existing product's icon while remove_product_icon clears it. No preconditions (e.g., product must exist / ownership) are mentioned.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Add one secure layer between your agents and this server.