Skip to main content
Glama

Add items to folder

add_items_to_folder
Idempotent

Add listings, shops, or keywords to a favorite folder.

folder_id comes from create_favorite_folder or list_favorite_folders. items are the PUBLIC handles matching the folder's kind:

  • listing folder -> listing_id values (e.g. "1234567890")

  • shop folder -> shop_name values (e.g. "MyShopName")

  • keyword folder -> the keyword text (e.g. "custom dog collar") (These are the same handles returned by get_listings / get_shops / get_keywords.) Adding an item already in the folder is a no-op.

Returns {folder: {...}, added: [...], already_present: [...], not_found: [...]} echoing the handles back. not_found = handles that didn't match anything. If the user's plan favorite limit would be exceeded (shops/keywords), returns a 403-style error with suggested_upgrade and no items are added.

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": {
      "folder_id": "<folder_id>",
      "items": "<items>"
    },
    "name": "add_items_to_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYes
folder_idYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the return envelope (folder/added/already_present/not_found), the meaning of not_found, a 403-style plan-limit failure with suggested_upgrade, and the guarantee that no items are added on that failure. The duplicate no-op statement is consistent with idempotentHint and non-destructive framing.

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-loads the purpose, then uses bullets for the kind-to-handle mapping, which is easy to scan. The closing paragraph restates the return shape that an output schema already covers, though the not_found and 403 semantics it adds are not wasted.

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

Completeness5/5

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

For a two-parameter mutation tool with an output schema, the description supplies everything an agent needs: parameter sourcing, per-kind value formats, idempotency behavior, partial-success reporting, and error semantics. No material gap remains.

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

Parameters5/5

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

Compensates fully for 0% schema description coverage: it explains where folder_id comes from and specifies exactly what the items strings must be per folder kind, with worked examples and a pointer to get_listings/get_shops/get_keywords for obtaining the handles.

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 and resource ('Add listings, shops, or keywords to a favorite folder') and immediately disambiguates the three folder kinds the tool spans. An agent can tell this apart from list/create/remove folder siblings without opening any schema.

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?

Provides concrete prerequisites, naming create_favorite_folder and list_favorite_folders as the sources of folder_id, and clarifies that duplicate adds are a no-op. It does not explicitly point at remove_items_from_folder as the inverse operation or state when not to use it, so guidance is strong but not exhaustive.

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