Skip to main content
Glama

Opus Growth, Ad Platforms MCP Connector

WordPress Site Languages

wordpress_languages
Destructive

Lists the languages a multilingual WordPress site (Polylang / WPML) is set up for, and ADDS a new one. action: 'list' (default) | 'add'.

Adding the language is the FIRST step of publishing a site in another language, and skipping it fails silently: wordpress_create_post(language='de') answers ok while Polylang quietly ignores an unregistered language, so the page ends up with no language at all and falls back to the default one on its next save. list shows each language's code, locale, writing direction, post count and which one is the default.

For 'add', code is the language code you will pass to wordpress_create_post ('de', 'ru', 'ar', 'fr'); locale is optional and derived from the code when omitted; the writing direction is set automatically for right-to-left languages (Arabic, Hebrew, Persian, Urdu) unless you pass rtl yourself. Adding a language is a structural change to a multilingual site, so confirm=false PREVIEWS it — the reply says whether it can actually be added before anything is written. Adding a language twice is safe — the existing one is reported back. WPML has no API for adding languages, so there the reply says to use the WPML screen. After adding a language, create its pages and then connect them with wordpress_link_translations, otherwise the language switcher and the hreflang tags stay empty.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rtlNo
codeNo
flagNo
nameNo
orderNo
actionNolist
localeNo
confirmNo
site_urlNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Added
  4. Removed
  5. Added
  6. Removed
  7. Added
  8. Removed
  9. Added
  10. Removed
  11. Added
  12. Removed
  13. Added
  14. Removed
  15. Added
  16. Removed
  17. Added
  18. Removed
  19. Added
  20. Removed
  21. Added
  22. Removed
  23. Added
  24. Removed
  25. Added
  26. Removed
  27. Added
  28. Removed
  29. Added
  30. Removed
  31. Added
  32. Removed
  33. Added
  34. Removed
  35. Added
  36. Removed
  37. Added
  38. Removed
  39. Added

TDQS

A4.8/5.0
Behavior5/5

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

Far exceeds what annotations convey: it discloses that confirm=false previews the change, that adding a language twice is safe and reports the existing one, that WPML cannot add languages, and that an unregistered language makes wordpress_create_post silently fall back to default. The destructive/structural nature aligns with destructiveHint=true.

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-loads the two modes and then the high-stakes failure mode before the parameter details, so every sentence carries operational value. It is dense and long for a single paragraph, but there is little outright 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?

For a 9-parameter, multi-mode, structural-change tool the description covers the workflow, the silent-failure trap, provider limitations, idempotency behavior and preview semantics. Return values need not be described since an output schema exists.

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 0% schema coverage the description must carry the parameter burden, and it explains the critical ones well: action default, code semantics (the string later passed to wordpress_create_post), locale derivation from code, automatic rtl for Arabic/Hebrew/Persian/Urdu, and confirm as a preview toggle. It leaves flag, name, order and site_url undocumented, so coverage is strong but not complete.

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+resource for both modes: lists the languages a multilingual WordPress site (Polylang/WPML) is configured for and adds a new one, with 'list' as the default action. It is immediately distinguishable from siblings like wordpress_link_translations and wordpress_create_post, which it explicitly names.

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 and exclusions: add is the FIRST step of publishing in another language, and skipping it fails silently. It also states that WPML has no API for adding languages and routes the agent to the WPML screen, and prescribes the follow-up sequence (create pages, then wordpress_link_translations).

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.