Skip to main content
Glama

decompose_failure

Read-onlyIdempotent

Measure the numeric difference between original and corrected values: how much lies along the supplied linear rule directions (projection) and how much lies outside them (residual), with per-field contributions. Diagnostic only: it does not establish a cause, and neither record is verified. Use with a known-correct version to diff against; use analyze_anomaly when you only have the suspicious payload. Diagnostics-tier tool.

Input Schema

NameRequiredDescriptionDefault
api_keyYesGeodesicAI API key (gai_...)
blueprintNoLoad rules from this Blueprint instead of passing them inline
original_valuesYesOriginal numeric field values as {field: number}
corrected_valuesYesCorrected/expected numeric field values as {field: number}
derivation_rulesNoMath rules as objects. Types: add, subtract, multiply, divide, round, copy, sum (multi-operand), items_multiply, items_sum. Each needs 'type' plus its fields; see the blueprint_guide prompt
formal_constraintsNoConstraint objects. Types incl. magnitude_anchor {field,min,max}, relative_anchor {field,reference_field,ratio_min,ratio_max}, max_action_threshold {field,threshold,on_violation}, required_fields {fields}, equals, range, in_set, regex_match, items_magnitude_anchor; see the blueprint_guide prompt

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • addedInput schema / properties / api_key / description
      Added value: +"GeodesicAI API key (gai_...)"
    • addedInput schema / properties / blueprint / description
      Added value: +"Load rules from this Blueprint instead of passing them inline"
    • addedInput schema / properties / corrected_values / description
      Added value: +"Corrected/expected numeric field values as {field: number}"
    • addedInput schema / properties / derivation_rules / description
      Added value: +"Math rules as objects. Types: add, subtract, multiply, divide, round, copy, sum (multi-operand), items_multiply, items_sum. Each needs 'type' plus its fields; see the blueprint_guide prompt"
    • addedInput schema / properties / formal_constraints / description
      Added value: +"Constraint objects. Types incl. magnitude_anchor {field,min,max}, relative_anchor {field,reference_field,ratio_min,ratio_max}, max_action_threshold {field,threshold,on_violation}, required_fields {fields}, equals, range, in_set, regex_match, items_magnitude_anchor; see the blueprint_guide prompt"
    • addedInput schema / properties / original_values / description
      Added value: +"Original numeric field values as {field: number}"
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the bar is lower. The description nonetheless adds real behavioral context: this is diagnostic-only, it does not establish a cause, and neither input record is verified as correct — important caveats an agent would otherwise assume away.

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?

Core computation is front-loaded in the first sentence, followed by limits and routing guidance. Slightly padded by the trailing 'Diagnostics-tier tool.' fragment, which restates what prior sentences already conveyed, but overall efficient.

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

Completeness4/5

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

For a 6-parameter, nested-object tool with no output schema, the description conveys the outputs (projection, residual, per-field contributions) and the input pairing needed. It stops short of describing the return structure or how blueprint and inline rules interact, which is a minor gap given the rich schema.

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%, so the schema already documents api_key, blueprint, original_values, corrected_values, derivation_rules and formal_constraints. The description's reference to 'the supplied linear rule directions' loosely connects to derivation_rules but adds no syntax, format, or blueprint-vs-inline guidance beyond the schema. Baseline 3 applies.

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 ('measure the numeric difference between original and corrected values') and then decomposes it into named components (projection along rule directions vs residual outside them) plus per-field contributions. The scope is precise enough to distinguish it from siblings like analyze_anomaly or check_drift without opening a schema.

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

Usage Guidelines5/5

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

Gives an explicit when-to-use condition ('use with a known-correct version to diff against') and an explicit alternative with its selecting condition ('use analyze_anomaly when you only have the suspicious payload'). It also sets expectations about what the tool will not do (diagnostic only, no causation established, neither record verified).

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.

Resources