Skip to main content
Glama

Create favorite folder

create_favorite_folder
Idempotent

Create a favorite folder to organize favorites of one kind.

type is 'listing', 'shop', or 'keyword' — a folder holds only that kind. name is whatever the user calls it, e.g. 'red tshirt'.

Idempotent: if a folder with this name already exists for this type it is returned as-is (never duplicated) — safe to call before adding items.

Returns {folder: {id, name, type, ...}, created: true|false} (created:false means an existing folder was reused). Then pass folder.id to add_items_to_folder. If the user's plan folder limit is reached, returns a 403-style error with a suggested_upgrade.

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": {
      "type": "<type>",
      "name": "<name>"
    },
    "name": "create_favorite_folder"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
typeYes

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 naming the plan limit failure mode (403-style error with suggested_upgrade) and spelling out the idempotent reuse semantics (returns existing folder as-is, never duplicated). It also describes the return shape and the meaning of created:true/false, which annotations alone cannot convey.

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 purpose, then constraint, then behavior, then next step — a sensible order. The return-shape line partially duplicates the existing output schema, though the created:false explanation and error case justify most of that wording.

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?

Covers what an agent needs: purpose, the enum's semantic constraint, idempotency, error behavior, and the follow-up call. With an output schema present, the description need not say more about return values, and the remaining gap (no alternatives named) is minor.

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?

Schema description coverage is 0%, so the description carries the full burden and does so: it explains that type constrains what the folder may hold and that name is a free-form user label with a concrete example ('red tshirt'). Both required parameters gain meaning beyond the bare schema.

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 ('Create a favorite folder') plus the scoping rule that a folder holds only one kind ('listing', 'shop', or 'keyword'). This distinguishes it cleanly from add_items_to_folder, rename_favorite_folder, and list_favorite_folders without needing the 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?

Gives a clear workflow context: it is 'safe to call before adding items' and the resulting folder.id should be passed to add_items_to_folder. The idempotency note removes the need for a pre-check. It stops short of naming alternatives for lookup-only cases (e.g. list/get folder), so no explicit when-not guidance.

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