Skip to main content
Glama

Batch edit articles with AI

batch_edit_articles_with_ai
Destructive

Queues an AI rewrite of up to 50 articles with the same instructions (default-language version only). Asynchronous: articles are edited in the background over the next minutes; check them later with get_article. Articles still generating are skipped and not charged. Editing an article that is already published (or published in draft) marks it Out of Sync until it is synced with sync_article_to_cms or published again. Use edit_article_with_ai for a single article or a translation. Costs AI brain credits (see the cost rule above), charged before the work, refunded if the provider fails. Requires an active subscription or free trial. Pass confirm=true to acknowledge the AI brain credits charge; without it the tool only returns the cost and your balance. Pass website_id when the account has several websites (see get_account).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
confirmNoSet to true to acknowledge the AI brain credit charge. Omit it to only get the cost and your balance.
website_idNoWebsite id from get_account. Optional when the account has a single website.
article_idsYesArticles to rewrite (1 to 50).
instructionsYesWhat to change in every article.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
failedNoCould not be queued; refunded.
queuedNo
statusNoAlways "queued": the rewrites run in the background.
skippedNoStill generating; not charged.
credits_balanceNoCurrent AI brain credits balance; only with requires_confirmation.
credits_requiredNoAI brain credits the call would charge; only with requires_confirmation.
credits_balance_afterNoAI brain credits balance after this call.
requires_confirmationNoPresent when the tool did not run: it needs confirm=true. The other fields are then absent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already state readOnlyHint=false and destructiveHint=true, but the description goes far beyond that: it discloses asynchronous execution, skipping of still-generating articles, the Out of Sync side effect on published articles, charging/refund behavior on provider failure, and subscription requirements. These are substantial behavioral disclosures that the annotations alone would not convey.

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?

The description is a dense 8-sentence paragraph, but every sentence adds distinct information—async behavior, skip/charge rules, Out of Sync effect, alternative tool, costs, confirm requirement, and website_id. It front-loads the core action and limitation. Slightly long for the information, but well-ordered and free of fluff.

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 complex async batch tool with cost and side effects, the description covers all critical operational context: what happens, when, what to check, what to acknowledge, what prerequisites exist, and how to route to alternatives. The presence of an output schema means return values need no explanation. No important gap is evident.

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 baseline is 3. The description paraphrases the schema's parameter descriptions (confirm, website_id, article_ids, instructions) without adding new meaning. The extra context about credit charging and skipping is behavioral rather than parameter-specific, so there is no significant added semantic value beyond what the schema already provides.

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 opens with a specific verb-resource pair: 'Queues an AI rewrite of up to 50 articles with the same instructions.' It also differentiates from the sibling tool edit_article_with_ai by explicitly pointing to it for single-article or translation use, so an agent can immediately distinguish batch vs. single editing.

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?

Provides explicit when-to-use and when-not-to-use guidance: 'Use edit_article_with_ai for a single article or a translation.' It also covers prerequisites (active subscription/free trial), the confirm flag requirement, the website_id condition, and async behavior with a pointer to check results via get_article. Nothing is left to inference.

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.