Skip to main content
Glama

pyocd_debug_sample_variable

Sample a global variable periodically during target execution. Reads memory at specified address at set intervals, returns timestamped values and statistics with progress updates.

Instructions

Periodically sample a memory location (global variable). Reads a variable every N seconds for M samples while target is running. Returns all samples with timestamps and statistics. Sends progress notifications to prevent AI client timeouts during long sampling sessions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sizeNoVariable size: 1, 2, or 4 bytes
countNoNumber of samples (default 200)
addressYesMemory address of the variable (integer or hex string)
intervalNoSeconds between samples (default 0.5)
halt_on_readNoHalt target for each read (safer but slower)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations, the description carries the full burden. It mentions progress notifications and non-halted operation ('while target is running'), but does not disclose the halt_on_read parameter's effect or potential side effects like halting the target.

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 efficient sentences, front-loaded with the core purpose, no fluff or repetition. Every sentence adds value.

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?

The description covers the sampling process, output (samples, timestamps, statistics), and progress notifications. It omits potential interactions with target state (halt vs run) but is otherwise complete for a periodic sampling tool with a schema and output schema.

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 description adds minimal value beyond the schema. It notes 'N seconds' (interval) and 'M samples' (count) but does not elaborate on size or halt_on_read semantics.

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 clearly states the tool periodically samples a memory location (global variable) while the target is running, distinguishing it from sibling tools like single-time reads or writes.

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 implies usage for periodic observation of a variable over time, but does not explicitly exclude alternatives or provide when-not-to-use guidance. The context is clear but lacks explicit exclusions.

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/konbakuyomu/pyocd-debug-mcp'

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