Skip to main content
Glama

Preview a diagnosis

diagnose_preview
Read-onlyIdempotent

Sandbox-only diagnosis, writes nothing (no verdict, no recommendation-trail entry). Two modes: pass shot_id to dry-run a LOGGED shot (optionally overriding its sensory_tags — the "what would this read as?" preview; the shot's own bean and its age at pulled_at are used), or pass the full metric set (bean_id, grinder_id, machine_id, grind_label, dose_g, yield_g, time_s, source) for a hypothetical shot. Identical output shape to diagnose_shot, including bean_context.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dose_gNoDose in grams
sourceNoGrinder position source — affects G1 warning (raw mode only)
time_sNoExtraction time in seconds
bean_idNoCoffee bean ID (must belong to this account)
shot_idNoPreview a logged shot by ID (dry-run; ignores the metric params below)
yield_gNoYield in grams
grinder_idNoGrinder ID (must belong to this account)
machine_idNoMachine ID (must belong to this account)
grind_labelNoGrinder setting label, e.g. "1.1.3"
sensory_tagsNoSensory observations, e.g. ["sour","bitter"]. With shot_id: replaces the stored tags for this preview (omit to use stored; [] = none).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
factsYes
categoryYes
warningsYes
hypothesesYes
kb_versionYes
bean_contextYes
one_variable_onlyYes

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the readOnlyHint and idempotentHint annotations, the description adds valuable behavioral detail: no verdict is produced, no recommendation-trail entry is written, the logged shot's own bean and age at pulled_at are used, and shot_id mode ignores metric parameters. These are meaningful specifics that the annotations alone do not provide.

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?

The description is front-loaded with the most important constraint ('Sandbox-only diagnosis, writes nothing') and organizes the two modes efficiently. Every clause adds useful detail, and the length is appropriate for a tool with 10 parameters and multiple usage modes.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 10-parameter tool with an output schema and safe annotations, the description covers side effects, mode selection, parameter interactions, and output-shape expectations. An agent has enough information to select the correct parameters and understand the result without needing additional clarification.

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?

Although schema coverage is 100%, the description adds critical parameter-interaction semantics: shot_id is a dry-run mode that ignores the metric fields, while the full metric set defines a hypothetical shot. It also clarifies sensory_tags override behavior, which goes well beyond the baseline for a well-covered 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 opens with 'Sandbox-only diagnosis' and specifies two concrete modes: dry-run a logged shot or evaluate a hypothetical shot from a full metric set. This clearly distinguishes the tool from diagnose_shot by emphasizing that it writes nothing while returning the same output shape.

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?

The description gives explicit guidance for when to use shot_id versus the full metric set, and explains the optional sensory_tags override. It does not explicitly say 'use diagnose_shot when you want a real, persistent diagnosis,' but the sandbox-only, writes-nothing framing makes the intended context reasonably clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

B3.4/5.0
Disambiguation5/5

Each tool maps to a distinct resource or action: register_* and list_* are separated by entity, shot tools are split into log/update/delete/diagnose, and the two diagnose variants are explicitly differentiated by dry-run vs. logged evaluation. There is no meaningful overlap that would make an agent choose the wrong tool if it reads the descriptions.

Naming Consistency4/5

The vast majority of tools follow a consistent verb_noun snake_case pattern: register_*, list_*, set_*, update_*, log_*, get_*. The only deviations are noun-first compound names like grinder_math and kb_changelog, which are still readable and do not break the overall predictability.

Tool Count2/5

At 34 tools, this server exceeds the 25+ threshold where the interface becomes heavy for an agent to navigate. Many of the tools are simple register_/List_ pairs across seven entity types, which inflates the surface area even though each individual tool is understandable.

Completeness3/5

Core workflows are well covered: logging, updating, deleting, and diagnosing shots; maintaining equipment; and navigating machine state. However, there are notable lifecycle gaps such as no way to list or delete registered programs, no update/delete operations for most equipment types, and no recipe deletion or unlock, which can leave an agent stuck after certain user requests.

Resources