Skip to main content
Glama

lookup

Read-only

Resolve a symbol, pattern, address, or file-line location to the matching function, line, or address in a Keil debug session.

Instructions

Tra đúng một trong: symbol, pattern (+kind), addr -> hàm/dòng, file_line -> addr.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "lookup"
  }
}

Input Schema

NameRequiredDescriptionDefault
addrNo
kindNo
symbolNo
patternNo
file_lineNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the safety profile is covered. Beyond that the description only discloses the one-of exclusivity rule; it says nothing about what happens when several or zero keys are supplied, or whether misses return an error or an empty result.

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 sentence with no filler, front-loading the exclusive-one-of constraint before the mode list. The arrow shorthand is efficient but drifts toward cryptic, costing a point versus plainly stating each mode's input and result.

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 tool with no schema descriptions and no output schema needs more than one terse line. Input formats for addr and file_line, the meaning of kind, and the shape of the returned function/line result are all 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 coverage is 0% and there are five parameters, so the description must carry the meaning, and it does name every key and the one combination that matters (pattern plus kind). It does not explain what "kind" does beyond pairing with pattern, nor the accepted formats for addr or file_line, leaving real gaps at zero coverage.

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?

"Tra" (look up) plus the four resolution modes gives a recognizable verb and resource: symbol, pattern, addr, file_line lookups. But the purpose remains vague because the arrow notation ("addr -> hàm/dòng", "file_line -> addr") compresses the actual behavior into shorthand, and nothing distinguishes this from siblings like read_vars, call_stack, or baseline that also resolve addresses and symbols.

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?

"Tra đúng một trong" explicitly states the mutual-exclusivity contract: pass exactly one of these keys. That is useful selection guidance among parameters, but the description never says when this tool is preferred over siblings such as read_memory or read_vars, only how to fill it in.

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