Skip to main content
Glama

add_inventory_product_photo

Add a photo to an inventory product by providing a local file path, remote URL, or base64 data.

Instructions

Add a photo to an inventory product using Huly's product photos collection. Provide exactly one of filePath, fileUrl, or data.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
productYesInventory product ID or exact product name. Pass category when duplicate product names may exist.
categoryNoOptional category ID or exact category name used to disambiguate duplicate product names.
filenameYesName of the file to attach to the inventory product.
contentTypeYesMIME type of the file, such as image/png or application/pdf.
filePathNoLocal file path to upload. Mutually exclusive with fileUrl and data.
fileUrlNoRemote URL to fetch and upload. Mutually exclusive with filePath and data.
dataNoBase64-encoded file data for small files. Mutually exclusive with filePath and fileUrl.
descriptionNoOptional media description. Use null on update to clear it.
pinnedNoWhether the media item should be pinned.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYesThe successful tool result. The same value is also serialized as JSON in the text content for clients that do not read structuredContent.
warningsNoOptional agent-visible warnings about degraded result fidelity. Omitted when the server returned the documented happy-path payload.
Behavior3/5

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

Annotations already indicate a mutating operation (readOnlyHint=false). The description adds the mutual exclusivity constraint for file sources but does not disclose other behavioral details such as error handling on missing product or response format. No contradiction with annotations.

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?

The description is two sentences with no wasted words: the first states the core purpose and collection, the second gives critical usage guidance. Efficient and front-loaded.

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?

For a creation tool with an output schema and full parameter documentation, the description is mostly complete. It could mention the behavior of the description parameter on update (as noted in schema), but this is minor. Overall adequate.

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 well-documented. The description reinforces the mutual exclusivity of filePath/fileUrl/data but does not add new meaning beyond the schema. Baseline score of 3 is appropriate.

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?

The description clearly states the action ('Add a photo to an inventory product') and specifies the collection ('Huly's product photos collection'), distinguishing it from sibling tools like add_inventory_product_attachment which may handle other file types.

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?

The description implies usage for adding photos specifically but does not explicitly contrast with alternatives like add_inventory_product_attachment or specify when not to use it. No when-to-use or exclusions are provided.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dearlordylord/huly-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server