Skip to main content
Glama

Improve content SEO

improve_content_seo

Rewrites content you pass inline to fix its failing on-page SEO checks for target_keyword (keyword in introduction and subheadings, density, sub-keyword coverage, length, subheading distribution, FAQ, paragraph and sentence length) while keeping its topic, facts, tone, language, links and images. Returns the improved markdown verbatim with the score before and after. The content does not need to be in BlogSEO and nothing is saved: apply the result yourself, or use edit_article_with_ai for stored articles. Fails before charging when every body-level check already passes. Synchronous and slow: it takes 1 to 3 minutes, wait for it instead of retrying. Limited to 20 calls per hour per website. Costs 1 AI brain credit, charged after the work, not refunded on failure. Requires an active subscription or free trial. Pass website_id when the account has several websites (see get_account).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentYesBody of the content as markdown or plain text, 200 to 60,000 characters.
headlineYesTitle (H1) of the content.
site_urlNoURL of the site the content lives on; its host tells internal and external links apart.
website_idNoWebsite id from get_account. Optional when the account has a single website.
target_keywordYesPrimary keyword the content should rank for.
meta_descriptionNoMeta description, when there is one.
extra_instructionsNoExtra instructions appended to the SEO fixes (tone, things to keep, wording to avoid).
secondary_keywordsNoSecondary keywords the content should also cover (max 20).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
new_scoreYes
website_idYesWebsite the result belongs to.
previous_scoreYes
credits_chargedYes
improved_markdownYesThe rewritten content, also returned as the text content.
credits_balance_afterNoAI brain credits balance after this call.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description discloses key behaviors: it is synchronous and slow (1-3 min, wait, don't retry), has a rate limit (20 calls/hour/website), costs 1 AI brain credit charged after work and not refunded on failure, requires subscription or trial, and preserves topic, facts, tone, language, links, and images. It also states the output format (improved markdown and score before/after). This fully informs the agent of side effects, latency, cost, and constraints.

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 dense but every sentence earns its place. It opens with the core action and scope, then moves to output, usage, failure behavior, latency, rate limits, cost, auth, and a parameter hint, in a logical order. There is no fluff or repetition; it is a compact, well-structured paragraph that front-loads the most critical information.

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 tool's complexity (8 params, output schema, multiple constraints), the description covers all necessary context: what it does, when to use it, how to handle the result, failure conditions, latency, rate limiting, cost, auth, and parameter specifics. Since an output schema exists, the description appropriately does not restate return structure but adds the score-before/after detail. Nothing an agent needs to correctly invoke this tool is missing.

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?

The schema already provides descriptions for all 8 parameters (100% coverage), so the baseline is 3. The description adds extra value by clarifying the inline nature of the content ('content you pass inline') and by giving specific guidance for website_id ('Pass website_id when the account has several websites (see get_account)'). It also explains the relationship of target_keyword to the checks. These additions lift it above the baseline, though not dramatically.

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 states a specific verb ('rewrites'), a resource ('content you pass inline'), and the precise goal ('fix failing on-page SEO checks') while enumerating the checks (keyword in intro, subheadings, density, etc.). It distinguishes itself from the sibling edit_article_with_ai by explicitly noting it works on inline content and not stored articles, so an agent can immediately tell what it does and what it does not do.

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 gives explicit when-to-use guidance: it states that content does not need to be in BlogSEO, that nothing is saved, and that for stored articles one should use edit_article_with_ai. It also warns that the tool fails before charging when all body-level checks pass, preventing wasted calls, and provides rate-limit and cost details. This is a model of usage direction.

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.