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

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. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. First observed

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: server-side validation of every command rule with the violated rule reported back, an extra file-existence check for type='exec'/'php', creation succeeding anyway with a warning, and a distinct indeterminate result. This tells the agent how to interpret and relay the outcome, which the annotations (readOnlyHint=false, destructiveHint=false, openWorldHint=true) cannot.

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 purpose, then the command rules and the two response cases (missing file warning, indeterminate check). Dense but every clause carries an instruction the agent must act on; slightly long with some overlap around the command-validation point.

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?

With no output schema, the description compensates by describing the response shapes an agent must handle: a warning to pass on verbatim and an 'could not be checked' message. Combined with 100% schema coverage, nothing needed to call or interpret the tool is missing.

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, but the description adds semantics the schema does not carry: that the file-existence check applies specifically to type='exec' and type='php', and that 'command' rules are authoritative and enforced. It does not restate schedule/domain syntax, which the schema already covers.

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 maps it to the Plesk concept ('Geplante Aufgaben'), so the agent knows exactly what side effect to expect. It is trivially distinguishable from get_cronjobs and delete_cronjob by the creation verb.

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?

Gives clear operational context: read the 'command' rules before proposing a command, and it is legal to create a cronjob before the target file is uploaded. It does not name sibling tools or state explicit exclusions, 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