Skip to main content
Glama

Post Searchproduct Optimize

hgr_post_searchproduct_optimize
Destructive

Dedicated HGRApi tool for POST api/SearchProduct/Optimize. This is an explicit tool with a fixed endpoint; it is not a generic endpoint caller. HGRApi functional documentation: Purpose: Provides the POST optimize operation in existing published product/listing management. Use when: Use it when a client needs to run the optimize operation for existing published product/listing management. Input: [FromBody] data: OptimizeRequest. Main fields: ListingId: int?, ProductSourceId: int?, CurrentTitle: string, OptimizeTitle: bool, OptimizeDescription: bool, OptimizeFields: bool. Header channel: current ChannelOAuthId. Output: Returns the result or applies the effect of the optimize operation. Search terms: searchproduct optimize. Send the exact request payload in body. Requires confirmed=true before execution. Requires HGRApi Header channel / ChannelOAuthId resolved internally.

Input Schema

NameRequiredDescriptionDefault
bodyYesHGRApi POST /api/SearchProduct/Optimize request body.
confirmedYesMust be true after the user explicitly requested or confirmed the exact action.
channelOAuthIdYesChannelOAuthId returned by hgr_list_channels for the selected visible store.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/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 partly covered. The description adds the important requirement 'Requires confirmed=true before execution' and notes ChannelOAuthId resolution, but it does not say what exactly gets overwritten or whether optimization is reversible.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The text is structured with Purpose/Use when/Input/Output labels and is front-loaded, but it wastes space on boilerplate ('Dedicated HGRApi tool... not a generic endpoint caller') and repeats the same idea in the Purpose and Use when sections. The 'Search terms' line adds little for an agent.

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 destructive mutation, the description covers confirmation, authentication channel, and body fields, and an output schema exists so return details need not be restated. However, it omits what the optimization changes, whether it is AI-driven, and what side effects occur on published listings, leaving meaningful gaps.

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

Parameters4/5

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

The input schema leaves 'body' as an opaque object with no nested properties, so the description's enumeration of ListingId, ProductSourceId, CurrentTitle, OptimizeTitle, OptimizeDescription, and OptimizeFields is valuable information not otherwise available. The confirmed and channelOAuthId parameters are also contextualized, though the descriptions remain brief.

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?

The description states a specific verb and resource (POST optimize operation in existing published product/listing management) and enumerates the body fields that define the optimization (ListingId, CurrentTitle, OptimizeTitle, etc.). It is clearer than a generic endpoint wrapper, though it does not explain what 'optimize' actually does to the listing beyond field names.

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

Usage Guidelines2/5

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

The 'Use when' sentence is essentially circular: 'Use it when a client needs to run the optimize operation.' It gives no exclusions and does not distinguish this tool from nearby siblings such as hgr_post_channellisting_optimizespecificfields or hgr_update_ai_publisher_optimization.

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.

Resources