Skip to main content
Glama

Privi Verify

Record a lot event

privi_record_event

Append an event to a lot's history (manufacturers only). Requires 'Authorization: Bearer ' with a key from PRIVI_WRITE_KEYS. Over stdio, writes are allowed only when PRIVI_ALLOW_LOCAL_WRITES=1.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actorYesCompany or person responsible
notesNo
productNoProduct name or part number
locationYesWhere it happened, e.g. 'Plant 2, Port Huron MI'
lot_codeYesLot or batch code
quantityNoQuantity with units, e.g. '500 kg'
event_typeYesOne of: received, produced, inspected, shipped, transferred, recalled

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With annotations only declaring the safe-ish write profile, the description adds substantive context: Bearer auth via PRIVI_WRITE_KEYS and the PRIVI_ALLOW_LOCAL_WRITES=1 gate for stdio. It stops short of saying what appending does to the lot's status (e.g. a 'recalled' event) or whether duplicate events are allowed.

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?

Three tight sentences, front-loaded with the core action and audience, then the auth prerequisites. Every sentence carries information; no padding or repetition of the schema.

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?

For a 7-parameter mutation tool with no output schema, the definition omits the return value and any effect on downstream state (chain of custody, lot verification). Auth and audience are covered, but an agent still lacks a full behavioral picture before writing.

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 86%, so the schema already explains lot_code, event_type, location, actor, and the optional fields. The description adds no syntax, format, or enum guidance beyond that, 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?

'Append an event to a lot's history' names a specific verb and resource, which reads clearly as a write operation distinct from read-oriented siblings like privi_verify_lot and privi_chain_of_custody. It does not explicitly name or contrast with any sibling though, so an agent must infer the boundary.

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 '(manufacturers only)' qualifier and the PRIVI_WRITE_KEYS requirement give real gating context, but there is no explicit when-to-use guidance and no routing against the other privi_* tools. Usage is implied rather than stated.

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.