Skip to main content
Glama

api_herb_traceability

Read-onlyIdempotent

Create a nonclinical lot-to-batch provenance ledger with ingredient lot identifiers and mass allocations. 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": {
      "batch_id": "<batch_id>",
      "entries": "<entries>"
    },
    "name": "api_herb_traceability"
  }
}

Input Schema

NameRequiredDescriptionDefault
entriesYesentries; see operation description for units and format
batch_idYesbatch id; see operation description for units and format

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.8/5.0
Behavior1/5

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

The description says the tool 'Create[s]' a ledger, a mutation framing, while annotations declare readOnlyHint=true, idempotentHint=true and destructiveHint=false. The genuinely useful additions (0.01 USDC x402 cost on Base, X-Provider-Key for customer-owned credentials) are real behavioral context, but the read/write conflict is exactly the ambiguity an agent must resolve before calling, and the description never states whether anything is persisted.

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, front-loaded with the operation and followed by cost/auth mechanics; nothing is padded. The phrase 'where needed' is the one soft spot, leaving the credential condition fuzzy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/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 should say what the returned ledger looks like, and it does not. It covers cost and auth but omits entry serialization, persistence semantics, and error behavior, which is a meaningful gap for a two-parameter tool whose schema punts on format.

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 nominal 100%, but both schema descriptions are placeholders that defer to the operation description ('see operation description for units and format'), and the description never supplies those units or the entry format. It does add conceptual meaning for 'entries' as ingredient lot identifiers plus mass allocations, which partly compensates but leaves the actual shape of each entry unspecified.

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?

Names a specific verb ('Create') and a specific, domain-scoped resource ('nonclinical lot-to-batch provenance ledger with ingredient lot identifiers and mass allocations'), which is far more precise than the opaque api_herb_* siblings. It does not explicitly differentiate itself from api_herb_batch_cost, api_herb_lot_fefo, or api_herb_reorder, so the agent must infer the boundary from the resource noun alone.

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

Usage Guidelines2/5

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

There is no statement of when to use this versus the other herb tools (batch cost, FEFO lot selection, reorder), nor any precondition such as needing an existing batch or lot records. The only operational guidance is about payment and credentials, which is invocation mechanics rather than usage selection.

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