You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> Each result row includes a `ual` field identifying which Knowledge Asset graph the event was found in. Array fields (`epcList`, `childEPCList`, `inputEPCs`, `outputEPCs`) are returned as comma-separated strings.
765
+
766
+
**Example (HTTP 400 Bad Request):**
767
+
768
+
```json
769
+
{
770
+
"error": "At least one filter parameter is required."
771
+
}
772
+
```
773
+
774
+
**Example (HTTP 500 Internal Server Error):**
775
+
776
+
```json
777
+
{
778
+
"success": false,
779
+
"error": "Failed to query events"
780
+
}
781
+
```
782
+
744
783
---
745
784
746
785
### GET `/epcis/events/track`
@@ -753,24 +792,42 @@ Track a single EPC through its full supply chain journey. This endpoint always p
|**400 Bad Request**| Missing/invalid `epc`| Query validation failed |
773
-
|**500 Internal Server Error**| DKG query failed | Failed to execute full-trace query |
825
+
```json
826
+
{
827
+
"success": false,
828
+
"error": "Failed to query events"
829
+
}
830
+
```
774
831
775
832
---
776
833
@@ -801,10 +858,39 @@ General-purpose query tool with the same filtering capabilities as `GET /epcis/e
801
858
802
859
> **Note:** At least one filter parameter is required (excluding `fullTrace`, `limit`, `offset`). Unlike the HTTP API where `fullTrace` is a string (`"true"`/`"false"`), the MCP tool accepts a native boolean.
803
860
804
-
**Response includes:**
861
+
**Response (first content block):**
805
862
806
-
- Event data with count and pagination
807
-
- Source Knowledge Assets with UALs and DKG Explorer links for provenance
When results contain events from DKG Knowledge Assets, a second content block is appended with **Source Knowledge Asset** provenance (see [Source Knowledge Assets](#source-knowledge-assets)).
888
+
889
+
**Error cases:**
890
+
891
+
- No filter parameters → `{ "error": "At least one filter parameter is required." }`
892
+
- Invalid date range → `{ "error": "Parameter 'to' must be greater than or equal to 'from'." }`
- Source Knowledge Assets with UALs and DKG Explorer links
920
+
The `summary` field contains a human-readable timeline with numbered steps showing `[eventTime] bizStep @ location` for each event. When results are found, a second content block is appended with **Source Knowledge Asset** provenance (see [Source Knowledge Assets](#source-knowledge-assets)).
- Upstream failure → `{ "error": "Failed to get capture status", "captureID": "456" }`
986
+
987
+
---
988
+
989
+
## Source Knowledge Assets
990
+
991
+
MCP tool responses (`epcis-query` and `epcis-track-item`) include **Source Knowledge Asset provenance** when results are found. This is returned as a second MCP content block (markdown text) listing the unique Knowledge Assets that contained the matching events.
> Array fields (`epcList`, `childEPCList`, `inputEPCs`, `outputEPCs`) are returned as comma-separated strings from the SPARQL `GROUP_CONCAT`. Fields that don't apply to a specific event type will be empty strings.
888
1030
889
1031
---
890
1032
891
1033
## 12. Query Examples
892
1034
1035
+
### Track a Single Item's Journey
1036
+
1037
+
Use the dedicated track endpoint for full-trace item tracking:
0 commit comments