Skip to main content
Glama
AutomateLab-tech

automatelab-ai-seo

Official

Rewrite for Generative Engine Optimization

rewrite_geo
Read-only

Rewrites content for generative AI search engines like Perplexity and Google AI Mode. Makes content entity-rich and comparison-ready to answer a target query.

Instructions

Rewrite a content block for Generative Engine Optimization: entity-rich, comparison-ready, synthesis-friendly. Tuned for surfaces that summarize across sources (Perplexity, Google AI Mode, Claude search).

Read-only on input. Does NOT write back to the source URL - returns the rewritten content as a string.

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. Output may vary across runs (model-dependent).

When to use: optimizing for synthesis-style answers across multiple sources. For direct-answer (BLUF + FAQ) optimization on a single page, use rewrite_aeo 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 to rewrite directly. Either this OR `url` is required.
max_wordsNoSoft word budget. Default 1500. Range 100-5000.
target_queryYesThe user query the rewrite should answer. Required - drives entity selection and comparison framing.
respect_robotsNoIf true (default), respect robots.txt when fetching `url`. Ignored when `text` is used.
add_comparison_tableNoIf true, inject an explicit X-vs-Y comparison table into the rewrite (useful for `X vs Y` queries). Default false.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
notesYesNotes from the rewrite (e.g. truncations, format adjustments).
formatNoOutput format (article, faq, howto, comparison).
sourceYes
rewrittenYesThe rewritten content. The caller decides where to publish it.
target_queryYes
Behavior5/5

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

Annotations (readOnlyHint true, openWorldHint true) are consistent. Description adds critical behavioral details: does not write back to source URL, returns string, delegates rewrite to the calling LLM via MCP sampling (no external API call), and output may vary across runs. No contradictions.

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?

Concise and well-structured: first sentence captures core purpose, then expands on behavior, usage guidelines, alternative tool, and parameter hints. Every sentence adds value with no redundant content.

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?

Given the complexity (6 parameters, 1 required, output schema exists) and richness of annotations, the description covers all necessary aspects: purpose, usage, behavioral transparency, parameter semantics, and alternatives. The existence of an output schema makes return value explanation unnecessary.

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 baseline is 3. Description adds value by explaining the role of `target_query` in driving entity selection and comparison framing, clarifying the `add_comparison_table` parameter for X-vs-Y queries, and noting mutual exclusivity of `url` and `text`. This exceeds the baseline.

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?

Clearly states the tool rewrites a content block for Generative Engine Optimization with specific characteristics (entity-rich, comparison-ready, synthesis-friendly). Explicitly distinguishes from sibling tool `rewrite_aeo` by describing different use cases.

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 guidance on when to use (optimizing for synthesis-style answers across multiple sources) and when not to (use `rewrite_aeo` for direct-answer optimization). Also clarifies read-only behavior and delegation to LLM via sampling.

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