Skip to main content
Glama
AutomateLab-tech

automatelab-ai-seo

Official

rewrite_for_aeo

Rewrites content for Answer Engine Optimization with BLUF, FAQ, and schema to improve direct-answer visibility in ChatGPT, Perplexity, and Google AI Overviews.

Instructions

Rewrite a content block for Answer Engine Optimization. Adds a BLUF opening, FAQ structure, schema additions, and concise question-shaped headings tuned for ChatGPT / Perplexity / Google AI Overviews.

Read-only when given url (one HTTP GET). Zero network when given text. The tool does NOT write back to the URL - it only returns the rewritten content as a string. No side effects on the source.

This tool delegates the actual rewrite to the calling LLM via MCP sampling - it does not call any external API itself. The MCP host's model produces the rewrite. Same input may produce different output across runs (model-dependent).

When to use: optimizing content for direct-answer surfaces (definitions, how-tos, FAQs). For Generative Engine Optimization (entity-rich, comparison-ready synthesis), use rewrite_for_geo instead.

Either url or text must be provided. target_query is required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoPublic URL whose content should be fetched and rewritten. Either this OR `text` is required.
textNoRaw content (markdown or HTML) to rewrite directly. Either this OR `url` is required.
target_queryYesThe user query the rewrite should answer (e.g. `what is RAG`, `how to deploy Ghost to Docker`). Required - drives heading shape and BLUF wording.
formatNoOutput shape. `article` for prose-with-headings. `faq` for Q&A list. `howto` for numbered-step procedural content with HowTo schema hints. `comparison` for X-vs-Y tables. Default `article`.article
max_wordsNoSoft word budget for the rewrite. Default 1500. Range 100-5000. The rewrite tries to stay under this; very small budgets may force truncation.
respect_robotsNoIf true (default), respect robots.txt when fetching `url`. Ignored when `text` is used.
Behavior5/5

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

Despite no annotations, the description fully discloses behavioral traits: it is read-only when fetching URL (single GET), zero network when given text, no side effects on source, delegation to the calling LLM via MCP sampling (no external API), and non-deterministic output due to model dependency.

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?

The description is concise (~150 words) and well-structured: purpose first, then behavioral details, usage guidance, and input constraints. Every sentence adds value without redundancy or filler.

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?

Given 6 parameters and no output schema, the description is largely complete: it explains the tool's mechanism, side effects, usage context, and parameter behavior. However, it could briefly mention the output format (e.g., markdown) or the exact structure of BLUF/FAQ headings, but this is a minor 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?

All parameters have schema descriptions (100% coverage), adding baseline. The description further clarifies that `respect_robots` is ignored when `text` is used, and explains `max_words` as a soft budget with default and range. It also adds context for `target_query` driving heading shape and BLUF wording, improving beyond schema.

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 clearly states the tool rewrites content for Answer Engine Optimization (AEO), specifying exact enhancements (BLUF opening, FAQ structure, schema additions, question-shaped headings). It differentiates from sibling `rewrite_for_geo` by targeting direct-answer surfaces rather than generative engine optimization.

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?

The description explicitly states when to use this tool ('optimizing content for direct-answer surfaces') and directs users to 'rewrite_for_geo' for alternative use cases. It also clarifies required inputs: either `url` or `text`, and `target_query` is required.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/AutomateLab-tech/ai-seo-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server