Skip to main content
Glama

analyze_ai_bot_logs

Read-onlyIdempotent

Analyze pasted web server access-log lines (combined, common or Cloudflare JSON; max 5,000 lines / 2 MB per call) for AI and search crawlers: hits per bot (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Googlebot, Bingbot and others), verified, spoofed or unknown (vendor-published IP ranges; reverse DNS with forward confirmation for Googlebot and Bingbot), top crawled URLs, 4xx / 5xx / 403 served to those bots and, with an optional sitemap URL, key sitemap pages no bot crawled. Lines are processed in memory for this call only; they are not stored or logged. Fetches only the vendors' public IP lists and the sitemap. Reference: Google, verifying Googlebot (https://developers.google.com/crawling/docs/crawlers-fetchers/verify-google-requests).

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": {
      "logs": "<logs>"
    },
    "name": "analyze_ai_bot_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
logsYesAccess-log lines as text, one request per line (combined, common or Cloudflare JSON lines, or a JSON array). Max 5,000 lines / 2 MB.
verifyNoVerify bot IPs against published lists and DNS (default true); false skips network checks
sitemap_urlNoOptional sitemap URL; lists sitemap pages no bot crawled in these lines

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / logs / description
      Previous value: -"Access-log lines pasted as text, one request per line (combined / common log format or Cloudflare JSON lines, or a JSON array). Max 5,000 lines and 2 MB."New value: +"Access-log lines as text, one request per line (combined, common or Cloudflare JSON lines, or a JSON array). Max 5,000 lines / 2 MB."
    • changedInput schema / properties / sitemap_url / description
      Previous value: -"Optional sitemap or sitemap index URL; lists sitemap pages no AI or search bot crawled in these lines"New value: +"Optional sitemap URL; lists sitemap pages no bot crawled in these lines"
    • changedInput schema / properties / verify / description
      Previous value: -"Verify bot IPs against published lists and DNS (default true). Set false to skip all network checks."New value: +"Verify bot IPs against published lists and DNS (default true); false skips network checks"
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses that lines are processed in memory only and not stored or logged, and that the only outbound traffic is the vendors' public IP lists and the optional sitemap, concretizing openWorldHint. It also explains the verification tiers (vendor IP ranges, reverse DNS with forward confirmation for Googlebot/Bingbot, spoofed vs unknown), which an agent needs in order to interpret results.

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?

Front-loaded with verb, resource, formats and limits, so the most decision-relevant facts come first. It is one very dense sentence with long enumerations, which makes it harder to scan but every clause carries substantive information rather than filler.

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?

No output schema exists, so the description carries the burden of describing returns, and it does so by listing each output section the tool produces. Combined with input limits, verification semantics and the data-handling statement, an agent has everything needed to call it and interpret results.

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 description coverage is 100%, so the baseline is 3; the description earns an extra point by clarifying consequences, e.g. that verification involves network checks and that sitemap_url specifically yields 'sitemap pages no bot crawled in these lines'. The accepted input formats and size limits reinforce the logs parameter beyond the schema text.

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?

States a specific verb ('Analyze') and resource ('pasted web server access-log lines') plus the exact scope: AI and search crawlers. It then enumerates what the analysis returns (hits per bot, verified/spoofed/unknown, top crawled URLs, 4xx/5xx/403, uncrawled sitemap pages), which clearly separates it from siblings like audit_sitemap, check_robots_txt or check_ai_controls.

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?

Usage context is clear: you supply pasted log lines, accepted in combined, common or Cloudflare JSON form, capped at 5,000 lines / 2 MB per call. It also explains that passing an optional sitemap_url unlocks the uncrawled-pages output, which helps an agent decide whether to include it. It stops short of naming alternatives or stating when not to use it, so it is a 4 rather than a 5.

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.