Skip to main content
Glama

Classify a product

set_product

What a product an assistant names is for this site: competitor (tracked), not_competitor (left out of its lists) or same_product (counted as same_as). This site's call; uses no answers.

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": {
      "site_id": "<site_id>",
      "name": "<name>",
      "as": "<as>",
      "note": "<note>"
    },
    "name": "set_product"
  }
}

Input Schema

NameRequiredDescriptionDefault
asYes
nameYes
noteYesWhy; the user reads it in Activity.
same_asNoFor same_product: the product it counts as.
site_idYesThe site's id, from get_account or list_sites.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.5/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, openWorldHint=false, so the safety profile is partly covered, but the description adds little: it never says whether re-classifying an already-classified product overwrites the prior value, whether the change is reversible, or what happens if the name doesn't match an existing product. 'Uses no answers' hints at a quota/consumption side effect but is too cryptic to be relied on. For a write tool this leaves meaningful behavioral questions unanswered.

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?

It is short, but the single run-on sentence with a broken subject makes the reader parse twice, and the cryptic trailing clause 'This site's call; uses no answers' costs words without paying off. The category semantics are the useful content and are buried mid-sentence rather than front-loaded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is a 5-parameter mutation tool with 4 required fields and no output schema, so the description carries real weight. It omits what the tool returns, how re-classification behaves, whether name must reference an existing product, and how it relates to undo_product. Given that complexity, the one-sentence description is under-specified.

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 60%, and the description usefully expands the three enum values with their real-world consequence, which the bare enum strings do not convey; it also ties same_product to the same_as parameter. However, the required 'name' parameter is described only as 'a product an assistant names', leaving unresolved whether it must match an existing product exactly. The 'note' and 'site_id' parameters are covered by schema descriptions only.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description conveys that the tool assigns one of three classifications to a named product for a site, and the parenthetical glosses (tracked / left out of its lists / counted as same_as) make the categories concrete. However, the opening clause 'What a product an assistant names is for this site' is grammatically garbled and restates the title 'Classify a product' rather than stating the action directly. It also gives no hint of how it differs from the sibling undo_product.

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?

There is no explicit when-to-call guidance, no prerequisite stated, and no mention of alternatives such as undo_product for reversing a classification. The fragment 'This site's call; uses no answers' is opaque and reads more like an internal note than actionable usage direction. The only usable guidance is implicit in the enum glosses, which help pick a value but not decide whether to call the tool.

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