Skip to main content
Glama
AstralVoidZ
by AstralVoidZ

ppsspp_evaluate

Read-onlyIdempotent

Evaluate debugger expressions (register names, hex literals, arithmetic) for a session and get the computed value. Read-only; dereference memory via read_u32 instead.

Instructions

PURPOSE: Evaluate a debugger expression (register names, hex literals, simple arithmetic).

USAGE: session_id + expression. No '*addr' dereference syntax — read memory with read_u32 instead.

BEHAVIOR: READ-ONLY. Pauses/resumes the CPU internally.

RETURNS: {expression, value, response, text}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expressionYesDebugger expression to evaluate. Examples: 'r5 + 0x10', 'pc', 'r5 + r6'. The supported syntax is whatever PPSSPP's expression evaluator accepts. Note: PPSSPP's evaluator does NOT support dereference syntax like '*0x08804000' — use read_u32 / read_bytes instead to read memory at an address.
session_idYesActive session ID.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
textYesUnified text representation: '{EXPR} = 0x{VAL:X}' when value is an int, or '{EXPR} = {value!r}' otherwise.
valueYesEvaluated value (int) if numeric, else None.
responseYesRaw PPSSPP WebSocket response.
expressionYesThe expression evaluated.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint, so the description's 'READ-ONLY' label mostly repeats structured data. However, 'Pauses/resumes the CPU internally' adds a meaningful behavioral side effect beyond the annotations exceptional. This helps an agent understand why a seemingly safe read may still briefly affect execution state.

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 compact and well-organized into PURPOSE, USAGE, BEHAVIOR, and RETURNS. Every line carries meaningful operational information without redundancy or fluff. The most important constraints are front-loaded.

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?

Given the two parameters, high schema coverage, and rich annotations, the description provides everything needed to invoke the tool correctly: purpose, required inputs, a behavioral side effect, an alternative for an unsupported use case, and the return shape. Nothing essential is missing.

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%, and the expression parameter already documents supported syntax, examples, and the no-dereference caveat. The description's 'session_id + expression' adds no new semantic value beyond the schema. There is no coverage gap for the description to compensate for, so baseline 3 is appropriate.

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?

The description opens with a specific verb and resource: 'Evaluate a debugger expression', and enumerates the accepted operand classes ('register names, hex literals, simple arithmetic'). It also separates itself from memory-reading tools by explicitly stating dereference syntax is not supported and pointing to read_u32 instead.

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 'USAGE' line indicates that session_id and expression are required. More importantly, the exclusion 'No '*addr' dereference syntax — read memory with read_u32 instead' gives an explicit when-not-to-use rule and names the alternative. It does not cover all possible alternatives among the many sibling tools, but the key routing edge case is handled.

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