Skip to main content
Glama
hidock-mcp
by kms254

hidock_raw_command

Send a raw hexadecimal command to a HiDock device for debugging, with an optional hex byte payload and timeout. Use it to test device commands directly.

Instructions

Send a raw command to the device for debugging. Provide the command ID as a hex number and an optional body as space-separated hex bytes.

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": {
      "commandId": "<commandId>"
    },
    "name": "hidock_raw_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoBody bytes as space-separated hex (e.g. '01 02 03 04'). Defaults to empty.
commandIdYesCommand ID in hex (e.g. '0x11' for FORMAT_CARD, '0x10' for READ_CARD_INFO)
timeoutSecNoTimeout in seconds. Defaults to 30.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It signals danger only obliquely via 'raw' and 'debugging' — it does not state that arbitrary commands can mutate or damage device state, whether effects are reversible, what happens on timeout, or what the response contains.

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?

Two short sentences, front-loaded with the action and purpose, with no filler or redundancy.

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?

A low-level command tool with no annotations and no output schema needs more: what is returned (status code, raw bytes?), how failures surface, and safety caveats. The description is adequate to call it but incomplete for calling it safely and interpretably.

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 100% and every parameter is documented there, including the same hex examples. The description's 'hex number' and 'space-separated hex bytes' phrasing adds no meaning beyond the schema, so the baseline 3 applies.

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?

The description pairs a specific verb (send) with a specific resource (raw command to the device) and frames its purpose as debugging. This distinguishes it in spirit from the sibling tools, which are high-level card/file/device operations, though it never names them.

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?

'For debugging' implies a context of use and implicitly marks this as the low-level escape hatch versus the purpose-built siblings, but there is no explicit when-to-use/when-not guidance and no named alternative for common operations.

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