Skip to main content
Glama

WordPress-Permalinks setzen

set_wordpress_permalinks
Idempotent

Stellt die Permalink-Struktur einer WordPress-Installation von der einfachen Form (?p=123) auf eine schöne Adresse um (Standard: /beitragsname/; alternativ /Jahr/Monat/beitragsname/ oder /Jahr/Monat/Tag/beitragsname/). Erstellt davor automatisch ein Sicherheits-Backup und weist dessen Vorhandensein nach — lässt es sich nicht erstellen oder nicht nachweisen, wird NICHTS geändert. Ändert NUR die einfache Struktur: Hat die Installation schon eine schöne Struktur, wird nichts verändert (auch nicht auf eine andere), weil das bestehende Links und die Suchmaschinen-Platzierung ungültig machen würde — dann steht in der Antwort, wie der Kunde das selbst unter Einstellungen → Permalinks entscheidet. Nach dem Setzen wird die Struktur nachgelesen; gelingt das nicht, meldet das Tool ehrlich "unverified" statt Erfolg zu behaupten. Dem Kunden danach mitgeben: ein paar Seiten prüfen; bei einem 404-Fehler im WordPress-Backend unter Einstellungen → Permalinks einmal "Änderungen speichern" klicken; WordPress leitet alte ?p=123-Adressen meist automatisch um, extern gesetzte Links ggf. anpassen. Gibt es auf der Domain mehrere WordPress-Installationen, ist site_url nötig.

Input Schema

NameRequiredDescriptionDefault
domainYesDie Domain, z. B. example.de
site_urlNoBei mehreren WordPress-Installationen auf derselben Domain: welche gemeint ist
structureNoGewünschte schöne Struktur: "beitragsname" = /beitragsname/, "monat_und_name" = /Jahr/Monat/beitragsname/, "tag_und_name" = /Jahr/Monat/Tag/beitragsname/. Standard: beitragsname.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already cover the safety profile: readOnlyHint=false, idempotentHint=true, destructiveHint=false, so the agent knows this is an idempotent mutation. The description adds specifics beyond that: backup creation, verification, and aborts if the backup is not verifiable, plus an honest 'unverified' state after post-read. It does not state required permissions or how the change is applied, so despite useful details it remains at a solid but not exceptional level.

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?

The core action is front-loaded in the first sentence, and the subsequent sentences each carry behavioral information (backup, refusal, verification, customer follow-up). It is a dense block rather than a structured bullet list, but no sentence is genuinely wasted.

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?

For a mutation tool with no output schema, it covers failure modes, the no-op condition, the verification result ('unverified'), and even what the response will contain. Everything the agent needs to call and interpret the result is given.

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?

The description explains the conditional need for site_url ('Gibt es auf der Domain mehrere WordPress-Installationen, ist site_url nötig'), adding actionable meaning beyond the schema. This is a useful clarification, though it overlaps with information the schema already provides.

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 ('Stellt die Permalink-Struktur einer WordPress-Installation ... um') with the exact scope of the change (from ?p=123 to a pretty URL) and the target formats. An agent immediately knows this is a WordPress permalink mutation tool, distinct from siblings like get_wordpress_status or update_wordpress_core.

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 defines when it acts (only plain structure) and when it does not ('Hat die Installation schon eine schöne Struktur, wird nichts verändert'), including the reason and a redirect to manual action by the customer. It also states the precondition for site_url, so the agent knows the branching condition before calling.

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