Skip to main content
Glama

Hotlink-Schutz einstellen

set_hotlink_protection
Destructive

Schaltet den Hotlink-Schutz einer Domain ein oder aus. Eingeschaltet können fremde Websites Dateien der Domain nicht mehr direkt einbinden — das trifft auch erwünschte Einbindungen, die dann über friendly_domains erlaubt werden müssen. Die Antwort meldet den GEWÜNSCHTEN Zustand — Plesk bestätigt nur die Annahme des Befehls. Was danach wirklich gilt, liest get_hotlink_protection; damit lässt sich eine Änderung nachprüfen, statt sie zu behaupten. ZU DEN BEIDEN LISTEN, beides live gemessen: (1) Eine angegebene Liste ERSETZT die bisherige vollständig — wer einen Eintrag HINZUFÜGEN will, muss die bestehenden MITSCHICKEN, sonst sind sie weg; den aktuellen Stand vorher mit get_hotlink_protection nachsehen, statt den Kunden aus dem Gedächtnis zu fragen. (2) Eine Liste, die nicht erwähnt wird, bleibt unverändert. LEEREN geht über diesen Weg NICHT: Das Hosting-System weist jede Schreibweise eines leeren Werts ab ("", " ", ";", "none"), deshalb wird ein ausdrücklich leerer Wert abgewiesen statt als Erfolg gemeldet. Um einen einzelnen Eintrag zu entfernen, die vollständige gewünschte Liste ohne diesen Eintrag angeben; soll gar nichts mehr drinstehen, geht das nur im Kundenbereich.

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": {
      "domain": "<domain>"
    },
    "name": "set_hotlink_protection"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDie Domain, z. B. example.de
enabledNotrue (Standard) = Schutz einschalten, false = ausschalten
extensionsNoGeschützte Dateiendungen, mit Semikolon getrennt. Jede Endung nur Kleinbuchstaben und Ziffern, 1–8 Zeichen, höchstens 21 Endungen. gültig: "jpg;png;gif", "jpg". abgewiesen: "JPG;PNG" (Grossbuchstaben), ".jpg;.png" (Punkt), "jpg, png" (Komma statt Semikolon).
friendly_domainsNoDomains, die trotzdem einbinden dürfen, mit Semikolon getrennt. Nur Kleinbuchstaben, Ziffern, Punkt und Bindestrich, je Domain 1–80 Zeichen, höchstens 21 Domains — kein Schema wie "https://" und keine Grossbuchstaben. gültig: "partner.de", "partner.de;other.com". abgewiesen: "https://partner.de" (Schema), "www.Partner.de" (Grossbuchstabe).

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.8/5.0
Behavior5/5

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

Goes well beyond the annotations (destructiveHint=true, openWorldHint=true) by disclosing that the response reports only the DESIRED state while Plesk merely acknowledges receipt, so a change must be verified via get_hotlink_protection. It also warns that a supplied list fully replaces the existing one (destroying entries unless re-sent), that an omitted list stays unchanged, and that empty values are rejected rather than silently succeeding. All of this is consistent with, and enriches, the destructive annotation.

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 the core action, then structured into two numbered list rules and a clearing rule — easy to scan despite the length. It is verbose and restates the clearing limitation twice (once in the empty-value warning, once in the closing sentence), which costs some tightness.

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?

No output schema exists, and the description compensates by explaining exactly what the response does and does not mean plus the correct verification path. For a destructive, open-world mutation with four params, the edge cases (list replacement, empty-value rejection, removal workflow) an agent needs are all present.

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% and the schema already documents formats for all four params, so the baseline is 3. The description adds genuine parameter-level semantics the schema lacks: replace-vs-omit behavior for extensions/friendly_domains, and the rejection of any empty-list spelling. It stops short of per-parameter value guidance beyond that.

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 ("Schaltet den Hotlink-Schutz einer Domain ein oder aus") and immediately clarifies the consequence of enabling it. It is cleanly separable from its read-side sibling get_hotlink_protection, which is named in the text.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly routes the agent: check/verify with get_hotlink_protection before and after, and states a hard limitation — clearing is NOT possible through this tool (empty values rejected; use the customer area instead). This is a rare case of clear when-to-use, when-to-verify, and when-not-possible.

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