Skip to main content
Glama

royal-mcp__wp_get_option

Read-onlyIdempotent

Get a single WordPress option value. Requires manage_options capability. The option name must be in the readable allowlist — 13 defaults (blogname, blogdescription, siteurl, home, admin_email, posts_per_page, date_format, time_format, timezone_string, googlesitekit_analytics-4_settings, show_on_front, page_on_front, blog_public) plus any keys plugin authors opt in via the royal_mcp_readable_options filter, plus options an admin allowlists under Royal MCP settings (Allowlisted plugin options) while option writes are enabled. Values under credential-like names (keys, secrets, passwords, tokens) and values shaped like credentials are redacted; a short random value stored under an ordinary name cannot be told apart from normal data and is returned. (site: demo.royalplugins.com) Through Royally: read-only, runs straight away.

Input Schema

NameRequiredDescriptionDefault
nameYes
site_idNoSite to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations cover the safety profile, but the description adds real behavioral context beyond them: the capability requirement, the exact allowlist composition including the filter hook, redaction of credential-like keys and values, and the honest caveat that a short random value under an ordinary name is indistinguishable and will be returned. That last disclosure is exactly the kind of edge-case behavior an agent cannot get from annotations or schema.

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, capability, then the allowlist and redaction rules — the ordering is right. The parenthetical site tag and the trailing "Through Royally: read-only, runs straight away" are boilerplate that restates the readOnly annotation.

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?

With only two parameters and no output schema, the description covers what an agent needs to call it successfully: permission, valid inputs, redaction behavior, and safety. It stops short of saying what happens on a non-allowlisted option name (error vs. empty result), which would close the last gap.

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?

Schema coverage is 50% and the `name` parameter has no schema description at all, so the description carries that burden: it enumerates the 13 default readable options and explains the filter and admin-allowlist extensions of the valid domain. `site_id` is left to the schema, which already documents it with an enum.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Get a single WordPress option value"), which is precise enough to separate it from aggregating siblings like wp_get_site_info or wp_get_plugin_settings. It does not name wp_update_option as the write counterpart, so the read/write distinction is only implied by the verb.

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

Usage Guidelines4/5

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

Gives concrete preconditions: manage_options capability and an allowlist membership requirement, including the conditional case (admin-allowlisted plugin options only while option writes are enabled). It never names an alternative tool or says when to prefer a different retrieval tool, so routing guidance is incomplete.

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