Skip to main content
Glama

Remake a recipe from given materials

match_from_materials
Read-onlyIdempotent

Remakes a glaze recipe from only the materials listed in "have", keeping its unity formula as near as they allow, as Match with what I have does in the Glazecalc app. report.closeness says how near the new unity formula comes to the old, oxide by oxide: close (within 0.02, or 5% of a large amount such as silica's), off, or far (more than three times that), with a verdict (close, fair or poor) and a summary. report.miss and report.best are the solver's own scores, for comparing runs. Raw clay is held to 20% of the batch where that costs the match little (report.capped and allowMore say more). Test any suggestion before using it.

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": {
      "lines": "<lines>",
      "have": "<have>"
    },
    "name": "match_from_materials"
  }
}

Input Schema

NameRequiredDescriptionDefault
haveYesThe library names of the materials on hand, at most 500.
linesYesThe recipe's base materials (not colorants), at most 40 lines.
mustUseNoMaterials on hand that must stay in.
languageNoThe language for any sentences in the answer, as a BCP 47 tag such as "en", "de" or "ja". Languages Glazecalc does not offer are answered in English.
allowMoreNoMaterials whose suggested cap to lift, as report.capped names them: raw clay is held to 20% of the batch (or the recipe's own share) where that costs the match little.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / have / description
      Previous value: -"The library names of the materials on hand."New value: +"The library names of the materials on hand, at most 500."
    • changedInput schema / properties / have / maxItems
      Previous value: -100New value: +500
  2. Changed1 schema field changed
    • addedInput schema / properties / allowMore
      Added value: +{
      +  "description": "Materials whose suggested cap to lift, as report.capped names them: raw clay is held to 20% of the batch (or the recipe's own share) where that costs the match little.",
      +  "items": {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  "maxItems": 20,
      +  "type": "array"
      +}
  3. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare a safe read-only, idempotent operation, yet the description goes further by explaining the soft heuristic that caps raw clay at 20% of the batch where it costs the match little, and by surfacing report.capped/allowMore as the escape hatch. It also discloses the closeness thresholds (0.02, 5% of a large amount, three times that) and the verdict scale, which an agent could not otherwise infer. The weak point is that report.miss and report.best are described only as 'the solver's own scores, for comparing runs', which does not really say what they measure.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded, which is good, but the first sentence is a long chain of nested clauses and quoted parameter names that is hard to parse. The second sentence spends a lot of words on the closeness scale, which is defensible with no output schema, but the whole passage reads as a dense run-on rather than a structured definition.

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 carries the return-value burden and does so reasonably: it names report.closeness, report.miss, report.best, report.capped and their roles. It also flags that results are suggestions requiring testing. The remaining gap is the lack of a clear statement of how this differs from the similarly named sibling.

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%, so all five parameters are already documented in structured fields. The description reinforces the have/allowMore/report.capped relationship and the clay-cap rule, but it largely restates what the allowMore schema description already says and adds no format or syntax detail beyond the schema.

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 states a specific verb and resource: it remakes a glaze recipe using only the materials listed in "have", preserving the unity formula as closely as possible. That is far more concrete than the title alone. However, it names the sibling match_with_what_i_have only to say it behaves 'as' that feature does, which blurs rather than sharpens the distinction between the two tools.

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

Usage Guidelines3/5

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

Usage context is implied (you have a recipe and a constrained set of materials) and one useful caveat is given: 'Test any suggestion before using it.' But there is no explicit when-to-use versus match_with_what_i_have or solve_target, and no statement of prerequisites or when-not to use this tool.

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.