Skip to main content
Glama

kilo_metrics

Summarize delegation runs, outcomes, code volume, cost savings, decisions, and defect categories to judge whether delegation pays off and which spec gaps to fix next.

Instructions

Summarize kilo-mcp usage: runs, outcomes, generated code volume, real delegation cost vs estimated inline-Claude cost, recorded orchestration decisions from kilo_log_decision, and defect categories from kilo_log_issue. Use this to judge whether delegation is paying off and which defect classes the spec template should address next.

Raw data lives in JSONL files (metrics.jsonl / issues.jsonl / decisions.jsonl) under KILO_MCP_DATA_DIR (default ~/.local/share/kilo-mcp) for ad-hoc analysis.

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

Input Schema

NameRequiredDescriptionDefault
daysNoLook-back window in days (default 30).

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does reasonably well: it discloses data provenance (metrics.jsonl / issues.jsonl / decisions.jsonl under KILO_MCP_DATA_DIR, default ~/.local/share/kilo-mcp), which tells the agent where results come from and what a stale or missing data dir would mean. "Summarize" implies a read-only operation but it never states that explicitly, nor whether the read is expensive on large logs.

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?

It is front-loaded with the summary contents and the decision-oriented use case, then closes with data-location context in a short second paragraph. The enumerations are dense but each item maps to a real output dimension; only light trimming would be possible.

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?

An output schema exists, so return values need not be described, and the single optional parameter is documented in the schema. What remains is purpose, decision framing, and data provenance, all of which are covered; only the read-only/performance characteristics are left implicit for a tool that scans log files.

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 single `days` parameter is already documented with its default of 30 in the schema. The description adds no extra meaning about the look-back window, so it neither compensates for nor improves on the schema — baseline 3.

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 opens with a specific verb+resource ("Summarize kilo-mcp usage") and then enumerates the exact contents: runs, outcomes, code volume, delegation cost vs inline-Claude cost, decisions, and defect categories. It also disambiguates the sibling data sources (kilo_log_decision, kilo_log_issue) as inputs rather than alternatives, so an agent can tell what this tool produces versus what feeds it.

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?

It gives a clear purpose statement for when to call it: "use this to judge whether delegation is paying off and which defect classes the spec template should address next." The final paragraph also routes ad-hoc analysis to the underlying JSONL files, which is a useful boundary, but no actual alternative tool is named for exploration-style queries.

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