Skip to main content
Glama
vmware-skills

io.github.zw008/vmware-log-insight

get_log_alert_history

Read-onlyIdempotent

List recent trigger-history records for a VMware Aria Operations for Logs alert to see when it fired, not how it is defined.

Instructions

[READ] List recent trigger-history records for an alert.

Use this for when an alert fired, not how it's defined. Returns the family list envelope {items, returned, limit, total, truncated, hint}; each item is {timestamp_ms (when it fired), acknowledged, message_count, messages: [{timestamp_ms, text}]} with at most 3 of the record's events (verified on 8.18.7). An alert that never fired returns an empty list, not an error. The appliance pages history, so a page shorter than limit is the whole history (real total); a full page has total null and truncated true. Read-only.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum history records returned, most recent first, 1..50 (default 50) — 50 is the appliance's own page cap; a larger value is lowered and 'note' says so. There is no offset, so records older than the newest 50 are not reachable through this tool.
targetNoLog Insight target name as spelled in ~/.vmware-log-insight/config.yaml. Omit to use that file's default_target — with no default configured, omitting it is an error that lists the configured names.
alert_idYesThe alert id exactly as returned in an list_log_alerts row's 'id' field (not the alert's name). An empty or malformed id is refused before any call; an unknown id is HTTP 404 (or 500) on 8.18.7.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv2.4.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already cover readOnly/idempotent/destructive, yet the description still adds substantial non-obvious behavior: the exact return envelope {items, returned, limit, total, truncated, hint}, the fact that each item carries at most 3 events, and the paging rule that a full page yields total null and truncated true. That is exactly the kind of context annotations cannot express.

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?

Front-loaded with the purpose and the discriminating clause before the return-shape detail. It is dense and long-ish, but nearly every sentence carries information an agent needs (envelope shape, 3-event cap, pagination behavior); only the '(verified on 8.18.7)' asides are mild filler.

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?

There is no output schema, so the description must carry the return contract — and it does, including item fields, the messages sub-array, empty-list behavior, and truncation semantics. Combined with 100% parameter coverage, an agent has everything needed to call and interpret this tool.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds interpretive meaning for limit that the schema alone doesn't: it explains how to read total/truncated relative to page size and implies the limit bounds how much history is reachable. The alert_id and target semantics are left entirely to the 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?

States a specific verb and resource: 'List recent trigger-history records for an alert.' It also explicitly scopes itself against the definition-oriented sibling with 'Use this for when an alert fired, not how it's defined,' so an agent can separate it from get_log_alert/list_log_alerts without opening schemas.

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 when-to-use guidance ('when an alert fired, not how it's defined') plus an edge-case rule: an alert that never fired returns an empty list, not an error. It stops short of naming the alternative tool explicitly (get_log_alert) or stating when-not to call it, so it is clear context without full routing.

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