Skip to main content
Glama

Diagnose a shot

diagnose_shot
Read-onlyIdempotent

Evaluate shot metrics to provide ranked hypotheses (C6) and warn on flip-flops (G2) or fatigue (G6). Resolves the SHOT's own bean — age computed at the shot's pulled_at — never the active profile, and echoes it as bean_context, so diagnosing an older or differently-filed shot is always safe. The engine reads metrics and sensory tags — NOT free-text notes — so make sure taste feedback is recorded as sensory_tags on the shot (via log_shot or update_shot) before diagnosing; otherwise an in-range shot that tastes bad will come back "balanced".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
shot_idNoOptional shot ID; defaults to last pulled shot.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
factsYes
categoryYes
warningsYes
hypothesesYes
kb_versionYes
bean_contextYes
one_variable_onlyYes

TDQS

A4.4/5.0
Behavior5/5

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

The description substantially enriches the readOnly/idempotent annotations by disclosing exactly what the engine reads (metrics and sensory_tags, not notes), how bean age is computed (at pulled_at using the shot's own bean), and what output context is emitted (bean_context). This is meaningful behavioral information beyond the structured annotations, and there is no contradiction with the declared readOnlyHint, idempotentHint, or destructiveHint.

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 composed of three dense sentences, each earning its place: the first states the core outputs, the second explains bean-resolution semantics and safety, and the third states the key input prerequisite and failure mode. It is front-loaded with the main purpose and contains no filler or redundant restatement.

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?

Given the single optional parameter, the presence of an output schema, and readOnly/idempotent annotations, the description covers the essential operational context: what data is used, how bean context is resolved, what must be prepared before calling, and what can go wrong. The only minor omission is an explicit pointer to diagnose_preview, but the description is otherwise complete for safe and correct invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already documents shot_id as optional with a default of the last pulled shot, so schema coverage is 100%. The description adds meaningful parameter-related context by explaining that diagnosing an older or differently-filed shot is safe because the shot's own bean and pulled_at are used. This goes beyond the schema's basic field documentation and helps the agent reason about the optional shot_id behavior.

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 states a specific verb and resource: 'Evaluate shot metrics to provide ranked hypotheses (C6) and warn on flip-flops (G2) or fatigue (G6).' It clearly describes what diagnose_shot does and distinguishes itself by clarifying it uses the shot's own bean rather than the active profile and reads sensory_tags rather than free-text notes. However, it does not explicitly name or contrast a sibling tool like diagnose_preview, so sibling differentiation is implicit rather than explicit.

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 clear usage guidance: taste feedback must be recorded as sensory_tags via log_shot or update_shot before diagnosing, and free-text notes are explicitly not read. This gives the agent a concrete precondition and warns about a common misuse. It does not explicitly state when to prefer an alternative tool such as diagnose_preview, 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.

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