Skip to main content
Glama

Approve or reject pending immediate publications

decide_immediate_publications
DestructiveIdempotent

Applies approve or reject to supplied existing pending_approval publication jobs whose dispatchMode is immediate. Exact scheduleId, expectedUpdatedAt and expectedPublicationHash values correspond to list_pending_publications; get_context returns full Post text when a preview is truncated. The confirmation marker is specific to the selected decision and the request carries the user's choice for this exact batch. Approval applies SuperPost's existing workspace policy and releases the same queued job for immediate dispatch; rejection cancels that job. No new or replacement job is created. Revisions, content hashes, workspace ownership and current policy are rechecked, and results report each item independently. Each existing schedule is atomically resolved from pending_approval, so an exact retry reports already_resolved instead of resolving it again; idempotencyKey is a request correlation label, not a persisted decision ledger. Distinct batches have fresh keys and an exact retry reuses the same key. Requires the separate publish permission.

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": {
      "idempotencyKey": "<idempotencyKey>",
      "publications": "<publications>",
      "decision": "<decision>",
      "confirmation": "<confirmation>"
    },
    "name": "decide_immediate_publications"
  }
}

Input Schema

NameRequiredDescriptionDefault
decisionYes
confirmationYes
publicationsYes
idempotencyKeyYes

Output Schema

NameRequiredDescriptionDefault
resultsYes
decisionYes
failedCountYes
dispatchModeYes
idempotencyKeyYes
succeededCountYes
alreadyResolvedCountYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: approval applies existing workspace policy and releases the already-queued job, rejection cancels it, no replacement job is created, and revisions/hashes/ownership/policy are rechecked with per-item results. It also discloses the atomic pending_approval resolution and that an exact retry returns already_resolved, plus that a separate publish permission is required — none of which the annotations carry.

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?

Purpose and scope are front-loaded in the first sentence, and the remaining sentences each carry distinct operational facts. There is some redundancy — 'the request carries the user's choice for this exact batch' restates the confirmation-marker sentence, and the idempotency discussion runs long.

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 destructive, non-idempotent-looking batch mutation with an output schema (so return shapes need not be described), the description covers permissions, policy re-evaluation, atomicity, retry semantics, and partial per-item outcomes. Nothing an agent needs to invoke it safely and 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 description coverage is 0%, so the description must compensate, and it largely does: it names the source of the three optimistic-concurrency fields, explains the confirmation marker must match the selected decision, and clarifies that idempotencyKey is a correlation label rather than a persisted ledger, with retry-reuse rules. It does not spell out the approve/reject enum or per-item limits, but the meaning added over the raw schema is substantial.

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 pair (approve/reject) applied to a specific resource (existing pending_approval publication jobs) with an explicit scope constraint (dispatchMode is immediate). That scope constraint is what separates it from decide_scheduled_publications in the sibling list, so an agent can route correctly without opening 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?

It directs the agent upstream to list_pending_publications for the exact scheduleId/expectedUpdatedAt/expectedPublicationHash values and to get_context when a preview is truncated, which is concrete when-to-use guidance. It also implies the scheduled variant is out of scope via 'dispatchMode is immediate', but never states the exclusion outright for the similarly-named sibling.

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