Skip to main content
Glama

compare_results

Compare your numbers to the pricing engine's outputs, auto-mapping labels and computing absolute and relative differences for reconciliation.

Instructions

Put the user's numbers next to the engine's (no engine call, no modelling).

Args: external: {label: number} as the user quoted them, e.g. {"NPV": 10359.49, "DV01": 415.5, "fair rate": 0.0337}. Labels are matched case- and punctuation-insensitively to response fields (npv / premium / PV -> npv; DV01 / PV01 -> dv01; fair rate -> fair_rate then atm_forward; vol -> implied_volatility, ...). Give the external numbers in the engine's units (currency amounts; rates and vols as decimals). quantra: a pricing tool result (its response is used) or the engine response object itself. The first priced item is compared.

Returns rows = [{label, mapped_to, quantra_path, external, quantra, abs_diff, rel_diff, topic, topic_uri}] with abs_diff = quantra - external and rel_diff = abs_diff / |external|; unmapped for labels with no field; mapping shows the candidates tried. topic is the methodology page (explain_method) to consult for that metric.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quantraYes
externalYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.4

TDQS

A4.6/5.0
Behavior5/5

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

With no annotations, the description carries the full burden and succeeds: it discloses that no engine call or modelling occurs, explains label matching rules (case- and punctuation-insensitive), specifies units, and details the return fields and diff formulas. This is rich behavioral context beyond the structured fields.

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 purpose is front-loaded in the first sentence, followed by structured Args and Returns sections. Although long, every sentence earns its place by documenting the complex mapping and diff logic required for correct invocation.

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 no annotations, 0% schema coverage, nested objects, and a complex comparison task, the description is complete. It even explains return values despite an output schema existing, and references `explain_method` for topic methodology, leaving no critical gaps.

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?

Schema description coverage is 0%, so the description must compensate, and it does thoroughly: `external` is explained with an example, matching logic, and unit guidance; `quantra` is described as a pricing tool result or engine response, with which part is used. This adds substantial meaning absent from 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?

The description states a specific verb and resource—'Put the user's numbers next to the engine's'—and explicitly differentiates from engine-calling tools with 'no engine call, no modelling'. An agent can immediately tell this is a comparison utility, not a pricing tool.

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?

It provides implied usage context by describing the two parameter types (external numbers and an engine result), but never explicitly states when to use this tool versus the many pricing siblings or when not to use it. No alternatives or prerequisites are named, so an agent must infer the usage scenario.

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