Skip to main content
Glama

Generate Text

generate_text
Destructive

Write copy for a brand. content writes a post or article draft and saves it (to reword that post later, edit it with save_post(action=post, postId), do not generate_media(action=media) again); turbo runs a batch and needs approval; repurpose turns an existing post into new ones; enhance rewrites a prompt before media generation. Pass brandId. Saved drafts are never published. Variable cost: 0–4800 credits per call.

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": {
      "action": "<action>",
      "input": "<input>"
    },
    "name": "generate_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
inputYesThe fields of the chosen action.
actionYescontent: Generate brand-voice text from a topic or brief. turbo: Generate a branded Turbo run of images/videos/carousels using count, platforms and date range. repurpose: Create another-channel draft from a post. enhance: Preview Studio/Agent media enhancement with effective organization/brand settings and pack metadata.
organizationNoOrganization this call acts in: its name, slug or id from get_context(action=organizations). Required when the connection covers several organizations (a call without it is refused with the list of organizations and their brands); a connection limited to one organization works inside it, so leave this argument out there (naming any organization is refused).

Output Schema

NameRequiredDescriptionDefault
dataNo
messageNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Adds real context beyond the annotations: drafts are saved but 'never published' (scoping the destructiveHint=true), turbo requires approval, and cost is '0–4800 credits per call' — useful variable-cost and gating info. However, it doesn't explain what gets overwritten or lost on a repeat call, which matters most given destructiveHint=true and 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-loads the purpose and packs the essentials (alternatives, approval, cost, publication state) into a few lines with no filler. Structure suffers from semicolon-chained clauses and a confusing parenthetical referencing generate_media, which costs readability.

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

Completeness3/5

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

Output schema and annotations exist, and the description covers approval, cost, and publication status for a complex four-branch tool. It omits what the content/enhance branches actually return and any organization-selection guidance, leaving some gaps for a tool with this many nested action shapes.

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 description coverage is 100%, so the branch-specific fields are already fully documented; the description only adds 'Pass brandId' and per-action summaries. It offers no supplementary semantics for the required action/input pairing or the organization parameter, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a concrete verb and resource ('Write copy for a brand') and then enumerates the four action modes (content, turbo, repurpose, enhance) with one-line meanings, so an agent can distinguish branches. The wording gets muddled where it references siblings inline ('do not generate_media(action=media) again'), which blurs rather than sharpens the tool's own identity.

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 routing for the key fork: 'to reword that post later, edit it with save_post(action=post, postId)' instead of regenerating, and notes turbo 'runs a batch and needs approval'. It stops short of stating general when-not-to-use conditions (e.g. when to use generate_media instead of enhance) but the guidance present is actionable.

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.