Skip to main content
Glama
luischang07

Debugging MCP Server

by luischang07

Evaluate Expression

evaluate_expression

Evaluate expressions like variables or calculations during debugging sessions to inspect program state and diagnose issues.

Instructions

Evaluates an expression in the context of the debuggee's current state. Requires an active DAP connection and typically works best when the debuggee is stopped. The context parameter restricts what kind of evaluation is performed: "hover" (default, safe, no side effects) or "watch".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
expressionYesThe expression to evaluate (e.g. "user.name", "arr.length", "x + y").
frame_idNoThe stack frame ID in which to evaluate the expression. If omitted, uses the top frame of the last stopped thread.
contextNoThe evaluation context. "hover" is safe and read-only. "watch" is also read-only but may format results differently.hover
Behavior4/5

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

With no annotations provided, the description carries full burden and does well. It discloses that the tool requires an active DAP connection and works best when debuggee is stopped. It explains the behavioral difference between 'hover' (safe, no side effects) and 'watch' (read-only but different formatting). However, it doesn't mention potential limitations like expression complexity constraints or error handling.

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?

Three sentences with zero waste. First sentence states purpose, second provides prerequisites and optimal conditions, third explains the key parameter distinction. Every sentence earns its place and information is front-loaded appropriately.

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 debug expression evaluation tool with no annotations and no output schema, the description does well. It covers prerequisites, optimal conditions, and key parameter semantics. However, without an output schema, it doesn't describe what the evaluation returns (values, errors, formats), which would be helpful for completeness.

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 baseline is 3. The description adds some value by explaining that 'context' restricts evaluation type and distinguishing between 'hover' and 'watch', but doesn't provide additional semantic context beyond what's already in the schema descriptions. The schema already documents all parameters thoroughly.

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?

The description clearly states the verb 'evaluates' and resource 'expression' with context 'in the context of the debuggee's current state'. It distinguishes from siblings like 'step_debugger' or 'inspect_runtime_state' by focusing specifically on expression evaluation rather than debugging control or state inspection. However, it doesn't explicitly contrast with all possible alternatives.

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

Usage Guidelines5/5

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

The description provides explicit when-to-use guidance: 'Requires an active DAP connection and typically works best when the debuggee is stopped.' It also distinguishes between 'hover' (default, safe) and 'watch' contexts, giving clear operational context. The prerequisites are clearly stated.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/luischang07/debugging-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server