Skip to main content
Glama

HTTPS-Weiterleitung reparieren

fix_https_redirect

Aktiviert (Standard) oder deaktiviert die automatische HTTP→HTTPS-Weiterleitung für eine Domain. Behebt das von diagnose_website/get_website_report gemeldete Finding "kein HTTPS-Redirect" direkt, statt es nur anzuzeigen. Reversibel und betrifft nur diese eine Einstellung. Vor dem EINSCHALTEN wird per echtem TLS-Handshake gemessen, ob die Domain aktuell ein gültiges, auf sie lautendes Zertifikat ausliefert: Ohne eines würde nach dem Einschalten jeder http-Aufruf auf einer Zertifikatswarnung landen statt auf der Seite — das wird deshalb abgelehnt (fehlendes, abgelaufenes oder fremdes Zertifikat), mit dem Hinweis, zuerst create_ssl_certificate zu nutzen. Lässt sich die Messung nicht durchführen (Handshake kommt nicht zustande), wird ebenfalls abgelehnt, aber mit eigener Begründung: Das ist WEDER ein Beleg für ein fehlendes NOCH für ein vorhandenes Zertifikat. force=true übergeht diese Prüfung bewusst (z. B. wenn das Zertifikat unmittelbar danach ausgestellt wird). Abschalten wird nie geprüft. Der gesetzte Zustand wird nach dem Schreiben aus Plesk zurückgelesen; gelingt das nicht, sagt die Antwort, dass der genannte Zustand der gewünschte und nicht der gemessene ist.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
forceNoDie Zertifikatsprüfung vor dem Einschalten übergehen (Standard: false) — nur setzen, wenn der Kunde die Weiterleitung ausdrücklich auch ohne gültiges Zertifikat will; Besucher sehen dann ggf. eine Zertifikatswarnung statt der Seite
domainYesDie Domain, z. B. example.de
enabledNotrue (Standard) = Weiterleitung aktivieren, false = deaktivieren

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Adds rich behavioral detail beyond the annotations: reversibility, single-setting scope, real TLS handshake validation before enabling with specific rejection reasons, deliberate force bypass, no validation on disable, and read-back from Plesk with fallback messaging if read-back fails. This is exactly the kind of context annotations cannot carry.

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?

Although lengthy, the description is front-loaded with the core operation and every sentence carries unique operational detail (TLS validation, rejection cases, force bypass, read-back behavior). No filler, and the complexity justifies the size.

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?

Given the mutation nature, lack of an output schema, and multi-step validation logic, the description covers all essential aspects: prerequisites, failure modes, bypass option, and response behavior. An agent has everything needed to invoke and interpret the result correctly.

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 all three parameters (domain, enabled, force) are already documented in the schema. The description adds some nuance about force bypassing the TLS check, but it largely reiterates what the schema provides, so the baseline 3 for high schema coverage 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?

States a specific verb (enable/disable) and resource (automatic HTTP→HTTPS redirect for a domain), and names the finding it resolves. It references diagnose_website/get_website_report as the source of the finding and create_ssl_certificate as a prerequisite, clearly distinguishing itself from generic redirect siblings like redirect_domain.

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 states when to use (to fix a reported 'no HTTPS redirect' finding), prerequisites (a valid TLS certificate, otherwise use create_ssl_certificate first), rejection conditions for missing/expired/foreign certificates and failed handshakes, the force=true bypass, and that disabling requires no check. Alternatives and when-not conditions are clearly covered.

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