Skip to main content
Glama

Count AI crawlers in a server log

read_ai_crawler_log
Read-onlyIdempotent

Read access log lines you send and count the AI crawlers in them (GPTBot, ClaudeBot, PerplexityBot and the rest): requests, errors and the most requested path per crawler, with whose it is and what it collects for. A REST or MCP body holds about 30 KB of log; the page reads far more. Answers from what you send alone: nothing is fetched or stored.

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": {
      "log": "<log>"
    },
    "name": "read_ai_crawler_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
logYesAccess log lines. Paste lines from your server or CDN log. Any format that prints the user agent works.

Output Schema

NameRequiredDescriptionDefault
toolYes
toolUrlYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive and closed-world, but the description adds non-obvious behavior: no fetching, no storage, and a practical body-size ceiling (~30 KB) versus what the page UI handles. It stops short of describing malformed-input handling or truncation behavior when the payload exceeds that size.

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 sentences, front-loaded with the action and output inventory, then input requirements, then the no-fetch guarantee. Minor slack in the awkward phrase 'with whose it is and what it collects for'.

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 one-parameter, closed-world read tool with an output schema, everything an agent needs is present: what to send, what comes back, size expectations, and the guarantee that nothing is fetched or persisted.

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 a single fully-described parameter the schema baseline is already 3, and the description adds a useful practical constraint (roughly 30 KB per request body). Note the mild tension with the schema's maxLength of 2,000,000 characters, which the description does not reconcile.

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 and resource ('read access log lines ... count the AI crawlers') and enumerates concrete outputs: requests, errors, top path per crawler, operator identity and purpose. The scope ('the lines you send') separates it from site-wide visibility siblings such as check_ai_visibility or get_ai_traffic_setup.

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?

Makes the precondition explicit ('lines you send', 'answers from what you send alone: nothing is fetched or stored'), which tells the agent this is a bring-your-own-data tool rather than a fetcher. It does not name a sibling alternative or state when-not to use it, so it falls short of the 5 bar.

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