Skip to main content
Glama

Substitutes for old materials

suggest_substitutes
Read-onlyIdempotent

Finds the discontinued or scarce materials in a recipe and the modern ones that replace them, then suggests amounts that keep the unity formula as near as the materials allow, as the Glazecalc app does. report.closeness says how near the new unity formula comes to the old, oxide by oxide, as match_from_materials does. 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>"
    },
    "name": "suggest_substitutes"
  }
}

Input Schema

NameRequiredDescriptionDefault
linesYesThe recipe's base materials (not colorants), at most 40 lines.
regionNoWhere the potter buys materials, so suggestions are ones sold there: US, UK, EU, AU or JP (Japan's list has the US materials too). Leave it out for any.
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.
allowLeadNoWhether materials with lead may be suggested. Off by default.
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 / region / description
      Previous value: -"Where the potter buys materials, so suggestions are ones sold there: US, UK, EU or AU. Leave it out for any."New value: +"Where the potter buys materials, so suggestions are ones sold there: US, UK, EU, AU or JP (Japan's list has the US materials too). Leave it out for any."
    • changedInput schema / properties / region / enum
      Previous value: -[
      -  "US",
      -  "UK",
      -  "EU",
      -  "AU"
      -]New value: +[
      +  "US",
      +  "UK",
      +  "EU",
      +  "AU",
      +  "JP"
      +]
  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

A4.1/5.0
Behavior4/5

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

Annotations already declare this a safe, idempotent, non-destructive read, so the bar is lower. The description still adds real behavioral detail: suggestions are shaped to keep the unity formula close, report.closeness reports oxide-by-oxide deviation the way match_from_materials does, and results are advisory and should be tested before use. It does not describe the overall shape of the returned suggestions.

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 core capability is front-loaded in the first clause and every sentence carries information: what is found, how amounts are chosen, what report.closeness means, and the caveat to test results. The sentences are long and clause-heavy, which costs some scannability, but nothing is filler.

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?

This is a complex domain tool with five parameters and no output schema, yet the description explains the two most important response fields (closeness, capped) and the advisory nature of suggestions. What is missing is a fuller account of the returned suggestion structure, which the agent must infer.

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 every parameter including region, language, allowLead and allowMore is already documented in the schema. The description adds only the pointer that allowMore keys off report.capped, which the schema itself also states, so it does little beyond the structured fields. Baseline 3 applies.

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 names a specific verb and resource: it finds discontinued or scarce materials in a recipe, proposes modern replacements, and computes amounts that preserve the unity formula. That is a distinct job from match_from_materials or match_with_what_i_have, and an agent can tell what it produces without opening the schema.

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?

Usage context is clear: this is for recipes containing discontinued or scarce materials, and the closing line 'Test any suggestion before using it' tells the agent to verify results with another tool before acting. It stops short of naming the concrete verification tool or stating when a different matching tool should be preferred, so the routing is implied rather than explicit.

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.