Skip to main content
Glama

Universal Data — x402 + MPP Payment Setup

api_herb_formula_scale

Read-onlyIdempotent

Scale a user-supplied traditional herb formulation across batches without recommending ingredients or dosages. One call costs 0.01 USDC on Base x402; customer-owned provider credentials use X-Provider-Key header where needed.

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": {
      "ingredients": "<ingredients>",
      "base_batches": "<base_batches>",
      "target_batches": "<target_batches>"
    },
    "name": "api_herb_formula_scale"
  }
}

Input Schema

NameRequiredDescriptionDefault
ingredientsYesComma-separated ingredient:grams pairs, e.g. gan-cao:5,huang-qi:10
base_batchesYesOriginal formulation batch count
target_batchesYesTarget batch count

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), and the description adds genuinely new operational context: a 0.01 USDC per-call cost on Base x402 and the X-Provider-Key header for customer-owned credentials. It does not state the output shape, but the payment/auth disclosure is meaningful beyond annotations.

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?

Two tight sentences, scope stated first and the commercial/auth caveats second. Every clause carries information, though the x402/header sentence is dense and could be split for scannability.

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?

For a simple 3-parameter, fully documented, non-destructive read-style tool, the description covers purpose, scope limits, cost, and auth. The main omission is what the scaled output looks like, which matters somewhat since no output schema exists.

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 the ingredient:grams format and batch counts are already documented. The description only implies the base/target batch relationship through 'across batches' and adds no format or edge-case guidance 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?

States a specific verb+resource: 'Scale a user-supplied traditional herb formulation across batches', and adds a negative scope clause ('without recommending ingredients or dosages'). This distinguishes it from the herb siblings (batch cost, lot FEFO, reorder, traceability) implicitly, though none are named.

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?

'User-supplied' signals the caller must provide the formulation rather than derive it, and the no-recommendation clause bounds behavior. However, there is no explicit when-to-use vs. when-not, and no routing to siblings such as api_herb_batch_cost for pricing.

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.

Resources