Skip to main content
Glama

epc.is EPCIS Repository

Summarize events

summarize
Read-onlyIdempotent

Count the signed-in user's EPCIS events, computed by the repository in one call, grouped by one dimension: eventType, bizStep, disposition, readPoint, bizLocation, action, day or month. Takes the same filters as query_events. Use it for "how many", "which steps", "per day" questions instead of paging through events; then query_events for the events behind a bucket.

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": {
      "groupBy": "<groupBy>"
    },
    "name": "summarize"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNoevents before this time, ISO 8601
epcNoan instance or class identifier anywhere in the event
fromNoevents at or after this time, ISO 8601
moreNofurther EPCIS query parameters as a query string
sizeNomost groups to return, 1 to 100 (default 20)
bizStepNoCBV bizStep, bare (shipping) or as URI
groupByYeseventType, bizStep, disposition, readPoint, bizLocation, action, day or month
eventTypeNoObjectEvent, AggregationEvent, TransformationEvent, AssociationEvent or TransactionEvent
readPointNoRead Point, an SGLN Digital Link
bizLocationNoBusiness Location, an SGLN Digital Link
dispositionNoCBV disposition, bare (in_transit) or as URI

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, closed-world and non-destructive, so the description only needs to add operational context — which it does: the count is computed server-side in one call, it is scoped to the signed-in user, and it accepts the same filters as query_events. It doesn't say what an empty group set looks like, but the aggregation model is otherwise clear.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences ordered as what-it-does, when-to-use, then the fallback tool. Nothing is wasted and the core capability is front-loaded.

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?

With 11 params but only groupBy required and full schema coverage, the definition supplies enough: it explains the aggregation model, the user scoping and the filter inheritance. A brief note on the returned bucket shape would close the last gap given there is no output schema.

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 100%, so every parameter including groupBy is already documented, and the description mostly restates the allowed grouping values. Its one genuine addition is that filters behave like query_events filters, which helps an agent transfer knowledge, but no syntax or edge-case detail is added beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb ('Count') and resource ('the signed-in user's EPCIS events'), plus the exact grouping dimensions available. It is immediately distinguishable from query_events, which returns events rather than counts.

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

Usage Guidelines5/5

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

Gives explicit use cases ('how many', 'which steps', 'per day' questions), an explicit anti-pattern to avoid (paging through events), and a clear next step (query_events for the events behind a bucket). The alternative is named with the condition that selects it.

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