Skip to main content
Glama

Oxyo (oxyo.si) — Cut Coding Agent Token & Quota Burn by up to 72%

oxyo_causal_infer

Read-onlyIdempotent

Query the root-cause graph to trace upstream failure sources (diagnose), downstream blast radius (intervene), simulated interventions (do_calculus, counterfactual), continuous-metric what-if estimation (continuous_counterfactual, separating hidden disturbance from action effect with identifiability and discontinuity guards), or highest-value diagnostic checks (experiments). Use to analyze recorded dependencies; call oxyo_causal_record to add new edges.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "oxyo_causal_infer"
  }
}

Input Schema

NameRequiredDescriptionDefault
doNoOptional forced node state map {node: 0.0..1.0} for 'do_calculus' or 'counterfactual'.
modeNoAnalysis mode: 'diagnose' (causes), 'intervene' (effects), 'do_calculus', 'counterfactual', 'continuous_counterfactual' (numeric what-if), or 'experiments'.intervene
scopeNoOptional project/repo scope filter.
entityNoTarget symptom (for 'diagnose') or upstream node (for 'intervene') to analyze.
factualNoOptional observed node state map {node: 0.0..1.0} for 'counterfactual' queries.
horizonNoOptional transition duration horizon for short-time error-scale reporting.
alt_predNoBaseline predicted numeric outcome under the alternative action for 'continuous_counterfactual'.
max_hopsNoMaximum multi-hop traversal depth across the causal graph (1..8).
metric_nameNoOptional metric label (e.g. 'latency_ms', 'cost_usd') for 'continuous_counterfactual'.outcome
factual_predNoBaseline predicted numeric outcome under the factual action for 'continuous_counterfactual'.
action_distanceNoOptional distance between factual and alternative actions for error-bound reporting.
observed_outcomeNoObserved factual numeric scalar or vector outcome for 'continuous_counterfactual'.
has_discontinuityNoSet true if the transition crossed a sharp jump or discrete regime break.
is_multiplicativeNoSet true if the unobserved disturbance scales/multiplies the action rather than acting additively.
interaction_bound_kNoOptional action-disturbance interaction Lipschitz bound.
persistent_disturbanceNoWhether the unobserved disturbance persists for the counterfactual event (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • addedInput schema / properties / action_distance
      Added value: +{
      +  "description": "Optional distance between factual and alternative actions for error-bound reporting.",
      +  "type": "number"
      +}
    • addedInput schema / properties / alt_pred
      Added value: +{
      +  "description": "Baseline predicted numeric outcome under the alternative action for 'continuous_counterfactual'."
      +}
    • addedInput schema / properties / factual_pred
      Added value: +{
      +  "description": "Baseline predicted numeric outcome under the factual action for 'continuous_counterfactual'."
      +}
    • addedInput schema / properties / has_discontinuity
      Added value: +{
      +  "default": false,
      +  "description": "Set true if the transition crossed a sharp jump or discrete regime break.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / horizon
      Added value: +{
      +  "description": "Optional transition duration horizon for short-time error-scale reporting.",
      +  "type": "number"
      +}
    • addedInput schema / properties / interaction_bound_k
      Added value: +{
      +  "description": "Optional action-disturbance interaction Lipschitz bound.",
      +  "type": "number"
      +}
    • addedInput schema / properties / is_multiplicative
      Added value: +{
      +  "default": false,
      +  "description": "Set true if the unobserved disturbance scales/multiplies the action rather than acting additively.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / metric_name
      Added value: +{
      +  "default": "outcome",
      +  "description": "Optional metric label (e.g. 'latency_ms', 'cost_usd') for 'continuous_counterfactual'.",
      +  "type": "string"
      +}
    • changedInput schema / properties / mode / description
      Previous value: -"Analysis mode: 'diagnose' (causes), 'intervene' (effects), 'do_calculus', 'counterfactual', or 'experiments'."New value: +"Analysis mode: 'diagnose' (causes), 'intervene' (effects), 'do_calculus', 'counterfactual', 'continuous_counterfactual' (numeric what-if), or 'experiments'."
    • changedInput schema / properties / mode / enum
      Previous value: -[
      -  "intervene",
      -  "diagnose",
      -  "do_calculus",
      -  "counterfactual",
      -  "experiments"
      -]New value: +[
      +  "intervene",
      +  "diagnose",
      +  "do_calculus",
      +  "counterfactual",
      +  "continuous_counterfactual",
      +  "experiments"
      +]
    • addedInput schema / properties / observed_outcome
      Added value: +{
      +  "description": "Observed factual numeric scalar or vector outcome for 'continuous_counterfactual'."
      +}
    • addedInput schema / properties / persistent_disturbance
      Added value: +{
      +  "default": true,
      +  "description": "Whether the unobserved disturbance persists for the counterfactual event (default true).",
      +  "type": "boolean"
      +}
  2. Changed6 schema fields changed
    • changedInput schema / properties / do / description
      Previous value: -"Optional intervention map {node: 0.0..1.0} for `do_calculus` or `counterfactual`"New value: +"Optional forced node state map {node: 0.0..1.0} for 'do_calculus' or 'counterfactual'."
    • changedInput schema / properties / entity / description
      Previous value: -"Target or seed causal entity"New value: +"Target symptom (for 'diagnose') or upstream node (for 'intervene') to analyze."
    • changedInput schema / properties / factual / description
      Previous value: -"Optional observed factual state {node: 0.0..1.0} for `counterfactual`"New value: +"Optional observed node state map {node: 0.0..1.0} for 'counterfactual' queries."
    • addedInput schema / properties / max_hops / description
      Added value: +"Maximum multi-hop traversal depth across the causal graph (1..8)."
    • addedInput schema / properties / mode / description
      Added value: +"Analysis mode: 'diagnose' (causes), 'intervene' (effects), 'do_calculus', 'counterfactual', or 'experiments'."
    • changedInput schema / properties / scope / description
      Previous value: -"Optional project/repo scope"New value: +"Optional project/repo scope filter."
  3. First observed

TDQS

A4.4/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 description's added value is the dependency precondition (graph must be recorded first) and the disclosure that continuous_counterfactual applies identifiability and discontinuity guards — behavior an agent would not otherwise anticipate. It stops short of describing failure modes when guards trip or how results are shaped.

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?

Two sentences, front-loaded with the core action and mode taxonomy before the sibling hand-off. The long parenthetical mode list is information-dense rather than padded, though its nesting makes it slower to scan than a short list would be.

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 16-parameter, six-mode tool with no output schema, the definition covers input intent well but says nothing about what comes back — result shape, per-mode return differences, or empty-graph behavior. Given the absence of an output schema, return-value framing would have materially helped.

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 baseline is 3; the description earns a bump by explaining what the guard-related parameters exist for (separating hidden disturbance from action effect, discontinuity handling), giving semantic framing to has_discontinuity, is_multiplicative, and persistent_disturbance beyond their terse schema strings. It does not clarify how `do`/`factual` maps interact or the horizon/action_distance error-bound semantics.

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?

Opens with a specific verb+resource ("Query the root-cause graph") and then enumerates each analysis mode with its meaning (diagnose=upstream sources, intervene=blast radius, continuous_counterfactual=numeric what-if). It explicitly separates itself from the sibling that writes data ("call `oxyo_causal_record` to add new edges"), so an agent can distinguish read-tracing from edge creation 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 Guidelines5/5

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

States the usage context ("analyze recorded dependencies") and names the alternative tool plus the condition that selects it (use oxyo_causal_record to add edges instead). Each mode string is paired with a one-phrase intent, giving per-mode when-to-use routing.

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