Skip to main content
Glama

Write a disavow file for Google

disavow_file
Read-onlyIdempotent

Build the disavow file for Google's disavow links tool (https://search.google.com/search-console/disavow-links) and return it as text; nothing is written to a server or sent to Google. Google has no API to upload it, so you give the user the file and they upload it themselves. Disavowing is rarely needed and can lower rankings when good links are thrown away: use it after a manual action for unnatural links in Search Console, or for links the site clearly paid for or built in a scheme; Google already ignores ordinary spam links, so a high spam score alone is not a reason. Pass the domains (whole sites, the usual choice) and/or single URLs to disavow, each with a short reason, from the user's backlink data (Ahrefs, Semrush, SE Ranking, bing_backlinks, an attached export). Each upload REPLACES the list Google has, so if the user already uploaded one, ask them to download it from the tool and pass it as current: this tool keeps its lines and adds the new ones. remove takes lines back out (links the user no longer wants disavowed). Answers with the whole file, what was added, kept and dropped, and how to upload it. It works only for a URL-prefix property in Search Console (https://www.example.com/), not a Domain property.

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": {
      "site": "<site>"
    },
    "name": "disavow_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteYesThe site the links point to, like https://www.example.com (its own domain is never disavowed)
urlsNoSingle linking pages to disavow, full addresses
reasonNoReason for the entries that have none of their own, like "paid links, manual action 2026-10"
removeNoDomains or URLs to take out of current
sourceNoWhere the list came from, written at the top of the new part, like "Ahrefs export 2026-10-09"
currentNoThe file Google has now, as text (Search Console's disavow tool downloads it), so its lines are kept
domainsNoLinking sites to disavow whole, as a name (spam.example) or an address on it; with a reason each when you can

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint/idempotent/non-destructive, and the description is fully consistent while adding context annotations cannot express: nothing is sent to Google, Google has no upload API so the user uploads manually, and each upload REPLACES the previous list (hence the `current` round-trip). It also discloses a hard constraint — it works only for URL-prefix properties, not Domain properties.

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?

It is front-loaded with the purpose and the key 'nothing is written' caveat before the usage guidance, and nearly every sentence carries decision-relevant information. It runs long with some dense run-on clauses, but there is no filler or repetition.

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 7-parameter tool with no output schema, the description covers everything an agent needs: the return content ('the whole file, what was added, kept and dropped, and how to upload it'), the replace-on-upload behavior, the property-type limitation, and the source systems for the input data. Nothing material is left to inference.

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?

With 100% schema description coverage the baseline is 3, but the description adds real semantics beyond the schema: that `current` causes existing lines to be kept and new ones added, that `remove` subtracts lines from that file, and that domains (whole sites) are the usual choice versus single URLs. It stops short of explaining reason precedence between `reason` and per-entry reasons in any detail.

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 artifact — 'Build the disavow file for Google's disavow links tool ... and return it as text' — and immediately distinguishes it from write_file by stating 'nothing is written to a server or sent to Google.' An agent can identify the tool's output form and scope without opening the schema.

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?

It gives explicit when-to-use conditions ('after a manual action for unnatural links', 'links the site clearly paid for or built in a scheme') and an explicit when-not ('a high spam score alone is not a reason', and the warning that disavowing can lower rankings). It also prescribes the workflow alternatives — pass the existing file as `current` when one was already uploaded, or use `remove` to take lines back out.

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