Skip to main content
Glama

Write a caption in the brand voice

write_caption

Write a post caption from an idea, using this organization's brand voice (business description, tone and knowledge base). Prefer it over writing the copy yourself: it knows the brand, you do not. Costs 2 AI credits per call (from the monthly pool; nothing with the organization's own AI key). SPENDS AI CREDITS ONLY WITH confirm: true. Call it first without confirm: nothing runs and nothing is charged, you get the quote (what it will do and the credits). Tell the user, in your own words, exactly that — including the options you chose, so they can change them — and wait for a clear yes before calling again with the same arguments and confirm: true. One yes covers the plan they approved (e.g. every line of an approved voice-over with the chosen voice); anything new or different needs a new yes.

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": {
      "idea": "<idea>"
    },
    "name": "write_caption"
  }
}

Input Schema

NameRequiredDescriptionDefault
ideaYesWhat the post is about.
confirmNotrue ONLY after the user said yes to the quote (what it does and the credits). Without it nothing runs and nothing is charged.
languageNoOutput language (e.g. "es", "en"). By default it follows the language of the idea.
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing the cost model (2 AI credits from the monthly pool, nothing when using the org's own key), the hard spend gate on confirm: true, the two-phase quote-then-execute flow, and how idempotencyKey recovers from a timed-out call. The only gap is that it never says what a successful (confirmed) response contains, only what the quote contains.

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 purpose and cost, and the confirm protocol is sequenced in execution order, which is the right structure for a multi-step flow. It is dense but the repetition of "nothing runs and nothing is charged" (also in the schema) and the slightly sprawling closing sentence cost it a point.

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 paid, side-effecting, open-world tool with no output schema, the definition covers what an agent needs: when to use it, that it costs credits, that it is inert without confirm, what the unconfirmed response gives back, and how to safely retry. Nothing material 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; the description earns an extra point by explaining the intent behind confirm (spend authorization, quote-first protocol) and the scope of one approval covering repeated lines. It adds little about idea, language or workspaceId beyond the schema, which is acceptable given the schema already documents them.

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 ("write a post caption from an idea") and names the differentiator — the organization's brand voice built from business description, tone and knowledge base. This separates it cleanly from siblings like adapt_caption and translate_caption, which operate on existing copy.

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?

Explicitly says to prefer it over writing copy yourself and explains why ("it knows the brand, you do not"). It also gives a complete usage protocol: call without confirm first, relay the quote to the user including chosen options, then re-call with identical arguments and confirm: true, and it defines the scope of a single approval.

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