Skip to main content
Glama

counterfactual

Read-onlyIdempotent

Run the same data under two rule sets and compare which future states remain valid - what-if analysis for rule changes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
api_keyYesGeodesicAI API key (gai_...)
rules_bNoAlternative derivation rules (rule set B)
blueprintNoBlueprint name (workflow_name) to usedefault
constraints_bNoAlternative constraints (rule set B)
structured_dataYesThe document's extracted fields as key/value pairs. Keys are open by design - your Blueprint's rules define what is checked

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / api_key / description
      Added value: +"GeodesicAI API key (gai_...)"
    • addedInput schema / properties / blueprint / description
      Added value: +"Blueprint name (workflow_name) to use"
    • addedInput schema / properties / constraints_b / description
      Added value: +"Alternative constraints (rule set B)"
    • addedInput schema / properties / rules_b / description
      Added value: +"Alternative derivation rules (rule set B)"
    • addedInput schema / properties / structured_data / description
      Added value: +"The document's extracted fields as key/value pairs. Keys are open by design - your Blueprint's rules define what is checked"
  2. First observed

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so the safety profile is covered. The description adds that the tool executes a comparison run and evaluates future state validity, which is useful context but not extensive. It does not contradict annotations and adds moderate value beyond the structured hints.

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 exactly two sentences, front-loaded with the core action, and includes a clarifying hyphenated summary. Every word earns its place; there is no filler or repetition.

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?

Given the moderate complexity (5 parameters with 100% schema coverage, no output schema), the description sufficiently explains the tool's behavior and use case. It could benefit from a note on what the comparison output looks like, but the combination of schema and annotations fills most gaps. A 4 reflects that it's nearly complete but missing some behavioral detail.

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%, meaning every parameter has a description in the schema. The tool description itself does not add parameter-specific detail, so it does not go beyond the schema. Baseline 3 is appropriate given the high coverage.

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 clearly states the verb ('Run') and the resource ('the same data under two rule sets'), and explains the purpose: comparing which future states remain valid. This is a precise what-if analysis for rule changes, which distinguishes it from sibling tools like compare_semantic_equivalence or check_drift.

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 provides clear context: use this tool when you need to perform what-if analysis on rule changes by running data under two rule sets. It does not explicitly enumerate alternatives or exclusions, but the scenario is well-defined enough to guide an agent. A 4 is appropriate for clear context without explicit 'when not to use' 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.

Resources