Skip to main content
Glama
Takahashi-Kenji

hamlog-mcp

import_log

Idempotent

Import HAMLOG ADIF or CSV log files to build or update the local SQLite cache for read-only searches. Reads exported logs without modifying HAMLOG data.

Instructions

HAMLOG からエクスポートしたログファイルを読み込んでキャッシュを更新する。

HAMLOG 側のデータは読むだけで変更しない。書き込むのは自前の SQLite のみ。 ADIF (.adi/.adif) を推奨。HAMLOG 独自 CSV も best-effort で読める。

Args: path: ログファイルのパス。省略時は環境変数 HAMLOG_EXPORT を使う。 replace: True なら既存キャッシュを破棄して入れ直す。False なら追記。 csv_columns: CSV の列順が既定と違う場合に指定する列名リスト。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathNo
replaceNo
csv_columnsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior1/5

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

The description states that replace=True (the schema default) discards the existing cache and re-inserts it, i.e. a non-additive update that removes data. That directly contradicts the annotation destructiveHint=false, which asserts only additive updates are performed. The rest of the disclosure (source read-only, writes confined to the local SQLite, best-effort CSV parsing) is genuinely useful, but the replace semantics conflict with the declared destructive profile.

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 purpose and the read-only/write-scope caveat are front-loaded in two short sentences, followed by a compact Args block covering all three parameters. Every line carries information; the only mild redundancy is restating the write scope already implied by the first sentence.

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 a local file-import tool with no output schema, the description covers source format support, the safety boundary (HAMLOG untouched), and every parameter. It omits what an agent would still want to know about results and failure modes — whether duplicate QSOs are merged or appended, what happens on a malformed file, and what the import reports back — which keeps it short of fully complete.

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 the full burden and does: path (file path, defaulting to the HAMLOG_EXPORT environment variable), replace (True = discard and rebuild the cache, False = append), and csv_columns (explicit column-name list when the CSV column order differs from the default). Each parameter's meaning and default behaviour is stated, adding real value beyond the bare schema.

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 names a specific verb and resource (read a HAMLOG-exported log file and update the local cache) and immediately scopes what is and is not touched: HAMLOG data is read-only, only the tool's own SQLite is written. That scope statement also separates it from siblings such as import_from_hdb or check_hdb_layout, which deal with HDB sources rather than HAMLOG exports.

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?

It gives input-format guidance (ADIF preferred, HAMLOG CSV best-effort) and the fallback behaviour of the path argument, which implies when the tool is applicable. However, it never states when to prefer this tool over the sibling import_from_hdb / get_hamlog_input / check_hdb_layout, nor any precondition (e.g. that an export must already exist). Usage is implied rather than routed.

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