Skip to main content
Glama

check_material_sufficiency

Read-only

Checks whether a printer has enough material for a print job by required grams before printing, returning sufficiency or unknown status and guidance when short.

Instructions

Check if a printer has enough material for a print job.

        ``check.sufficient`` is ``true`` or ``false`` when Kiln holds a
        weight for what is loaded (a linked spool's count), and ``null``
        when it holds none.  ``null`` is not a shortfall: the check was
        not made, and ``check.unknown`` says what to record.  Relay that
        sentence; never report an unknown weight as running out.

        When material is insufficient, says what the person can do with
        what they have: a spool on the shelf, a pause-and-swap.  Only
        when nothing they have will do does it end with one offer of
        help finding a filament.  Relay that offer as written and never
        suggest buying filament unless the person asks or says yes;
        then use ``find_closest_filaments``.  Suggestions that point at
        OTHER machines are a fleet-wide answer and need Kiln Business;
        the check itself — does THIS printer have enough — works on
        every tier.

        Args:
            printer_name: Name of the printer to check.
            required_grams: Amount of material needed in grams.
            material_type: Optional material type filter.
        

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "printer_name": "<printer_name>",
      "required_grams": "<required_grams>"
    },
    "name": "check_material_sufficiency"
  }
}

Input Schema

NameRequiredDescriptionDefault
printer_nameYesName of the printer to check.
material_typeNoOptional material type filter.
required_gramsYesAmount of material needed in grams.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.5.1
    • addedInput schema / properties / material_type / description
      Added value: +"Optional material type filter."
    • addedInput schema / properties / printer_name / description
      Added value: +"Name of the printer to check."
    • addedInput schema / properties / required_grams / description
      Added value: +"Amount of material needed in grams."
  2. Changed1 schema field changedv1.5.0
    • removedInput schema / properties / material_type / default
      Removed value: -null
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the readOnly/openWorld/destructive annotations, the description discloses the real behavioral contours: null semantics for check.sufficient, the existence of check.unknown, the rule not to suggest buying filament unprompted, and a tier gate on fleet-wide suggestions that the annotations do not capture. Since there is no output schema, this return-value and communication context is exactly the disclosure that was needed.

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?

Purpose is front-loaded and the instruction blocks are organized around distinct scenarios (insufficient, unknown, tier-gated). A few lines are repeated in spirit — the 'relay as written' instruction appears twice — and the docstring indentation leaks into the text, but nothing is expendable enough to call padding.

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?

With no output schema, the description takes on the burden of explaining return values, and it does so for the key fields (check.sufficient, check.unknown) plus the tier caveat. It stops short of describing the full response shape and how material_type affects the result, which leaves small gaps for a three-parameter check.

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 coverage is 100%, so the three parameters are already documented in the input schema. The Args block in the description simply restates those same strings without adding meaning, and it does not clarify how material_type filters the loaded-spool count. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The first line gives a specific verb and resource: check whether a printer has enough material for a print job. That is clearly distinct from compatibility- or pairing-oriented siblings, but the description never names those siblings to sharpen the boundary. Still, an agent can tell this is a quantity sufficiency check rather than a compatibility check.

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?

It gives clear conditional guidance: read check.sufficient, treat null as 'not checked' rather than 'running out', relay check.unknown, and only escalate to find_closest_filaments after the person says yes. It also states the tier boundary (fleet-wide suggestions need Kiln Business, the check itself works on every tier). What is missing is guidance on when to prefer this over adjacent local checks such as check_material_match.

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

Deploy Server

Other Tools