Skip to main content
Glama

search_openocd_commands

Find OpenOCD commands by name, syntax, or description to identify the correct command for firmware flashing and debugging.

Instructions

Search the bundled OpenOCD command catalogue by name, syntax or description.

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": {
      "query": "<query>"
    },
    "name": "search_openocd_commands"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.2

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose that the catalogue is 'bundled' (i.e. local, not a live target query) and what fields are matched. It omits anything about match semantics (substring vs exact), result ordering, result limits, or that it is a non-mutating read.

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?

A single front-loaded sentence with no filler; the resource and the match fields come first and nothing is repeated.

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

Completeness3/5

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

An output schema exists, so return-value details are not required, and the tool is simple with one parameter. However, for a search tool whose results must be interpreted, the description says nothing about match behavior or result set, leaving a meaningful gap given zero annotation coverage.

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 description coverage is 0% for the single 'query' parameter, so the description must compensate. It does add real meaning by stating the query matches against name, syntax, or description, which tells the agent it can pass a command name, a syntax fragment, or free text. It gives no format, casing, or matching-rule detail beyond that.

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 (Search) and a specific resource (the bundled OpenOCD command catalogue), plus the three match fields (name, syntax, description). An agent can tell this retrieves command documentation rather than executing or configuring anything. It stops short of explicitly differentiating itself from the sibling search_openocd_configs.

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?

There is no explicit when-to-use or when-not guidance, and no routing to alternatives such as execute_openocd_command (run a command) or get_openocd_command_mode (inspect a mode). The lookup use case is only weakly implied by the word 'Search'.

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