Skip to main content
Glama
Ads.txt MCP Server

Ads.txt MCP Server

by miyaichi

optimize_adstxt

Optimize ads.txt content by removing duplicates, standardizing format, and grouping entries by domain; optionally integrate sellers.json and categorize sellers.

Instructions

Optimize ads.txt content. Level 1: remove duplicates, standardize format, group by domain. Level 2: Level 1 + sellers.json integration and categorization.

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": {
      "content": "<content>"
    },
    "name": "optimize_adstxt"
  }
}

Input Schema

NameRequiredDescriptionDefault
levelNoOptimization level (default: level1)level1
contentYesThe ads.txt file content to optimize
publisher_domainNoOptional publisher domain

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full behavioral burden. It usefully enumerates the transformations performed at each level, but it does not state whether the input content is mutated, what is returned, whether there are side effects, or what permissions/errors apply.

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 two compact sentences, front-loads the core action, and uses the level definitions efficiently without filler.

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?

The tool has moderate complexity, no annotations, and no output schema, so the description should be more self-contained. It covers the core optimization levels but omits return values, side effects, and the relationship to the by-domain sibling.

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 the baseline is 3. The description adds meaningful semantics for the level parameter by explaining what level1 and level2 actually do, though it does not clarify publisher_domain usage.

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?

The description gives a specific verb and resource ('Optimize ads.txt content') and defines two levels through concrete operations, so the core purpose is clear. It does not explicitly distinguish itself from the sibling optimize_adstxt_by_domain, which keeps it below a 5.

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 level definitions imply when level2 is appropriate because it includes sellers.json integration and categorization on top of level1. However, there is no explicit guidance on when to use this tool versus validate_adstxt or optimize_adstxt_by_domain, and no exclusions or preconditions are stated.

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