Skip to main content
Glama
Ads.txt MCP Server

Ads.txt MCP Server

by miyaichi

optimize_adstxt_by_domain

Optimize ads.txt for a publisher domain using cached data to reduce latency and data transfer, with options to force a source refresh and choose optimization level.

Instructions

Optimize ads.txt by domain (automatically fetches from cache). More efficient than fetching content separately. Reduces latency and data transfer.

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": {
      "domain": "<domain>"
    },
    "name": "optimize_adstxt_by_domain"
  }
}

Input Schema

NameRequiredDescriptionDefault
forceNoForce refresh from source before optimizing (default: false)
levelNoOptimization level (default: level1)level1
domainYesPublisher domain to optimize

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does add real behavioral information not in the schema: content is pulled from cache automatically, which affects freshness, and the 'force' flag overrides that. It says nothing about permissions, what 'optimize' actually does to the file, or what the caller receives back.

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?

Three short sentences with the operation front-loaded and the cache behavior placed right after. The final sentence ('Reduces latency and data transfer') mostly restates 'more efficient than fetching content separately', making it slightly redundant rather than harmful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations and no output schema, the description must cover behavior and returns. It covers the data source but never explains what optimized output looks like or what differs between optimization levels, which leaves a meaningful gap for a tool whose whole value is a transformation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents domain, level, and force including defaults and the enum. The description adds no extra meaning about how level1 and level2 differ or what force costs in latency, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (optimize) and resource (ads.txt) scoped by domain, so the operation is identifiable. However it never contrasts itself with the sibling 'optimize_adstxt', so an agent cannot tell from the text which of the two optimization entry points to pick.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The phrase 'More efficient than fetching content separately' implies you should prefer this over a fetch-then-optimize path, which is a usable hint. But there is no explicit when-to-use or when-not-to-use guidance relative to get_adstxt_cache or optimize_adstxt, so selection is left largely to inference.

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