Skip to main content
Glama

get_playground_logs

Retrieve recent Playground logs to check PHP errors, startup messages, and debug WordPress runtime issues.

Instructions

Returns recent logs from the Playground instance. Useful for checking PHP errors, startup messages, and debugging.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_playground_logs"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNoFilter log output. "all" = everything, "error" = PHP errors/warnings/notices, "php" = PHP-related output. Default: "all".
linesNoNumber of log lines to return. Default: 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.1

TDQS

A3.5/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the disclosure burden. It conveys that only recent logs are returned and what categories they cover, but says nothing about truncation, buffering, whether logs persist across restarts, or whether the call is a safe read (though the verb 'Returns' implies it).

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?

Two compact sentences, front-loaded with the purpose followed by the use case; no filler. It could be tightened marginally but nothing is wasted.

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?

For a simple, annotation-free read tool with two fully documented optional parameters, the definition covers what the agent needs to invoke it. The remaining gap is the absence of an output schema combined with no statement of return shape (raw text vs. array of lines) or the recency window, which would have helped.

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%, with both the type enum and the lines bound fully documented including defaults, so the schema does the heavy lifting. The description adds no additional meaning about the filter types or line limits beyond what the schema states.

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 ('Returns recent logs from the Playground instance') plus the content types it surfaces (PHP errors, startup messages). It is clearly distinct from siblings like start_playground/stop_playground, but it never explicitly distinguishes itself from get_playground_info or wp_cli, leaving the agent to infer the boundary.

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?

'Useful for checking PHP errors, startup messages, and debugging' gives an implied usage context, but there is no explicit when-to-use/when-not framing and no pointer to alternatives such as wp_cli for active diagnosis. Adequate but leaves routing to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.