Skip to content

Commit 8c8ad17

Browse files
committed
mcp: clarify event payload via raw_body, not request tool
- Update hookdeck_events tool description to state that raw_body returns the event payload directly; agents should not use hookdeck_requests when they already have an event id. - Clarify in schema that get returns metadata/headers only; raw_body returns the payload. - Update help text for hookdeck_events to match. Made-with: Cursor
1 parent c4b5f72 commit 8c8ad17

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

pkg/gateway/mcp/tool_help.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ Parameters:
143143
144144
Actions:
145145
list — List events with optional filters
146-
get — Get a single event by ID
147-
raw_body — Get the raw body of an event
146+
get — Get a single event by ID (metadata and headers only; no payload)
147+
raw_body — Get the event payload (body) directly by event ID. Use this when you need the payload; no need to call hookdeck_requests.
148148
149149
Parameters:
150150
action (string, required) — list, get, or raw_body

pkg/gateway/mcp/tools.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,10 +114,10 @@ func toolDefs(client *hookdeck.Client) []struct {
114114
{
115115
tool: &mcpsdk.Tool{
116116
Name: "hookdeck_events",
117-
Description: "Query events (processed deliveries routed through connections to destinations). List with filters by status, source, destination, or date range. Get event details or inspect the raw payload body.",
117+
Description: "Query events (processed deliveries routed through connections to destinations). List with filters by status, source, destination, or date range. Get event details (get) or the event payload (raw_body). Use action raw_body with the event id to get the payload directly — do not use hookdeck_requests for the payload when you already have an event id.",
118118
InputSchema: schema(map[string]prop{
119-
"action": {Type: "string", Desc: "Action: list, get, or raw_body", Enum: []string{"list", "get", "raw_body"}},
120-
"id": {Type: "string", Desc: "Event ID (required for get/raw_body)"},
119+
"action": {Type: "string", Desc: "Action: list, get, or raw_body. Use raw_body to get the event payload (body); get returns metadata and headers only.", Enum: []string{"list", "get", "raw_body"}},
120+
"id": {Type: "string", Desc: "Event ID (required for get/raw_body). Use with raw_body to fetch the event payload without querying the request."},
121121
"connection_id": {Type: "string", Desc: "Filter by connection (list, maps to webhook_id)"},
122122
"source_id": {Type: "string", Desc: "Filter by source (list)"},
123123
"destination_id": {Type: "string", Desc: "Filter by destination (list)"},

0 commit comments

Comments
 (0)