Skip to main content
Glama

Share content for human approval

approvals_preview_create

[writes flayr data · write scope] Create a revocable preview for posts, a sample, campaign, section or calendar. kind post or sample takes 1–300 contentIds (several posts may share one preview, each decided separately); campaign needs campaignId, section needs campaignId+sectionId, calendar needs from/to (at most 92 days; posts booked without a saved render are included as post items). A preview holds at most 300 items; the human view pages 50 at a time and offers "Approve all in this preview" (an OK on every open item, under the brand approval policy; refused items are skipped and listed). Full description and schema: describe_tool {"name":"approvals_preview_create"}. (Wraps POST /api/v2/approval-previews.)

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": {
      "brandId": "<brandId>",
      "title": "<title>",
      "kind": "<kind>"
    },
    "name": "approvals_preview_create"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoe.g. 1. Exclusive calendar end; at most 92 days after from.
fromNoe.g. 1. Calendar start, Unix milliseconds.
kindYese.g. "post". Item category.
slotsNoe.g. [{"contentId":"contentId_123","at":"2026-11-20T12:00:0… Each item: contentId, at.
titleYese.g. "Summer collection". Display title.
brandIdYese.g. "brandId_123".
sectionIdNoe.g. "sectionId_123". Required for section.
campaignIdNoe.g. "campaignId_123". Required for campaign and section.
contentIdsNoe.g. ["Example"].
expiresInHoursNoe.g. 24. Hours until the approval preview expires.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / brandId / description
      Previous value: -"e.g. \"brandId_123\". Brand identifier from list_brands; use a real ID."New value: +"e.g. \"brandId_123\"."
    • changedInput schema / properties / contentIds / description
      Previous value: -"e.g. [\"Example\"]. Saved content IDs (1–50) for post or sample previews. Several posts may share one post preview."New value: +"e.g. [\"Example\"]."
    • changedInput schema / properties / slots / description
      Previous value: -"e.g. [{\"contentId\":\"contentId_123\",\"at\":\"2026-11-20T12:00:00-06:00\"}]. post/sample only: a proposed slot per item. Each item: contentId, at."New value: +"e.g. [{\"contentId\":\"contentId_123\",\"at\":\"2026-11-20T12:00:0… Each item: contentId, at."
    • changedInput schema / properties / to / description
      Previous value: -"e.g. 1. Exclusive calendar end; at most 31 days after from."New value: +"e.g. 1. Exclusive calendar end; at most 92 days after from."
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the generic write profile (readOnly=false, destructive=false, idempotent=false, openWorld=false); the description adds real behavioral substance: the preview is revocable, holds at most 300 items, pages 50 at a time, and surfaces an 'Approve all in this preview' action governed by the brand approval policy with refused items skipped and listed. It also names the required write scope, which is operational context the annotations do not 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?

Front-loaded with the write-scope tag and the core action, then proceeds through kind-specific requirements in a single dense paragraph with no filler sentences. The nested parentheticals and semicolon-separated clauses make it harder to scan than a bulleted structure would, but every clause carries information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter, non-idempotent write tool with no output schema, the description covers the mutation's effects, limits, expiry concept, and post-creation human workflow well. It never states what the caller receives back (preview id or URL) and defers 'full description and schema' to describe_tool, which leaves a small gap.

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 cross-parameter meaning the flat schema cannot express: which identifiers are mandatory per kind, the 1–300 contentIds bound, the 92-day calendar window, and the 300-item preview cap. This conditional logic is what makes the input schema callable correctly.

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 revocable preview') and enumerates the five item categories it can scope over, plus the underlying endpoint. An agent can distinguish it from approvals_preview_get or approvals_decide 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?

Gives explicit per-kind conditions for invocation (post/sample need 1–300 contentIds, campaign needs campaignId, section needs campaignId+sectionId, calendar needs from/to within 92 days), which effectively routes the agent among the five modes. It stops short of saying when to prefer this over approvals_decide or approvals_tray_book, so it is clear context without exclusions.

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