Skip to main content
Glama

plan quality recovery

plan_quality_recovery
Read-onlyIdempotent

Quality incident recovery: defects and units in market per lot, cost of three recall scopes (defects only, all shipped units of the lots, whole lots including warehouse), and how to allocate the remaining good stock among customers (priority first, highest penalty first, pro rata) with the shortfall penalty of each rule. Same engine as tools.oiyo.net.

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": {
      "lots": "<lots>",
      "recallCostPerUnit": "<recallCostPerUnit>",
      "remakeCostPerUnit": "<remakeCostPerUnit>",
      "goodStock": "<goodStock>",
      "customers": "<customers>"
    },
    "name": "plan_quality_recovery"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotsYesAffected lots
customersYesCustomers waiting for stock
goodStockYesGood stock available now
recallCostPerUnitYesRecall/disposal cost per unit
remakeCostPerUnitYesCost to remake one unit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered by structured data. The description adds real value by disclosing exactly which scenarios are computed and that three alternative recall scopes and three allocation rules are each evaluated with their shortfall penalties. It stops short of stating output structure, units, or whether results are ranked, so it is good but not rich.

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?

It is a single dense sentence with the domain subject front-loaded and zero filler; the parenthetical enumerations of the three scopes and three allocation rules each carry information. The one-sentence packing makes it harder to scan than a short bulleted structure would be.

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 five required parameters, nested lot/customer arrays and no output schema, the description carries the burden of explaining results, and it does so conceptually by naming the three cost scopes and the three allocation rules with their penalties. What is missing is any indication of result shape or whether the three rules are returned comparatively for selection.

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 description earns an uplift by explaining how defectRate, shippedRatio and goodStock interact across the three recall scopes and how penaltyPerUnit and priority drive allocation. remakeCostPerUnit is never referenced in the description, leaving one parameter's role in the model implicit rather than explained.

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 names the resource (a quality incident recovery plan) and enumerates the concrete outputs: defects and units in market per lot, recall cost under three scopes, and stock allocation under three rules. An agent can tell this is a recall/allocation modeling tool rather than a generic calculator. It lacks a crisp verb-led opening statement and does no explicit sibling differentiation, which keeps it below a 5.

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 is implied by the domain framing (quality incident with affected lots and waiting customers), but there is no explicit 'use this when' statement, no exclusions, and no mention of the nearest alternative such as plan_campaign_supply. An agent must infer applicability from the input model alone.

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.