Skip to main content
Glama

Content Brief Generator

content_brief_generator

Builds a content brief for a keyword in one market from the pages that rank for it. The Google results page is requested for the keyword exactly as typed and gives the top organic results and People Also Ask questions; up to 10 ranking pages are read (a few at a time, each within a time limit, never retried) and summarised. Read assessment first: status is complete, limited or insufficient, warnings come first (an unconfirmed market, ranking pages that could not be read and why, pages read but not used) and the counts say how many results were used. Every ranking result is listed in pages as read (used), irrelevant (read but a copy, off topic or declaring a different language) or not_read (reason such as duplicate_result for a second position with the same normalized destination, http_error 403, timed_out, not_html, too_large, no_main_content, needs_javascript); a duplicate destination is fetched once and both positions remain visible, never dropped silently. A different language tag is not excluded when the text strongly supports the requested language; missing or inaccurate tags can affect the check. If Google answers a different query even after the exact request, query_correction names it, no ranking page is read, the assessment is insufficient and the request is free. Pages of fewer than 3 distinct sites cannot show what ranking pages share: the brief is then insufficient and gives no suggested_outline, shared headings or common terms. A page's text is its main content as served: the element, else the article or the block holding most of the text, else the body, without navigation, header, footer, sidebars, menus, forms and other furniture (told apart by semantic elements, ARIA roles, link density and text density) and without headings and paragraphs the site's other ranking pages repeat; text added by scripts after load is not counted. Per page: position, domain, title, H1/H2/H3 headings and word count. Across the pages used: word count min/median/mean/max, the H2/H3 headings that several distinct sites share word for word (a site counts once); a suggested_outline of 5 to 8 sections in the order the pages tend to take them, with outline giving each section's basis and a plain note: shared_heading (the same H2 on pages of min_sources_for_common sites), similar_headings (headings of at least 2 sites on the same main words in their own wording), and, to reach 5, heading_on_common_topic (one page's heading on words most pages use), common_topic (a phrase or word pages of min_sources_for_common sites use) and people_also_ask (a Google question no section covers); fewer than 5 sections makes the brief limited, never complete; terms and two-word phrases on pages of at least min_sources_for_common sites (stop words are removed for English, German, French, Spanish, Italian, Portuguese, Dutch and Russian, including those of the keyword unless the keyword is only stop words, and English filler words such as need or things; web addresses and interface words never count) and questions, each with covered_by_pages and coverage: the pages used whose heading or text covers its main words. Every shared heading, outline section and question lists the ranking pages it came from (evidence: position, url, the heading as written) and every term the ranking positions of its pages (positions). It describes what the ranking pages contain; it is not a statement of what Google rewards, and no figure is a target. project_document is the brief as a project content_brief document: save it with research_document_save (project_id, kind, title, document) or POST /api/v1/projects/{project_id}/research. Credits: the Google results page (5 live, 0 from cache, counted toward the daily live-page allowance when live) plus 1 per ranking page that was read (irrelevant pages count; a page that could not be read or has too little text of its own is free; an insufficient brief with relevant SERP evidence is charged the same way), so at most 15; a brief reserves 15 and is charged for what it used. With page_url (on-page SEO check) that page is read too (1 more credit when it could be read, so at most 16) and page_check compares it with the pages used: headline (its Google position in the top 10, or not in it), checks (title, H1, meta description and address use the keyword; title length; word count against the middle half of the pages used; share of the common terms used; outline topics covered; People Also Ask questions answered), each passed, improve (with found, advice and why) or not_checked (too few pages to compare), and the missing_terms, missing_topics and unanswered_questions; a page that could not be read is reported in page_check (status not_read, reason) and not charged. page_check also has keyword_uses (the keyword word for word in the text against the top pages' median and most: never is a fix, more than twice the top pages' highest rate is stuffing) and readability (Flesch reading ease of the paragraphs, English only, against the top pages' median: as easy, or 60+, passes), and score 0-100: the average of the checks that could be run, a partly met check counting in part (score_note). With draft instead of page_url (SEO writing assistant) the same page_check scores a text not published yet (draft true): headings from # lines or h1-h3, draft_title and draft_description checked when given (else not_checked), no address check; it is never fetched, so it adds no credit; fewer than 40 words is status not_read, reason draft_too_short. If a call times out, repeat the identical call: the results page is stored and the repeat is cheaper. This tool runs synchronously. When retention succeeds, retained.run_id reads the completed answer again for free with scraper_run_get; retained.available false says why it could not be kept. Saved synchronous results can be evicted early when storage is needed. The same idempotency_key never charges twice during its replay window.

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": {
      "keyword": "<keyword>",
      "country": "<country>"
    },
    "name": "content_brief_generator"
  }
}

Input Schema

NameRequiredDescriptionDefault
draftNoOptional: a text not published yet to score against the keyword (SEO writing assistant), as plain text, Markdown (# heading lines) or HTML (h1-h3). Never fetched, so free beyond the brief. Not with page_url.
countryYesTwo-letter country code of a supported market; see GET /api/v1/serp/markets. The brief describes the pages that rank in this market.
keywordYesThe keyword to build a content brief for. Non-blank text, maximum 200 UTF-8 bytes.
languageNoResult language (Google hl). Defaults to the market's own language; markets served through the managed SERP API accept any language code, e.g. en for English results in DE.
page_urlNoOptional: a full address (https://...) of one of your pages to check against the keyword (on-page SEO check). Read with the ranking pages; 1 more credit, only when the page could be read.
freshnessNoReuse of stored Google results pages. standard (default): a page fetched within this tool's window (24 hours; 6 hours with project_id unless max_age_seconds says otherwise) may answer, at 0 credits instead of 5. fresh: every page is fetched live now. A result says what it used at its top level: cache_hit, with cache_age_seconds (one search) or rows_from_cache and oldest_page_age_seconds (several searches).
verbosityNoconcise: short summary of the answer; full: the whole answer. Only shapes the output. Send idempotency_key to read the other form later without a new charge.
draft_titleNoOptional, with draft: the title you plan to use, so the title checks can run.
idempotency_keyNoOptional retry key bound to this customer and these arguments. Matching retries replay the first result and do not reserve a second credit; the replay says so in billing (replayed true, credits_charged_this_call 0, original_credits_used).
max_age_secondsNoOldest stored results page that may answer, in seconds (60 to 86400); older pages are fetched live. Default: this tool's window (24 hours), or 6 hours (21600) when project_id is given and max_age_seconds is not, because a day-old page is not where a site ranks now.
draft_descriptionNoOptional, with draft: the meta description you plan to use.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / draft
      Added value: +{
      +  "description": "Optional: a text not published yet to score against the keyword (SEO writing assistant), as plain text, Markdown (# heading lines) or HTML (h1-h3). Never fetched, so free beyond the brief. Not with page_url.",
      +  "maxLength": 100000,
      +  "type": "string"
      +}
    • addedInput schema / properties / draft_description
      Added value: +{
      +  "description": "Optional, with draft: the meta description you plan to use.",
      +  "maxLength": 1000,
      +  "type": "string"
      +}
    • addedInput schema / properties / draft_title
      Added value: +{
      +  "description": "Optional, with draft: the title you plan to use, so the title checks can run.",
      +  "maxLength": 300,
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / page_url
      Added value: +{
      +  "description": "Optional: a full address (https://...) of one of your pages to check against the keyword (on-page SEO check). Read with the ranking pages; 1 more credit, only when the page could be read.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses synchronous execution, credit reservation and charging rules, cache behavior, idempotency replay, retention and possible eviction, page-read failure reasons, and how partial or insufficient assessments are reported. These are exactly the behavioral details an agent needs before invoking it.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose and the instruction to read the assessment first are front-loaded, but the body is an enormous run-on block with dense parenthetical detail. Much of it is informative, yet the lack of paragraph structure and the sheer volume make it hard to scan, so it is not appropriately concise.

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, the absence of an output schema, and the many optional inputs, the description is highly complete: it describes the assessment statuses, page classifications, brief contents, page_check structure, scoring, and credit model. Nothing essential for correct invocation is obviously 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?

Schema coverage is already 100%, so baseline is 3, but the description adds cross-parameter meaning: page_url adds one credit only when readable, draft is never fetched and adds no credit, draft inputs alter which checks run, and idempotency_key replays without a second charge. The added semantics are meaningful even though many individual parameter details remain in the 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 opens with a specific verb and resource: it "Builds a content brief for a keyword in one market from the pages that rank for it." It also distinguishes the resulting project document and names research_document_save and scraper_run_get for follow-up actions.

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 explains the main mode, the optional page_url on-page check, and the alternative draft-scoring mode, including when draft_title and draft_description are relevant. It does not explicitly compare this tool with other SERP or keyword-research siblings, so it stops short of full alternative routing.

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.

Resources