Skip to main content
Glama

get_best_practices

Retrieve recommended workflows, forbidden operations, and common errors for a specified J-Link task type, such as register reads, device connections, memory or flash operations, and debug control.

Instructions

Get best practices for specified task type / 获取指定任务类型的最佳实践.

Args: task_type: Task type, supports: / 任务类型,支持: - read_registers: Read registers / 读取寄存器 - connect_device: Connect device / 连接设备 - memory_operations: Memory operations / 内存操作 - flash_operations: Flash operations / Flash 操作 - debug: Debug control / 调试控制

Returns: Best practices, including recommended workflows, forbidden operations, and common errors / 最佳实践,包含推荐流程、禁止操作和常见错误

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": {
      "task_type": "<task_type>"
    },
    "name": "get_best_practices"
  }
}

Input Schema

NameRequiredDescriptionDefault
task_typeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the shape of the payload ('recommended workflows, forbidden operations, and common errors'), which implies a read-only, advisory call, but it says nothing about whether the content is static or target-dependent, nor about any cost or limits.

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?

Front-loaded summary sentence followed by Args and Returns blocks in a conventional layout. The bilingual duplication roughly doubles the length, a deliberate i18n choice rather than noise, but it does add bulk.

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 single-parameter advisory read with an output schema covering return values, the definition gives enough: what it does, the legal input domain, and the categories of content returned. What is missing is only positioning against the other guidance-returning siblings.

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

Parameters4/5

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

Schema coverage is 0% and the schema exposes no enum, so the description is doing real work by enumerating the five accepted task_type values with short glosses. It still does not state that these strings are the only legal values or what happens on an unsupported value, keeping it short of a 5.

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?

States a specific verb+resource ('Get best practices') and immediately scopes it to a task type, then enumerates the five supported values. It does not explicitly distinguish itself from siblings like get_usage_guidance or get_forbidden_operations, so an agent cannot fully rule out overlap from the text alone.

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 only implied: the tool returns recommended workflows and forbidden operations for a task type, which suggests calling it before performing that task. There is no explicit 'use when' statement, no exclusions, and no pointer to the sibling tools that also return guidance.

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