Skip to main content
Glama
AstralVoidZ
by AstralVoidZ

ppsspp_analyze_log

Read-onlyIdempotent

Filter PPSSPP log files for ERROR, WARNING, and CRASH lines to quickly identify issues during emulator sessions. Optionally apply a keyword for targeted diagnosis.

Instructions

PURPOSE: Filter a PPSSPP log file for ERROR / WARNING / CRASH lines.

USAGE: log_path optional (defaults to the server-mirrored PPSSPP broadcast log at .ppsspp-dfx/output/ppsspp.log, written while a session runs); filter optional (keyword); session_id optional.

BEHAVIOR: READ-ONLY. Reads and filters a log file. Does not contact PPSSPP.

RETURNS: {log_path, matches: [{line_no, text}...], count, filter}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNoAdditional keyword to filter for (in addition to ERROR/WARNING/CRASH). Case-sensitive substring match.
log_pathNoPath to the log file to analyze. S3 whitelist: must be a file under the server-managed .ppsspp-dfx tree (.ppsspp-dfx/output/ or .ppsspp-dfx/config/); arbitrary filesystem paths are rejected. If None, reads the server-mirrored PPSSPP broadcast log (.ppsspp-dfx/output/ppsspp.log — the running game's own ERROR/WARNING lines, captured while a session runs).
session_idNoOptional session ID (reserved for future use; ignored).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYesNumber of matches.
filterYesUser-supplied keyword filter.
matchesYesMatching log lines.
log_pathYesPath to the log file (or '(default)' if from launcher).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already mark it read-only and non-destructive, but the description adds valuable behavioral context: it explicitly says 'READ-ONLY', 'Does not contact PPSSPP', and clarifies that it only reads and filters a log file. This goes beyond the annotations and removes any ambiguity about side effects.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is well-structured with PURPOSE, USAGE, BEHAVIOR, and RETURNS sections. Every section is short, informative, and front-loaded with the tool's core purpose. No filler or redundant explanation.

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 read-only log filter tool, the description covers the purpose, default path, optional filter behavior, side-effect-free behavior, and return shape. The rich parameter schema and output schema cover the remaining details, making the definition complete for an agent to call it correctly.

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%, so the schema already documents each parameter well, including defaults, whitelist restrictions, and case sensitivity. The description summarizes defaults but does not add substantial new parameter semantics beyond what the schema 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?

Description states a specific verb ('Filter'), a specific resource ('PPSSPP log file'), and explicit line types (ERROR/WARNING/CRASH). It clearly distinguishes this from the many sibling PPSSPP tools, none of which are log-filtering tools.

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?

The description gives clear usage context: log_path is optional with a documented default, filter is an optional keyword, and session_id is reserved. It does not explicitly state when not to use it or compare against alternatives, but the tool's function is unique among siblings and the usage section is concrete.

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