Skip to main content
Glama

history_compare

Compare two request executions by audit record ID to identify metric changes and structural JSON response body differences in table or unified diff format.

Instructions

Compare two request executions, checking metrics and structural JSON response body differences.

Input Schema

NameRequiredDescriptionDefault
id1YesFirst audit record ID
id2YesSecond audit record ID
formatNoDiff output format: table (default) or unified (compact diff style)table

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.4

TDQS

B3.3/5.0
Behavior3/5

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

No annotations are given, so the description carries the full burden. It does disclose a meaningful behavioral trait — the body comparison is *structural* (schema/shape), not value-by-value, which prevents misuse. However it omits that this is a read-only operation, what happens if an ID does not exist or lacks a JSON body, and any limits on size of records compared.

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?

A single front-loaded sentence with no filler; the what and the compared facets arrive immediately.

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

Completeness3/5

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

For a three-parameter read/compare tool with full schema coverage and no output schema, the description is minimally sufficient but does not describe the shape of the diff result (e.g. table vs unified rendering, how metric deltas are presented), and no output schema exists to compensate.

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%: id1/id2 are labeled 'audit record IDs' and format has an enum with per-value explanation, so the schema does the heavy lifting. The description adds no extra semantics (e.g. whether IDs must belong to the same request or can be arbitrary), so baseline 3 applies.

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?

States a specific verb (compare) and two specific resources (request executions), then narrows what facets are compared: metrics and structural JSON body differences. That is far more informative than the sibling history_get/history_list names imply, though it never explicitly contrasts itself with them.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No when-to-use or when-not-to-use guidance, and no mention of the obvious alternatives (history_get to inspect a single record, history_list to find IDs). The agent must infer that id1/id2 come from history_list and that this tool is the diffing path rather than a lookup.

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