Skip to main content
Glama

handoff_diagnostics

Generate a privacy-safe diagnostic report with version, OS, directory health, sanitized logs, and a GitHub issue link for troubleshooting or bug submission without exposing conversation content.

Instructions

Generate a privacy-safe diagnostic report (version, OS, directory health, sanitized JSONL logs, GitHub Issue link) for troubleshooting or bug submission. Never includes private conversation content.

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": "handoff_diagnostics"
  }
}

Input Schema

NameRequiredDescriptionDefault
maxLinesNoMaximum number of recent log lines to include (default 50).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden, and it does disclose the most consequential trait: the report is privacy-safe, logs are sanitized, and private conversation content is never included. It leaves unstated whether generation writes a file to disk or merely returns content, and whether any permission or size limits apply, which keeps it below a 5.

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 sentences with zero filler; the resource and its scope come first, and the privacy guarantee is placed as a salient closing constraint. Nothing is repeated or padded.

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 simple one-parameter, zero-required tool with no output schema, the description compensates well by enumerating what the report contains. The remaining gap is the return/side-effect model — inline payload versus generated file — which an agent would want to know before calling.

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?

There is a single optional parameter whose schema coverage is 100%, including its default of 50 and a maximum of 200. The description adds no further meaning about maxLines, so the baseline of 3 applies since the schema does all the work.

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?

States a specific verb and artifact ("Generate a privacy-safe diagnostic report") and enumerates the report's contents: version, OS, directory health, sanitized JSONL logs, and a GitHub Issue link. The purpose ("troubleshooting or bug submission") plus the privacy qualifier separates it cleanly from siblings like handoff_export or handoff_list, which imply data export/listing rather than diagnostic bundling.

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?

Gives clear triggering context — use when troubleshooting or filing a bug report — which is enough for an agent to recognize the situation. It does not explicitly exclude alternatives (e.g., "use handoff_export instead if you want raw data"), so it stops short of full when/when-not guidance.

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