Skip to main content
Glama

WAF ruleset from a log

waf_ruleset_from_log
Read-onlyIdempotent

FIRST CALL, needs nothing: {"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"no_arguments_triage_this_hosts_own_crawler_log","arguments":{}}} — nginx, Caddy, Cloudflare, HAProxy or Apache rules for only the crawlers in your log. The reply warns that a UA rule stops only an honest client, and that impersonation is an address problem needing the published prefixes as an allowlist. Example: log='412 GPTBot/1.2', target='nginx', scope='ai-training'.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
logYesThe log text.
scopeNoA category (default ai-training), 'all-seen', 'impersonators', or a stance.
actionNoDefault block.
targetNoDefault nginx.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds meaningful behavior beyond that: the reply warns that a UA rule only stops honest clients and that impersonation requires allowlisting published prefixes. It also scopes the tool to 'only the crawlers in your log'.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description leads with a large, raw JSON-RPC invocation for a different tool, which delays and obscures the actual purpose. The useful content is present but poorly front-loaded; the first-call instruction could be one short sentence instead of an embedded call object.

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?

For a 4-parameter tool with no output schema, the description gives a purpose, an example, and an important behavioral caveat. However, the ambiguous 'FIRST CALL' instruction and lack of any description of the returned ruleset format leave noticeable gaps.

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 value with a concrete example (log='412 GPTBot/1.2', target='nginx', scope='ai-training') and lists the supported target engines in prose, helping the agent map arguments to real 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 states a specific deliverable: nginx, Caddy, Cloudflare, HAProxy or Apache rules for only the crawlers in the log. This identifies the tool's verb and resource, though the opening 'FIRST CALL' reference to a different tool muddies the focus and keeps it from 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 description implies a workflow: call no_arguments_triage_this_hosts_own_crawler_log first, since it 'needs nothing', then presumably use this tool. However, it never explicitly says when to choose waf_ruleset_from_log over siblings like robots_from_log or find_impersonators.

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