Skip to main content
Glama

register_target_configuration

Registers a board's debugger, interface, and target configuration using OpenOCD script paths so firmware flashing and debugging target the correct hardware.

Instructions

Register a board using paths relative to the OpenOCD scripts directory.

Example interface_config: interface/stlink.cfg Example target_config: target/stm32f4x.cfg

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": {
      "board_name": "<board_name>",
      "debugger": "<debugger>",
      "interface_config": "<interface_config>",
      "target_config": "<target_config>"
    },
    "name": "register_target_configuration"
  }
}

Input Schema

NameRequiredDescriptionDefault
debuggerYes
transportNoswd
board_nameYes
target_configYes
interface_configYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and mostly does not: it never says whether registration persists, overwrites an existing board_name, validates that the referenced .cfg files exist, or requires an OpenOCD restart. The one genuinely useful behavioral fact is that paths are resolved relative to the OpenOCD scripts directory, which saves the agent from guessing absolute paths.

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?

Three short lines, front-loaded with the core action, followed by the two most format-sensitive examples. No filler, though the examples could have been folded into a single sentence naming both fields.

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 5-parameter mutation with no annotations, no output schema, and zero schema descriptions, the definition is under-specified: it omits failure behavior, idempotency, and the semantics of three parameters. An agent could construct the two path arguments but would be guessing on debugger, transport, and board_name.

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 5 parameters, so the description must compensate and only partly does: it gives concrete format examples for interface_config and target_config. It says nothing about board_name, debugger (what values are valid?), or transport (default 'swd' but no accepted values), leaving 3 of 5 parameters undocumented anywhere.

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 and resource: 'Register a board', clarified by the OpenOCD scripts-directory scoping and the two example config paths. An agent can tell this creates a board/target configuration rather than retrieving one, though it never explicitly contrasts with get_target_configuration.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance, no prerequisites (e.g. that it should precede connect_gdb/execute_openocd_command), and no mention of what happens if the board is already registered. Usage is only inferable from the verb 'Register'.

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