Skip to main content
Glama

add_to_collection

Group a connected account into a collection (a named set of accounts, e.g. "acme" spanning its X + Instagram). CREATES the collection if the name is new, so this is also how you create one. Then schedule_post can post to the whole group via its collection field. Pass accountId (an integration id from list_integrations) and collection (the group name). Call list_integrations to see current groupings (each account shows its collection). To ungroup an account, pass an empty collection name. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.

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": {
      "accountId": "<accountId>",
      "collection": "<collection>"
    },
    "name": "add_to_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
accountIdYesIntegration id of the account to group (from list_integrations).
collectionYesCollection name. Created if it does not exist yet. Empty string ungroups the account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations declare a non-readonly, non-destructive, non-idempotent write, and the description adds meaningful context beyond them: that a new collection is created as a side effect, that an empty string reverts the grouping, and the draft capability note about audience reach. It doesn't cover permission requirements or whether re-adding an already-grouped account errors versus no-ops, which matters given idempotentHint=false.

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 core action and the surprising create-on-write behavior, then routing info. The CAPABILITY/draft-token sentence is somewhat boilerplate but does convey a safety property, so it earns most of its space.

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 write tool with no output schema, the description covers creation side effects, the ungroup path, discovery of existing groupings, and the downstream use in scheduling. An agent has everything needed to call it correctly on the first attempt.

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 100% and the schema descriptions already state 'Integration id ... from list_integrations', 'Created if it does not exist yet', and 'Empty string ungroups', which the prose largely repeats. The only marginal addition is tying accountId provenance to list_integrations and the schedule_post linkage, so the baseline 3 applies.

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 ('Group a connected account into a collection') and immediately clarifies the create-on-write semantics ('CREATES the collection if the name is new'). It also names siblings it interoperates with (list_integrations, schedule_post), so an agent can place it in the workflow without opening other schemas.

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?

Explicit when-to-use is given (grouping accounts, also the creation path), along with the discovery step ('Call list_integrations to see current groupings') and the inverse operation ('To ungroup an account, pass an empty collection name'). It also names the downstream consumer (schedule_post via its collection field), which is real routing 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.