Skip to main content
Glama
Takahashi-Kenji

hamlog-mcp

import_from_hdb

Idempotent

Read HAMLOG.HDB logs directly through HAMLOG50.DLL to refresh the cache without ADIF export, while leaving HAMLOG data unchanged.

Instructions

HAMLOG.HDB を HAMLOG50.DLL 経由で直接読み、キャッシュを更新する。

ADIF エクスポートの手間なしに、常に最新のログを取り込める。 読み取り専用で、HAMLOG のデータは変更しない (書き込み API は未バインド)。

HAMLOG50.DLL は 32 ビットなので、DLL を触る部分だけを 32 ビット Python の 子プロセスに分離して実行する。MCP サーバ本体は 64 ビットのままでよく、 32 ビット側に追加パッケージを入れる必要もない。

Args: hdb_path: HAMLOG.HDB のフルパス。省略時は環境変数 HAMLOG_HDB。 dll_path: HAMLOG50.DLL のフルパス。省略時は環境変数 HAMLOG_DLL。 py32_path: 32 ビット python.exe のパス。省略時は環境変数 HAMLOG_PY32。 本サーバ自体が 32 ビットで動いている場合は不要。 use_copy: True (既定) なら HDB と MST を一時領域へ複製してから開く。 HamlogOpen はインデックスが無ければ生成するため、原本のフォルダに ファイルを作らせないための措置。HAMLOG 起動中でも安全に読める。 limit: 先頭から読む件数の上限。動作確認用。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo
dll_pathNo
hdb_pathNo
use_copyNo
py32_pathNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the 32-bit subprocess isolation architecture, that write APIs are unbound (source data is never mutated), env-var fallbacks for all path args, and that use_copy is a guard against HamlogOpen generating index files in the original folder. That is substantial behavioral context; only the return/shape of the cache update is left unexplained.

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 core action is front-loaded in the first sentence, followed by value proposition and architectural rationale. It is a little long, but the subprocess and use_copy paragraphs explain non-obvious behavior that an agent could not get elsewhere, so most sentences earn their place.

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 an import tool with no output schema and five loosely-typed parameters, the description is nearly complete on inputs and runtime behavior. The remaining gap is what the cache update returns or how success/failure is surfaced, which matters for an import operation.

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 carries full documentation burden and does: it explains each of the five parameters, their env-var defaults (HAMLOG_HDB/DLL/PY32), the default and rationale for use_copy, the test-only nature of limit, and when py32_path is unnecessary.

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 states a precise verb+resource: reading HAMLOG.HDB directly through HAMLOG50.DLL and updating the cache, with the ADIF-free benefit made explicit. It is easy to tell apart from layout/config siblings like check_hdb_layout or get_hamlog_input, but it never names the closest sibling alternative (import_log) to disambiguate the import paths.

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 implied rather than stated: 'without the hassle of ADIF export' hints at when this beats an export-and-import flow, and notes it is safe while HAMLOG is running. There is no explicit when-to-use / when-not-to-use guidance and no routing to import_log or other siblings, so the agent must infer the choice.

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