Skip to main content
Glama

api_herb_lot_fefo

Read-onlyIdempotent

Allocate stored herb batches in first-expiring-first-out order, showing exact grams and shortages. 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": {
      "lots": "<lots>",
      "grams_required": "<grams_required>"
    },
    "name": "api_herb_lot_fefo"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotsYesComma-separated lot:available_grams:expiryYYYY-MM-DD entries
grams_requiredYesRequired positive number of grams

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 declare readOnly, idempotent, non-destructive and open-world, so the baseline is lower — yet the description still adds real behavioral facts: a 0.01 USDC charge per call on Base x402 and the X-Provider-Key header for customer-owned credentials. It also discloses the response content (grams and shortages). Only the failure mode when lots are malformed is left unstated.

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 sentences, no filler, with the core operation front-loaded and the billing/auth caveats trailing. Slightly dense packing of payment and credential concerns into one clause, but nothing is wasteful.

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 two-parameter read-only calculation with full schema coverage and no output schema, the description covers what is computed, what comes back, what it costs, and what auth may be required. The remaining gap is minor: it does not describe how shortages are represented in the result.

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 both parameters (lots and grams_required) are already fully documented, including the comma-separated lot:available_grams:expiry format. The description adds nothing about parameter encoding, so the baseline 3 applies.

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 a specific verb (Allocate), a specific resource (stored herb batches) and a specific algorithm (FEFO), plus the output (exact grams and shortages). That distinguishes it in spirit from siblings like api_herb_batch_cost or api_herb_traceability, but no sibling is ever named, so the differentiation is inferred rather than stated.

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?

The FEFO framing implies the use case (picking which batches to consume), but the description gives no explicit when-to-use rule, no when-not to use, and no pointer to api_herb_reorder or api_herb_batch_cost as alternatives. Guidance is present only by implication.

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