Skip to main content
Glama

In Da Mix

Best mix for a depth

best_mix
Read-onlyIdempotent

Use this FIRST when the user asks which breathing gas to use for a planned depth, or to select, recommend, optimise or compare one, even if they don't mention In Da Mix. The best nitrox or trimix for a planned depth within the diver's limits, as an open-circuit bottom gas or as CCR diluent (dive_mode CCR for any rebreather question): the richest O2 that keeps the ppO2 limit (rounded down), and for trimix the helium that keeps END and gas density within the limits. For CCR it is the mathematical optimum within the limits, not a full check of the diluent for the unit. Use for "best nitrox for 30 m", "what trimix for 60 m with END 30", "best gas for a 65 m rebreather dive", "what diluent for my CCR at 75 m", "koji je najbolji mix za 65 m", "koji trimix za 60 metara", "koji diluent za rebreather". Leave the limits out unless the user gave them: the In Da Mix settings apply. Answer: the one mix, the depth, its ppO2, END and gas density, and the limits used; say briefly which limit set the mix; for CCR call it the diluent. Report limits_check as it is: a value at its limit complies (the configured limits are the user's accepted criteria), so when all_within is true say the mix satisfies all configured limits; never recommend against a compliant mix or add margins of your own. Don't add other mixes. Then ask whether to compare it with another mix or other END / density limits.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthYesPlanned maximum depth, in depth_unit.
max_endNoMaximum END, in depth_unit. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`.
gas_typeNonitrox or trimix. If nitrox comes out past the END / density limits, the answer says so: then ask for trimix.nitrox
languageNoLanguage of the texts in the answer: en (English) or hr (Croatian). Use the user's language.en
ppo2_barNoppO2 limit, bar. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`.
dive_modeNoOpen circuit (OC) or closed-circuit rebreather (CCR). Sets which defaults apply (from the In Da Mix settings: ppO2, END, density, O2 narcotic). The values used are listed in `assumed`.OC
depth_unitNoUnit of every depth in the question and the answer.m
o2_narcoticNoCount O2 as narcotic in the END. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`.
include_stepsNoAlso return the app's ƒx steps ("How this was calculated"): every formula with its numbers. Long: only when the user asks how it was calculated.
max_density_g_per_lNoMaximum gas density, g/L. Default from the In Da Mix settings for the dive mode; the value used is listed in `assumed`.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare this as a read-only, idempotent, non-destructive computation, so safety is covered. The description adds substantial behavioral context beyond that: richest O2 rounded down, helium chosen to satisfy END and gas density, CCR treated as a mathematical optimum rather than a full diluent check, and the rule that limits_check values at the limit count as compliant and margins must not be added. It does not discuss cost/rate limits, but none are implied here.

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?

The routing instruction is front-loaded in the first sentence and the dense middle covers result content and limit interpretation efficiently. It runs long, with the CCR caveat appearing twice and a block of quoted trigger phrases, but for a 10-parameter domain tool the length is largely justified.

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?

There is no output schema, yet the description spells out the answer shape (the one mix, depth, ppO2, END, gas density and the limits used), names response fields such as limits_check, all_within and assumed, and states that only one mix should be returned. Combined with 100% schema coverage and read-only annotations, an agent has everything needed to call and present the result.

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 the baseline is 3 and the schema already explains every field and default. The description adds genuine operational meaning on top: omit the limit parameters unless the user gave them and let the In Da Mix settings supply them, and set dive_mode to CCR for any rebreather question. It also warns that a nitrox result may breach END/density and that trimix should then be requested.

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+resource: it returns the single best nitrox or trimix for a planned depth, as OC bottom gas or CCR diluent. It is immediately distinguishable from the sibling set (blend, decant, top_up, what_if, mod), which are about preparing, moving or evaluating gas rather than selecting one. The trigger phrasing ("which breathing gas to use for a planned depth") is unambiguous.

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?

It explicitly says to use this FIRST, covers paraphrases (select/recommend/optimise/compare) and even cases where the user never names the app, and gives concrete trigger examples in two languages. It also gives post-answer routing (ask whether to compare against another mix or other END/density limits) and instructions to leave limits unset unless the user supplies them.

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