Skip to main content
Glama

Last Price

set_product_category

DestructiveIdempotent

Confirm or change the category of one of your workspace's products: product_id is the product id your quotes send (or a store item's SKU), category_id is an id from the tree list_product_categories returns, at any level. Replaces any earlier category for that product and answers with the same body as list_product_categories. Needs a Last Price credential with routing write scope. Needs a claimed workspace: a sandbox key from self-registration is refused (403) until a person claims the workspace.

Input Schema

NameRequiredDescriptionDefault
product_idYesThe product id, as quotes send it in context.product_id, or a store item's SKU.
category_idYesA category id from the tree list_product_categories returns, for example api-metering.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Adds substantial behavior beyond the annotations: it replaces any earlier category (consistent with destructiveHint/replace semantics), returns the same body as list_product_categories, requires a Last Price credential with routing write scope, and fails with 403 for self-registered sandbox keys until the workspace is claimed. That error/permission detail is exactly what annotations cannot express.

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?

Front-loaded with the action, then semantics, then response, then auth and error conditions — good ordering. It is a dense single paragraph that packs prerequisites and error behavior into one block, slightly reducing scannability but with essentially no filler.

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 two-parameter mutation with no output schema, it covers replacement semantics, the return shape by reference, auth scope, and the 403 claim failure mode. The return value is only described indirectly ('same body as list_product_categories'), which requires the agent to know that tool's shape, but nothing needed to call it correctly is missing.

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?

Schema coverage is 100%, so baseline is 3; the description earns more by clarifying that product_id may be a quote's product id OR a store item's SKU, and that category_id can be taken at any level of the tree, not just leaves. It doesn't add format examples beyond the schema's own example.

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?

States a specific verb+resource ('Confirm or change the category of one of your workspace's products') and disambiguates against list_product_categories, whose output is the source of category_id. An agent can tell immediately what this tool does and where it sits relative to the read-side sibling.

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?

Establishes the workflow prerequisite (category_id must come from list_product_categories, at any level) and the account prerequisites (routing write scope, claimed workspace). It does not explicitly say when NOT to use it or name a competing tool for alternate category workflows, so it falls short of a 5.

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