Skip to main content
Glama

read_vars

Read-only

Read variables and expressions from an active Keil uVision debug session, with optional format, depth, and element limits; long arrays are summarized.

Instructions

Đọc biến/biểu thức chỉ đọc (vd "g_motor.duty", "buf[3]", "p->state"). Mảng dài được tóm tắt.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "exprs": "<exprs>"
    },
    "name": "read_vars"
  }
}

Input Schema

NameRequiredDescriptionDefault
fmtNoauto
exprsYes
max_depthNo
max_elemsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds a genuinely useful behavioral trait — long arrays are summarized — which tells the agent output may be truncated. It does not explain how max_elems or max_depth affect that summarization, so the disclosure is partial.

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?

Two compact sentences with zero filler, front-loading the purpose and then the output caveat. Every clause earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a four-parameter tool with a fully undocumented schema and no output schema, the description says too little: three of four parameters and the actual return shape are unaddressed. The summarization note helps but does not close the gap left by 0% schema coverage.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry parameter meaning, and it only partially does: the examples clarify the format of `exprs` (C-like field/index/pointer syntax). The other three parameters — fmt (the only enum), max_depth, and max_elems — are never mentioned, leaving the agent to guess their effect.

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 gives a specific verb and resource (read variables/expressions) and illustrates the expression syntax with three concrete examples ("g_motor.duty", "buf[3]", "p->state"). It does not distinguish this tool from siblings such as read_memory, read_registers, or watch, so an agent can't tell from the text alone which read tool to pick.

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?

Usage is implied by the examples and the read-only/tóm tắt note, but there is no explicit when-to-use or when-not-to-use guidance and no named alternative among read_memory, read_registers, read_log, or watch. The agent must infer that this is for evaluating named variables or arbitrary expressions rather than raw addresses or registers.

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