Skip to main content
Glama

mcp-easy-ai__wp_get_error_log

Read-only

Get the last lines of the PHP error log, newest last. Reads ONLY the error_log path PHP is configured with (where WP_DEBUG_LOG writes) or, failing that, wp-content/debug.log — never any other file. Optional: lines (default 100, max 1000), grep (plain case-insensitive text match, applied after redaction). Secrets are redacted (API keys, Bearer/Basic tokens, password=… values, URL credentials, salts, JWTs). Returns { path_source ("error_log ini" or "wp-content/debug.log"), path (relative to the WordPress root, or the file name only), size_bytes, modified (ISO 8601 UTC), lines: [...], returned, truncated (true when the 64 KB response cap or the scan limit cut the result), scanned_bytes }, or { path_source: null, reason } when no readable log exists. Requires manage_options; on multisite only a network administrator, because the log is shared by every site on the server. Through Royally: its server marks it read-only, so it runs straight away.

Input Schema

NameRequiredDescriptionDefault
grepNoOnly lines containing this text (case-insensitive, not a regex).
linesNoHow many of the most recent (matching) lines to return, 1-1000.
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.6/5.0
Behavior5/5

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

Goes well beyond the annotations: names the required capability (manage_options), the multisite network-admin restriction because the log is shared, the exact redaction classes applied, and the 64 KB/scan truncation limits. Annotations cover read-only safety, and the description adds the operational constraints an agent actually needs.

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 scope, then parameters, then return shape, with no filler sentences. The closing note about the server marking it read-only partially restates readOnlyHint=true, a minor redundancy in an otherwise dense description.

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?

No output schema exists, yet the description enumerates every returned field (path_source, path, size_bytes, modified, lines, returned, truncated, scanned_bytes) and the failure shape ({path_source: null, reason}). Nothing needed to call or interpret the result is missing.

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 100%, so baseline is 3, but the description adds real meaning: grep is a plain case-insensitive match applied *after* redaction, and it clarifies the lines default/max and its interaction with the response cap. That ordering detail is not in the schema.

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 ('Get the last lines of the PHP error log, newest last') and immediately bounds the scope to two exact paths, distinguishing it from generic status/settings readers like wp_get_site_status or wp_get_option.

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?

Explicitly says it reads only the PHP-configured error_log or wp-content/debug.log and 'never any other file', which tells the agent when this is the right tool. It doesn't name a sibling alternative for general diagnostics, so it stops short of a 5.

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