Skip to main content
Glama

get_events

Retrieve raw inventory event rows in chronological order, filtered by item and date, to audit stock estimates or inspect voided and flagged records without loading the full log.

Instructions

Read-only raw event access (explainability: every estimate is recomputable from these rows). Includes voided rows, flagged.

Oldest first. Scope with item and since (ISO-8601 UTC, YYYY-MM-DD) rather than paging the whole log: a few years of receipts is well over a hundred thousand rows, which no context window will hold.

limit: 1..1000, default 200. offset: page forward from there. Returns {events: [...], returned, offset, total, has_more}.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_events"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemNo
limitNo
sinceNo
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.2.0
    • addedInput schema / properties / limit
      Added value: +{
      +  "default": 200,
      +  "title": "Limit",
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "title": "Offset",
      +  "type": "integer"
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "properties": {
      -    "result": {
      -      "items": {
      -        "additionalProperties": true,
      -        "type": "object"
      -      },
      -      "title": "Result",
      -      "type": "array"
      -    }
      -  },
      -  "required": [
      -    "result"
      -  ],
      -  "title": "get_eventsOutput",
      -  "type": "object"
      -}New value: +null
  2. First observedv0.1.0

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the full burden and does disclose key traits: read-only, includes voided rows (flagged), oldest-first ordering, and a pagination/size warning. It does not specify what the void flag field looks like, whether `item` resolves aliases, or any auth constraints, leaving some behavioral gaps for a data-dump tool.

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?

Front-loaded with the operation and its rationale, then scoping advice, then parameter semantics and return shape. Every line earns its place; the hard-wrapped sentences are slightly awkward to read but nothing is wasted.

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

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the full picture an agent needs without an output schema: it spells out the return shape ({events, returned, offset, total, has_more}), pagination mechanics, ordering, and a strong warning against unpaginated retrieval. Nothing essential is missing for a 4-param read tool.

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 0%, so the description must compensate, and it largely does: `since` gets an ISO-8601 UTC YYYY-MM-DD format, `limit` gets 1..1000 with default 200, `offset` is explained as page-forward pagination. Only `item` remains underspecified (identifier vs. name vs. alias), which is the one real gap.

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 and resource: read-only raw event access, with an explainability rationale ('every estimate is recomputable from these rows'). An agent can tell this is the audit-log tool rather than an aggregate (get_stock) or a mutator (void_event, correct_stock), though no sibling is named explicitly.

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

Usage Guidelines4/5

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

Gives concrete usage direction: scope with `item` and `since` instead of paging the whole log, with a stated reason (hundreds of thousands of rows, no context window will hold them). It lacks explicit when-to-use-this-vs-alternatives routing to tools like get_stock or get_health, keeping it below a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.