Skip to main content
Glama

bom

Read-onlyIdempotent

Calculates a flattened bill of materials for an item at a target rate per minute, listing raw and intermediate rates, selected recipes, and machine counts.

Instructions

Flattened bill of materials for qty/min of an item: raw and intermediate rates, chosen recipe and machines per row.

qty is a rate per minute. Solved by LP, not tree expansion (recipe cycles have no safe depth), so each row names its recipe; alternates change the totals.

Input Schema

NameRequiredDescriptionDefault
qtyNo
itemYes
saveNo
as_ofNopin to one save: the sav:… token an earlier answer printed
limitNo
worldNo
offsetNo
outletsNobyproducts allowed out as products instead of sunk
allow_sinksNo
only_recipesNo
exclude_recipesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed31 schema fields changedv0.3.0
    • removedInput schema / properties / allow_sinks / title
      Removed value: -"Allow Sinks"
    • removedInput schema / properties / as_of / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • changedInput schema / properties / as_of / description
      Previous value: -"pin to one world state: a sav:… token from an earlier answer"New value: +"pin to one save: the sav:… token an earlier answer printed"
    • removedInput schema / properties / as_of / title
      Removed value: -"As Of"
    • addedInput schema / properties / as_of / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / exclude_recipes / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / exclude_recipes / items
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / exclude_recipes / title
      Removed value: -"Exclude Recipes"
    • addedInput schema / properties / exclude_recipes / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / item / title
      Removed value: -"Item"
    • removedInput schema / properties / limit / description
      Removed value: -"max rows (hard cap 25)"
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • addedInput schema / properties / offset / minimum
      Added value: +0
    • removedInput schema / properties / offset / title
      Removed value: -"Offset"
    • removedInput schema / properties / only_recipes / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / only_recipes / items
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / only_recipes / title
      Removed value: -"Only Recipes"
    • addedInput schema / properties / only_recipes / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / outlets / anyOf
      Removed value: -[
      -  {
      -    "items": {
      -      "type": "string"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / outlets / description
      Added value: +"byproducts allowed out as products instead of sunk"
    • addedInput schema / properties / outlets / items
      Added value: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / outlets / title
      Removed value: -"Outlets"
    • addedInput schema / properties / outlets / type
      Added value: +[
      +  "array",
      +  "null"
      +]
    • removedInput schema / properties / qty / title
      Removed value: -"Qty"
    • removedInput schema / properties / save / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / save / title
      Removed value: -"Save"
    • addedInput schema / properties / save / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / properties / world / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • removedInput schema / properties / world / title
      Removed value: -"World"
    • addedInput schema / properties / world / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedInput schema / title
      Removed value: -"bomArguments"
  2. Changed2 schema fields changed
    • addedInput schema / properties / as_of
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "pin to one world state: a sav:… token from an earlier answer",
      +  "title": "As Of"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "title": "Offset",
      +  "type": "integer"
      +}
  3. First observedv0.1.0

TDQS

B3.2/5.0
Behavior4/5

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

Annotations already establish that this is a safe, idempotent, read-only operation. The description adds substantive behavioral context beyond the annotations: qty is interpreted as a rate per minute, the result is LP-solved rather than tree-expanded because recipe cycles lack a safe depth, and each row names its chosen recipe. It does not cover pagination, save pinning, or output shape, but it meaningfully improves understanding of the computation.

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 compact and front-loaded: the first sentence states the core output, and the second explains the important qty and LP-solving semantics. There is no filler.

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

Completeness2/5

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

This is a complex 11-parameter planning tool with no output schema and very low schema description coverage. The description covers the central BOM concept and qty semantics but omits most parameter behavior and does not describe return structure, pagination, save pinning, or outlet/sink handling. It is not complete enough for reliable invocation across all provided parameters.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 18% across 11 parameters, so the description needs to compensate but does not. It explains that qty is a rate per minute and that the calculation is for an item, but it leaves save/as_of, world, limit/offset, outlets, allow_sinks, only_recipes, and exclude_recipes unexplained. The note that alternates change totals hints at recipe selection but does not document the filtering parameters.

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 description identifies the resource clearly: a flattened bill of materials for an item at a given qty/min, including raw and intermediate rates, chosen recipes, and machines per row. It also distinguishes the LP-based approach from tree expansion. It does not explicitly name a sibling alternative, but the purpose is still clear.

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

Usage Guidelines2/5

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

The description implies that the tool is used to calculate a bill of materials for an item at a rate per minute. However, it gives no explicit when-to-use guidance, no exclusions, and no comparison to relevant siblings such as trace_upstream, recipe_detail, compare_recipe_options, or plan_factory.

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