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

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. 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.2/5.0
Behavior3/5

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

Annotations already declare write (readOnlyHint=false), non-destructive, and open-world. The description adds a lot beyond that: reversibility, single-setting scope, a real TLS handshake pre-check with distinct rejection reasons, the force bypass, and post-write readback semantics with a fallback message when readback fails. On its own merits this is rich (5-level), but the safety profile is already carried by annotations, so the marginal value is good rather than exceptional.

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 and remediation intent, and every clause carries real operational information (check conditions, rejection reasons, force, readback). It is a dense single block rather than a structured list, which slightly hurts scanability, but there is little waste.

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 explaining what the response reports, including the subtle readback-failure case where the returned state is desired rather than measured. For a mutation tool with a non-trivial pre-check, nothing an agent needs is missing.

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% and all three parameters (domain, enabled, force) are fully documented in the schema, including force's warning about certificate warnings for visitors. The description adds only marginal nuance about force's typical timing, so baseline 3 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 (aktiviert/deaktiviert) and resource (die automatische HTTP→HTTPS-Weiterleitung für eine Domain) and explicitly distinguishes itself from the diagnostic siblings by noting it fixes the 'kein HTTPS-Redirect' finding from diagnose_website/get_website_report rather than only displaying it.

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 (fix the reported HTTPS-redirect finding), prerequisites (use create_ssl_certificate first when no valid cert), an escape hatch (force=true deliberately bypasses the check, e.g. when the cert is issued right afterwards), and an exclusion (disabling is never checked).

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