Skip to main content
Glama

Add an existing phrase to a collection

add_to_collection
Idempotent

Add a phrase the user already saved (by id from list_phrases) to a collection (by id from list_collections). To save a brand-new phrase, use add_phrases with collection_id instead.

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": {
      "phrase_id": "<phrase_id>",
      "collection_id": "<collection_id>"
    },
    "name": "add_to_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
nativeNoNative-language code. Defaults to the primary profile.
targetNoTarget-language code. Defaults to the primary profile.
phrase_idYesId of a saved phrase.
collection_idYesCollection id from list_collections / create_collection.

Output Schema

NameRequiredDescriptionDefault
urlYes
statusYes
phraseIdYes
collectionIdYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=true and openWorldHint=false, so the agent knows this is a safe, repeatable local write. The description adds that the target phrase must already exist, but says nothing further about duplicate handling, permission requirements, or side effects beyond the annotations. Given rich annotation coverage, a 3 is appropriate.

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 sentences, zero filler, with the primary behavior front-loaded and the disambiguation sentence immediately after. Every clause carries information the agent needs.

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 simple two-required-parameter linking tool with full schema documentation, rich annotations, and an output schema, the description covers purpose, id provenance, and the main alternative. Nothing an agent needs in order 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 the baseline is 3, but the description adds provenance not present in the schema: phrase_id comes from list_phrases and collection_id from list_collections. The optional native/target language overrides are not addressed in the description, keeping it below 5.

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?

The description states a specific verb and resource ('Add a phrase ... to a collection') and scopes it to phrases the user already saved. It also names the sibling tools where each id comes from, so an agent can distinguish it from add_phrases without opening either schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use guidance (phrase already saved, id from list_phrases) and an explicit when-not with the alternative named ('To save a brand-new phrase, use add_phrases with collection_id instead'). Nothing is left to inference.

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