Skip to main content
Glama

Fehlerprotokoll durchsuchen

search_domain_error_log
Read-only

Durchsucht die Fehlerprotokolle einer DOMAIN und gibt die passenden Zeilen AUS DEM ANGEFRAGTEN ZEITRAUM aus ("hours", Standard 24, höchstens 168). Erster Schritt bei „meine Seite ist weiß" oder „seit gestern kommen Fehler". Die Protokolle gehören dem Webserver der Domain, nicht einer bestimmten Anwendung: Eine Domain mit reinem PHP-Projekt wird genauso gelesen wie eine mit WordPress. Der Zeitraum gilt für die Zeilen und für die Zahlen — eine Protokolldatei umspannt Monate, eine Zeile vom April ist keine Antwort auf eine Frage nach gestern. Kein Treffer heißt also "nichts in diesem Zeitraum", nicht "nie ein Fehler"; gibt es ältere, nennt die Antwort deren jüngstes Datum, und ein größerer "hours"-Wert holt sie herein. Die AUSGEGEBENE ZEILENZAHL IST GEKAPPT (höchstens 20) — wie oft ein Fehler auftritt, sagt allein die dann mit genannte Gesamtzahl der Treffer, nie die Zahl der gezeigten Zeilen. Ohne "pattern" werden die jüngsten Zeilen des Protokolls ausgegeben, egal ob Fehler oder nicht: Der Webserver schreibt dort auch den Normalbetrieb hin ([NOTICE]), solche Zeilen sind KEIN Befund. Wer Fehler sucht, gibt ein Muster an, z. B. "PHP Fatal error". Zeilen, deren Zeitstempel sich nicht lesen lässt, werden mitgegeben und als "[Zeitpunkt unbekannt]" gekennzeichnet. Die zusätzlich genannten Zahlen je Protokollart gelten nicht für die Fehlerarten — deren Zählung ist auf unseren Servern nachweislich falsch und wird deshalb weggelassen; ob es Fehler gibt, sagen die Zeilen. Aus Datenschutzgründen werden nur Zeilen aus den Fehlerprotokollen ausgegeben, nie aus dem Zugriffsprotokoll, und IP-Adressen sind darin unkenntlich gemacht.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hoursNoZeitraum in Stunden rückwärts, Standard 24, höchstens 168
domainYesDie Domain, z. B. example.de
patternNoSuchbegriff, z. B. ein Fehlertext oder Plugin-Name. Buchstaben, Ziffern, Leerzeichen, . _ - / — höchstens 64 Zeichen, keine Sonderzeichen regulärer Ausdrücke. OHNE Muster kommen die jüngsten Protokollzeilen unabhängig davon, ob sie Fehler sind (der Webserver schreibt dort auch den Normalbetrieb hin) — für die Frage "gibt es Fehler" immer ein Muster angeben.
site_urlNoNur für eine WordPress-Installation auf einer Unterdomain mit eigenem Protokollverzeichnis. Ohne Angabe wird das Fehlerprotokoll der Domain selbst gelesen.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

With annotations only covering safety, the description adds extensive operational context: log ownership is per webserver, time filtering applies to both rows and counts, output rows are capped at 20, total hit count is the only occurrence signal, error-type counts are omitted as unreliable, unparsable timestamps are labeled, access logs are never returned, and IPs are anonymized. This is far beyond what annotations provide and none of it contradicts them.

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

Conciseness3/5

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

The purpose is front-loaded, but the description is a single dense block that repeats schema-covered details such as the 168-hour cap and no-pattern row behavior. The length is justified by several important quirks, yet it could be tightened and structured with less duplication.

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?

There is no output schema, so the description must explain return behavior, and it does: row cap, total hit count, timestamp labeling, omission of error-type counts, exclusion of access logs, and IP anonymization. Together with the fully documented input schema, an agent has everything needed to call and interpret this tool.

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 all four parameters, including hours, pattern syntax, and site_url behavior. The description reinforces some parameter behavior (pattern absent yields recent rows, larger hours fetches older rows, example pattern 'PHP Fatal error') but adds little syntax or format detail beyond the schema, so the baseline 3 applies.

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?

The description states a precise verb and resource (searching a domain's error logs within a requested time range) and contrasts it with access logs and application-specific logs. It also positions itself as the first diagnostic step for white-screen or recent-error reports, so an agent can tell what it is and what it is not.

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?

It clearly says when to use the tool ('Erster Schritt bei „meine Seite ist weiß“ oder „seit gestern kommen Fehler“') and explains that a pattern should be supplied when the goal is to find errors. It does not name sibling tools as alternatives or state explicit when-not-to-use cases, so it stops short of a full 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.

Resources