Skip to main content
Glama

Add a post to the queue

queue_add
Destructive

Queue a draft for the next free posting time, to every account in it, without choosing a date. Call it only after the user said yes to this post; tell them the time it was given. The time is the next of the saved posting times at which none of the draft’s accounts already has a post. Answers one delivery per account in state queued, with its scheduledAt. Refused when no posting times are saved yet (queue_set) or when every one the plan can schedule for is taken.

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": {
      "id": "<id>",
      "version": "<version>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "queue_add"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe draft id.
brandIdNoThe brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.
versionYesThe draft’s version as you last read it. A different number is refused, so nothing goes out with content the user did not see.
idempotencyKeyYesA key you make up for this one request, 8 to 200 characters (a UUID works). Repeating the request with the same key answers the same deliveries and never posts twice, so reuse it after a timeout. A key already used for another draft, version or time is refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / brandId
      Added value: +{
      +  "description": "The brand this is for, by its id from brands_list. Needed when the login has more than one brand; with one brand it can be left out.",
      +  "maxLength": 80,
      +  "minLength": 1,
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior3/5

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

Better than the annotations alone: the description explains the scheduling rule (next saved posting time not already used by the draft's accounts), the one-delivery-per-account result with scheduledAt, and two refusal conditions. That covers notable behavior, but it does not state what other posts exist only after the call or how to handle a partial refusal the way the idempotency text suggests.

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?

Three sentences, front-loaded with the core action, followed by the precondition and then the result/refusal contract. Every sentence carries an actionable fact and there is no filler.

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?

There is no output schema, so the description must state the return shape, and it does ('one delivery per account in state queued, with its scheduledAt'). Together with prerequisites and refusal conditions, it gives an agent everything needed to call this queueing tool correctly.

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%, so the parameters are already documented and the description is not required to explain them. It adds one useful clarification — accounts come from the draft, not from the request — but says nothing about version or idempotencyKey beyond what the schema states, so baseline 3 fits.

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 uses a specific verb and resource ('Queue a draft') and immediately scopes the behavior: 'for the next free posting time, to every account in it, without choosing a date.' That contrasts with a date-picking sibling and makes the fan-out to all accounts unambiguous before any schema is opened.

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 an explicit precondition — 'Call it only after the user said yes to this post' — plus a follow-up duty ('tell them the time it was given'), and names when the call is refused (no saved posting times, or all slots taken). It even points at queue_set as the prerequisite when no posting times exist, which is clear 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.