Skip to main content
Glama

Verzeichnis mit Passwort schützen

create_protected_directory

Schützt ein Verzeichnis einer Domain mit einer Passwortabfrage (HTTP-Basic). Der Bereich ist danach ohne Anmeldung nicht mehr erreichbar, auch nicht für Suchmaschinen. Das Passwort wird serverseitig erzeugt. Die Zeichenregeln stehen bei den Parametern und werden serverseitig geprüft; lies sie, bevor du dem Kunden Werte vorschlägst — Umlaute sind nur im Titel erlaubt, in "directory" und "username" nicht.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
titleNoText, den der Browser im Anmeldefenster zeigt, 1–60 Zeichen. Umlaute sind erlaubt (anders als bei "directory" und "username"), Satzzeichen dagegen nicht: erlaubt sind nur Buchstaben, Umlaute und ß, Ziffern, Leerzeichen, Punkt, Bindestrich, Unterstrich. Kein Komma, keine Klammern, kein Doppelpunkt, kein Ausrufezeichen, kein "&", kein "/" — und keine anderen Akzentbuchstaben wie "é". gültig: "Interner Bereich", "Änderungen intern", "Geschützter Bereich" (der Standard). abgewiesen: "Interner Bereich, bitte anmelden", "Kundenbereich (intern)", "Bereich: intern", "Bitte anmelden!", "Intern & Extern", "Café intern".
domainYesDie Domain, z. B. example.de
usernameYesBenutzername für die Anmeldung, 3–32 Zeichen. Das erste Zeichen ist ein Buchstabe oder eine Ziffer, danach Buchstaben A–Z/a–z, Ziffern, Punkt, Bindestrich, Unterstrich — keine Umlaute, keine Leerzeichen, kein "@". gültig: "team", "team-01", "max.mustermann", "1team". abgewiesen: "müller", "_team", "ab", "max@firma".
directoryYesZu schützendes Verzeichnis, mit führendem Schrägstrich, je Namensteil höchstens 60 Zeichen. Erlaubt sind nur Buchstaben A–Z/a–z, Ziffern, Punkt, Bindestrich, Unterstrich — keine Umlaute, keine Leerzeichen, kein ".." und kein Schrägstrich am Ende. Auch "/" allein geht nicht; ein ganzer Auftritt lässt sich so nicht schützen. gültig: "/intern", "/intern/kunden", "/Intern-2024". abgewiesen: "/geschützt", "/mein ordner", "intern", "/intern/", "/".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations only say readOnlyHint=false / destructiveHint=false, so the description carries the real burden and does: HTTP-Basic prompt, directory becomes unreachable without login, blocked from search engines, password is generated server-side (agent supplies none), and all values are validated server-side. These are non-obvious operational facts an agent needs before calling.

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?

Four short sentences, front-loaded with the operation and its effect, then the password-generation and validation notes. No filler, though the closing sentence partially duplicates details already in the schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so the description must cover behavior, and it covers effect, auth model, and server-side generation well. It does not address what happens if the directory is already protected or how to undo the change, which is the main remaining gap.

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 the per-parameter docs already include exhaustive valid/invalid examples, so the schema does the heavy lifting. The description adds only a cross-cutting reminder that umlauts are permitted in 'title' but not in 'directory'/'username', which is useful but marginal, matching the baseline 3.

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 (protect a domain directory with HTTP-Basic auth) plus the observable effect (area unreachable, including for search engines). This is unmistakably distinct from the inverse sibling remove_protected_directory and from the other create_* tools.

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

Usage Guidelines3/5

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

The description implies when the tool is relevant and gives one process instruction ('lies die Regeln, bevor du dem Kunden Werte vorschlägst'), but it never states when to use this versus alternatives (e.g. hotlink protection or other security measures) or what prerequisites/ordering apply. Usage is implied rather than explicit.

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