Skip to main content
Glama
microhenrio

io.github.microhenrio/openocd-mcp

by microhenrio

set_permissions

Set session permissions for OpenOCD debugging: toggle read-only mode (blocks all writes), allow memory writes, flash programming, flash erase, raw commands, and limit flash file size.

Instructions

Adjust safety permissions for this session (only provided args change).

read_only : master switch — blocks all writes/flash/erase/raw allow_memory_write : write_memory / write_variable / write_register / write_peripheral_register allow_flash : flash_write (program) allow_flash_erase : flash_erase_sector (destructive; off by default) allow_raw_command : run_command escape hatch flash_max_bytes : reject flashing files larger than this (0 = no limit)

For persistent settings, put a "permissions" object in openocd-mcp.json. (flash_allowed_paths is set there, not here.)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
read_onlyNo
allow_flashNo
flash_max_bytesNo
allow_flash_eraseNo
allow_raw_commandNo
allow_memory_writeNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description fully delegates behavior. It describes each parameter's effect, notes default for flash_erase, and implies session-level changes. Missing details on reversal or side effects, but adequate.

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?

The description is well-structured with bullet-like lines, but the parameter list is somewhat lengthy. The main purpose is front-loaded, and each sentence is informative.

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?

Given the 6 optional parameters, no schema descriptions, and no annotations, the description is fairly complete. It explains all parameters and mentions persistent config. Missing error handling but output schema exists.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must explain every parameter. It does so comprehensively, describing what each parameter controls and their implications (e.g., 'destructive; off by default').

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

Purpose5/5

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

The description clearly states 'Adjust safety permissions for this session', using a specific verb and resource. It distinguishes itself from sibling tools (which are about debugging operations) as a permission management tool.

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

Usage Guidelines4/5

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

It explains that only provided args change and mentions persistent settings in a JSON file, giving context. However, it doesn't explicitly state alternatives or when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microhenrio/openocd-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server