Skip to main content
Glama

Hotlink-Schutz anzeigen

get_hotlink_protection
Read-only

Liest den Hotlink-Schutz EINER Domain (live aus dem Hosting-System): ob er an ist, welche Dateiendungen geschützt sind und welche Fremddomains trotzdem einbinden dürfen. Das lesende Gegenstück zu set_hotlink_protection und der einzige Weg, eine Änderung daran nachzuprüfen. Vor jedem Setzen sinnvoll, weil eine angegebene Liste die bisherige ERSETZT: Hier steht, was mitgeschickt werden muss, damit nichts verschwindet. Die Domain wird serverseitig gegen die Verträge genau dieses Kunden gehalten — eine fremde wird abgewiesen, bevor irgendetwas gelesen wird. Zwei Dinge sind beim Weitergeben wichtig: (1) Das Hosting-System gibt seine Antwort doppelt aus; nennen die beiden Hälften für ein Feld UNTERSCHIEDLICHE Werte, meldet die Antwort das als widersprüchlich und nennt bewusst keinen Wert — dann auch selbst keinen raten. (2) Eine LEERE Liste ("keine Einträge") und ein NICHT GELESENES Feld sind zwei verschiedene Auskünfte: Was die Antwort als "nicht gelesen" meldet, heißt nicht "leer" und nicht "aus", und darf dem Kunden nicht so weitergegeben werden.

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": "get_hotlink_protection"
  }
}

Input Schema

NameRequiredDescriptionDefault
domainYesDie Domain, z. B. example.de

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?

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, but the description adds substantial behaviour beyond them: server-side validation of the domain against this customer's contracts with rejection of foreign domains before anything is read, the duplicated-response contradiction handling (report contradictory, deliberately return no value, never guess), and the empty-list vs not-read distinction that must not be misreported to the customer.

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?

Longer than typical, but front-loaded with purpose and the set_hotlink_protection relationship before the edge cases. The two numbered caveats are dense yet each carries actionable output-interpretation information; a small amount of phrasing could be tightened, but nothing is filler.

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 in play, the description carries the full burden and does so: it describes the returned fields, the contradiction case where no value is given, and the crucial distinction between an empty list and an unread field. An agent has everything needed to call it and to relay the result correctly.

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?

With 100% schema coverage on a single parameter, the baseline is 3, but the description adds real constraint semantics: the domain is validated server-side against exactly this customer's contracts and a foreign domain is rejected before any read occurs. That meaning is not derivable from the schema's bare 'Die Domain, z. B. example.de' example.

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 ('Liest den Hotlink-Schutz EINER Domain') and enumerates exactly what is returned: on/off state, protected file extensions, and exempt foreign domains. It explicitly positions itself against the sibling set_hotlink_protection as its read counterpart, so an agent can distinguish the two without opening either schema.

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?

Gives explicit when-to-use guidance ('Vor jedem Setzen sinnvoll'), names the alternative (set_hotlink_protection), and explains why: a supplied list replaces the existing one, so this read reveals what must be sent along to avoid data loss. It also states this is 'der einzige Weg, eine Änderung daran nachzuprüfen', covering the verification use case.

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