Skip to main content
Glama

Cronjob anlegen

create_cronjob

Richtet einen wiederkehrenden Cronjob für eine Domain ein (Plesk "Geplante Aufgaben"). Die Regeln für die Befehlszeile stehen vollständig bei "command"; lies sie, bevor du dem Kunden einen Befehl vorschlägst — alles davon wird serverseitig geprüft und sonst mit Angabe der verletzten Regel abgewiesen. Bei type="exec" und type="php" wird zusätzlich nachgesehen, ob die Datei an der angegebenen Stelle überhaupt existiert. Fehlt sie, wird der Cronjob trotzdem angelegt (man darf ihn vor dem Hochladen einrichten) — die Antwort trägt dann aber eine Warnung, die du dem Kunden ungekürzt weitergeben musst, statt nur "eingerichtet" zu melden. Konnte nicht nachgesehen werden, sagt die Antwort genau das; behaupte dann weder, die Datei sei da, noch, sie fehle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoexec (Standard) = Skript im Domainverzeichnis, "command" ist die vollständige Befehlszeile samt Argumenten. php = PHP-Skript; Plesk ruft PHP mit der für die Domain eingestellten Version selbst auf, "command" enthält deshalb nur den Skriptpfad (Argumente dahinter trennt der Server ab) und niemals ein "php" oder "/usr/bin/php" davor. http = "command" ist eine https-URL auf die eigene Domain.
domainYesDie Domain, z. B. example.de
commandYesBei type="exec"/"php" eine Befehlszeile, bei type="http" eine URL. ERSTES WORT = der auszuführende Pfad, alles dahinter = Argumente. Dieser Pfad muss unterhalb des Verzeichnisses dieser Domain liegen — relativ dazu ("httpdocs/wp-cron.php") oder absolut ("/var/www/vhosts/example.de/httpdocs/wp-cron.php"), beides ist erlaubt; ".." wird aufgelöst und darf nicht hinausführen. Ein Programm aus dem System als erstes Wort ist damit ausgeschlossen: "/usr/bin/php httpdocs/wp-cron.php" wird abgewiesen, obwohl das Skript dahinter stimmt — der Interpreter gehört nicht davor, bei type="php" ruft Plesk ihn selbst auf. Gesperrt sind ausserdem die Zeichen ; & | ` $ ( ) < > und Zeilenumbrüche, weil die Crontab-Zeile in einer Shell läuft; eine Ausgabeumleitung (">> /dev/null 2>&1") ist deshalb nicht möglich und gehört in das Skript selbst. Gültig ist z. B. bei type="php" "httpdocs/wp-cron.php", bei type="exec" "httpdocs/backup.sh --voll --leise" und bei type="http" "https://example.de/cron.php" (nur https, nur die eigene Domain mit oder ohne "www.", kein "@").
scheduleYesZeitplan im CRON-Format, genau fünf Felder (Minute Stunde Tag Monat Wochentag), je nur Ziffern und * / , - — z. B. "*/5 * * * *" oder "0 22 * * 1-5". Abgekürzte Namen ("MON", "jan") und Sonderformen ("@reboot", "@daily") werden abgewiesen.
descriptionNoBeschreibung, die in Plesk angezeigt wird

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false and destructiveHint=false. The description adds substantial behavior: server-side validation with rule-specific rejection, file-existence checks for exec/php, warnings returned when files are missing, and explicit instructions about uncertain results. This goes well beyond the annotations.

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 front-loaded with the purpose, then adds only decision-relevant constraints about validation and response warnings. Each sentence contributes to correct invocation, and the length is justified by the tool's validation complexity.

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 mutation tool with no output schema, the description covers validation behavior, the file-check edge case, warning propagation, and uncertainty handling. An agent has enough context to call this correctly and to relay results accurately.

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 coverage is 100% and the schema already gives detailed per-parameter semantics for type, command, schedule, and domain. The description mainly points back to the command schema rather than adding new parameter meaning, so baseline 3 is appropriate.

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 ('Richtet einen wiederkehrenden Cronjob für eine Domain ein') and scopes it to Plesk scheduled tasks, so it is distinguishable from get_cronjobs and delete_cronjob without opening a schema.

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?

Provides clear usage context: read the command rules before suggesting a command, and notes that a missing file still creates the cronjob with a warning. It does not explicitly name alternative tools or when not to use this one, so it stops short of the top score.

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