Skip to main content
Glama
aiterm-mcp
by kitepon

diagnostics

Returns read-only, machine-readable JSON status checks with safe vocabulary for monitoring and automation, plus parent delivery hook registration state to signal when setup is required.

Instructions

監視・自動化向けの read-only 診断。安全な状態語彙だけを機械可読 JSON で返す(PTY 内容・認証情報・path・環境値は返さない)。2つ目のtextは親配送hook(Claude Code・Cursor)の登録状態で、caller_status が setup_required なら呼出元からのagent送信は拒否される。aiterm-setup を実行する。

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNo既定v1は既存の固定fieldを維持。v2はPTY診断の安全なreason_codeを含む。

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.63.7
    • addedInput schema / properties / format
      Added value: +{
      +  "description": "既定v1は既存の固定fieldを維持。v2はPTY診断の安全なreason_codeを含む。",
      +  "enum": [
      +    "v1",
      +    "v2"
      +  ],
      +  "type": "string"
      +}
  2. First observedv0.20.2

TDQS

B3.3/5.0
Behavior3/5

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

No annotations, so the description carries the full burden. It does disclose meaningful behavior: read-only, no sensitive data returned, and a gating condition where caller_status=setup_required blocks agent sends. But the phrase '2つ目のtext' (the second text) is unclear and the output structure is not clearly described, leaving gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is compact and front-loads the read-only safe-state nature. However, the reference to 'the second text' is confusing and the hook-registration sentence feels loosely attached, weakening structure and clarity.

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?

With no annotations and no output schema, the description must explain behavior and returns. It conveys the privacy guarantees and one gating condition, but leaves the actual return structure and the meaning of 'the second text' ambiguous, so it is only partially complete for a diagnostics tool.

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 the format enum (v1/v2) is fully documented in the schema. The tool description does not add syntax or format meaning beyond what the schema already provides, so the baseline of 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?

States a specific verb and resource: read-only diagnostics returning machine-readable safe-state JSON. The privacy scoping (no PTY contents, credentials, paths, or environment values) helps distinguish it from pty_read/pty_observe siblings. The added sentence about delivery-hook registration status muddies the core purpose somewhat.

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?

Indicates context ('for monitoring/automation') and one conditional action (run aiterm-setup when caller_status is setup_required), which implies when to use it. However, it never explicitly contrasts with sibling diagnostic tools or states when-not to use it, leaving selection guidance implied.

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