Skip to main content
Glama

baseline

Saves known-good runtime values or compares current debug-target values with them, using expressions, groups, and tolerance, to detect drift during Keil uVision debugging.

Instructions

Lưu giá trị lúc chạy đúng (save) hoặc so với hiện tại (diff).

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": {
      "action": "<action>",
      "name": "<name>"
    },
    "name": "baseline"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
exprsNo
groupNo
actionYes
tolerance_pctNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.7/5.0
Behavior2/5

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

Annotations declare readOnlyHint=false and destructiveHint=false, so the agent knows this can write but is not framed as destructive. The description does not disclose whether 'save' overwrites an existing baseline with the same name, where the baseline is persisted, or how tolerance_pct affects the comparison outcome. For a mutating tool these are material gaps.

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

Conciseness4/5

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

A single short sentence that front-loads the two modes, with no filler. It is efficient, though the brevity borders on under-specification rather than tight writing.

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?

A five-parameter mutating tool with zero schema descriptions and no output schema needs the description to carry the weight, and it does not. Key facts an agent needs to invoke it correctly, such as what gets stored, overwrite behavior, and tolerance semantics, are absent.

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% across five parameters, and the description only hints at the meaning of 'action' (save vs diff) and vaguely at 'values'. The required 'name', plus 'group', 'exprs', and 'tolerance_pct', receive no explanation in either structured or prose form. The description does not compensate for the coverage gap.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a save-or-compare behavior for 'baseline' values, which gives a rough sense of the operation. However, it never says what a baseline applies to (variables, registers, memory?) or what the two modes operate on, so the verb is clearer than the resource. No sibling differentiation is offered against snapshot, recorder, or watch.

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?

It implicitly distinguishes the two modes: use 'save' to capture values from a known-good run, use 'diff' to compare against current values. That is genuine usage guidance for the action parameter. It says nothing about when to choose this tool over snapshot, recorder, or watch, nor about prerequisites for a diff.

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