Skip to main content
Glama
RecurPost MCP Server
by dinwal

generate_content_with_ai

Generates social media post copy from a prompt and lets you refine the last AI response with follow-up instructions; each generation uses an AI post credit.

Instructions

Write social media post text with RecurPost AI from a prompt. Spends one of the workspace owner's AI post credits (see ai_credits). To refine the last answer, send the new instruction as prompt_text together with ai_id, chat_progress and chat_history exactly as the previous answer returned them.

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": {
      "prompt_text": "<prompt_text>"
    },
    "name": "generate_content_with_ai"
  }
}

Input Schema

NameRequiredDescriptionDefault
ai_idNoEncrypted chat id returned by the previous call. Send it to continue that chat; leave it out to start a new one. Must be a chat of the workspace owner's account. Requires chat_progress and chat_history.
prompt_textYesWhat to write, up to 5000 characters. On a follow-up call this is the refinement instruction, for example Make it shorter and add emojis.
chat_historyNoThe chat_history array of the previous response, unchanged: objects with role (user or system) and content. A JSON body array or a JSON string. Required with ai_id. Do not append your new prompt yourself.
workspace_idNoWorkspace to act in (ws_id from workspace_list). Omit to use your default workspace.
chat_progressNoEncrypted progress marker returned by the previous call. It is a check value on chat_history: the history you send must be the one the marker was issued for. Required with ai_id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv2.0.0
    • changedInput schema / properties / ai_id / description
      Previous value: -"AI conversation ID from a previous response, for follow-up turns"New value: +"Encrypted chat id returned by the previous call. Send it to continue that chat; leave it out to start a new one. Must be a chat of the workspace owner's account. Requires chat_progress and chat_history."
    • addedInput schema / properties / chat_history
      Added value: +{
      +  "description": "The chat_history array of the previous response, unchanged: objects with role (user or system) and content. A JSON body array or a JSON string. Required with ai_id. Do not append your new prompt yourself.",
      +  "items": {
      +    "additionalProperties": {},
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / properties / chat_progress / description
      Previous value: -"Chat progress marker from a previous response"New value: +"Encrypted progress marker returned by the previous call. It is a check value on chat_history: the history you send must be the one the marker was issued for. Required with ai_id."
    • changedInput schema / properties / prompt_text / description
      Previous value: -"Topic or text to generate content about"New value: +"What to write, up to 5000 characters. On a follow-up call this is the refinement instruction, for example Make it shorter and add emojis."
    • addedInput schema / properties / workspace_id
      Added value: +{
      +  "description": "Workspace to act in (ws_id from workspace_list). Omit to use your default workspace.",
      +  "type": "string"
      +}
  2. First observedv1.0.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only declare non-read-only, open-world, non-destructive; the description adds genuinely new context — that the call consumes one of the workspace owner's AI post credits and that follow-up calls form a stateful chat chain whose continuation tokens must be passed back verbatim. It does not describe error behavior or what happens when credits run out, so it is not a 5.

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 primary action and cost, then the refinement workflow. No filler; the parenthetical credit pointer earns its place as an actionable cross-reference.

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 five-parameter, no-output-schema tool, the description covers the primary path, the stateful follow-up path, and the credit side effect. It implicitly reveals the response shape by referring to ai_id, chat_progress and chat_history 'as the previous answer returned them', though it never states what the generated text or error results look like.

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 each parameter's meaning is already documented in the schema, including the 'Required with ai_id' relationship. The description restates the follow-up parameter bundle and the 'exactly as returned' constraint, adding reinforcement but little new syntax or format meaning. Baseline 3 applies when the schema does the heavy lifting.

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 gives a specific verb and resource — 'Write social media post text with RecurPost AI from a prompt' — which is distinguishable from the image and hashtag generation siblings by the explicit 'post text' resource. An agent can tell what is produced 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 clearly states the second mode of use: to refine the last answer, resend the new instruction with ai_id, chat_progress and chat_history as previously returned. It also flags the credit cost and points to ai_credits for checking balance. It stops short of explicitly excluding or comparing to the image/hashtag siblings, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.