Skip to main content
Glama

Add product to favorites

favorites_add
Idempotent

Add one canonical product, optionally with a selected configuration, to favorites. Copy collection, channel, source, and sourceSchemaVersion from the product card when available.

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": {
      "itemId": "<itemId>"
    },
    "name": "favorites_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemIdYes
sourceNo
channelNo
collectionNo
configurationIdNo
sourceSchemaVersionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / channel
      Added value: +{
      +  "enum": [
      +    "category",
      +    "home",
      +    "image",
      +    "pinterest",
      +    "search",
      +    "similar",
      +    "supplier"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / collection
      Added value: +{
      +  "maxLength": 64,
      +  "type": "string"
      +}
    • addedInput schema / properties / source
      Added value: +{
      +  "maximum": 2147483647,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedInput schema / properties / sourceSchemaVersion
      Added value: +{
      +  "const": 1,
      +  "type": "number"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior3/5

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

Annotations already declare destructiveHint=false, idempotentHint=true, and openWorldHint=false, so the safety and repeat-call profile is covered. The description adds the notion of 'one canonical product' and metadata provenance from the product card, but says nothing about what happens when the item is already favorited, limits, or auth requirements.

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?

Two tight sentences: the core action first, the parameter-sourcing hint second. Nothing redundant, nothing buried.

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 six-parameter additive tool with annotations covering idempotency and non-destructiveness and no output schema, the description covers the essential call-shaping information. It is only slightly short on error/edge-case behavior and authentication context.

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?

With 0% schema description coverage, the description must carry the load, and it does add meaning: it names four of the six fields and tells the agent where to source their values (the product card), which is the key ambiguity. The remaining gap is that the channel enum values and the meaning of source/sourceSchemaVersion are still unexplained.

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?

States a specific verb (add) and resource (one canonical product, optionally with a configuration) to favorites, which cleanly separates it from favorites_list and favorites_remove. It does not explicitly name those siblings, but the operation is unambiguous from the verb.

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 second sentence gives a concrete usage instruction: copy collection, channel, source, and sourceSchemaVersion from the product card 'when available'. That is real guidance on how to populate optional fields, but there is no statement of when to prefer this over alternatives, or of prerequisites such as being signed in.

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