Skip to main content
Glama

Count what a Wine log says is missing or wrong

wine_log_census
Read-only

Summarizes Wine debug logs by counting missing or wrong messages per level and channel, grouping repeats, tallying HRESULTs, and reporting the longest timestamp gap without exposing raw lines.

Instructions

Counts what a Wine debug log says is missing or wrong, by level, channel and message (numbers, paths and quoted text removed so repeats group), plus HRESULTs and the longest silence between +timestamp lines. No raw line leaves.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "wine_log_census"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNomessages to list, 1 to 100, default 15
pathYesa Wine debug log, or a folder of logs (in a readable folder), 50 at most
fieldsNoresult paths to keep, dotted: common.frame_pacing

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.33.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is partly covered; the description adds real context beyond that: normalization (numbers, paths and quoted text stripped so repeats group), the extra HRESULT and longest-silence metrics, and the privacy guarantee 'No raw line leaves.' It does not describe failure behavior for unreadable logs or how truncation of the message list behaves.

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?

One dense, front-loaded sentence that leads with the verb and the resource before the parenthetical normalization detail and the closing privacy claim. Nothing is redundant, though the parenthetical is a little compressed and takes a second read.

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?

With an output schema present, return values need no explanation, so the description only needs to convey what is computed and any constraints. It does that, covering the grouping model, the ancillary metrics, folder limits and non-retention of raw lines; only error/edge behavior for unreadable logs is absent.

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%, so the baseline is 3 and the schema already explains path, top (1-100, default 15) and dotted fields. The description contributes only indirectly, by naming the grouping keys that make 'top' meaningful; it adds nothing about the dotted 'fields' syntax or the 50-log cap beyond what the schema states.

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 names a specific verb (counts) and a specific resource (what a Wine debug log says is missing or wrong), then enumerates the grouping dimension (level, channel, message) plus two extra outputs (HRESULTs and longest silence between +timestamp lines). It is unmistakably about Wine log triage rather than trace/perf capture, though it never explicitly contrasts itself with siblings such as trace_count or trace_query.

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 only implied: the input is a Wine debug log or a folder of logs, so an agent can infer this tool is for Wine log analysis. There is no statement of when to prefer it over trace_count/trace_query, no prerequisites, and no exclusions about what kind of log will not work.

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