Skip to main content
Glama

Get Webhook Event

gitlab_get_webhook_event
Read-onlyIdempotent

Retrieve a GitLab webhook event by ID; specify a page when known, otherwise search up to 500 recent events.

Instructions

Find one webhook event by ID. Provide page when known, otherwise scans up to 500 recent events.

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": {
      "hook_id": "<hook_id>",
      "event_id": "<event_id>"
    },
    "name": "gitlab_get_webhook_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNo
hook_idYes
event_idYes
group_idNo
project_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.7.0
    • removedInput schema / properties / event_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / event_id / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / hook_id / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "number"
      -  }
      -]
    • addedInput schema / properties / hook_id / type
      Added value: +[
      +  "string",
      +  "number"
      +]
    • removedInput schema / properties / page / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedInput schema / properties / page / type
      Added value: +[
      +  "number",
      +  "null"
      +]
  2. First observedv1.6.1

TDQS

A3.5/5.0
Behavior4/5

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

The annotations already cover the read-only, idempotent, non-destructive profile, so the bar is lower. The description still adds meaningful behavior beyond them: the tool may fall back to scanning up to 500 recent events, which tells the agent about latency and failure conditions. It does not say what a miss looks like (empty vs. error), leaving one gap.

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?

Two short sentences, front-loaded with the action and followed by the fallback constraint. Every clause carries information; nothing is redundant.

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 five-parameter lookup with no output schema and no schema descriptions, the definition covers the core action and the scan limitation but omits scoping semantics for `group_id`/`project_id` and the shape of the result. Adequate as a minimum, but incomplete for a tool with this much undocumented surface.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% across five parameters, so the description must compensate and largely does not. It clarifies the role of `page` and implies `event_id`/`hook_id` are the lookup keys, but `group_id` and `project_id` — presumably scope selectors — are never mentioned, leaving their purpose entirely to inference.

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?

The description opens with a specific verb and resource: "Find one webhook event by ID," which is unambiguous and clearly distinct from the sibling list operation. It lacks an explicit contrast with gitlab_list_webhook_events, but the singular-lookup framing makes the distinction inferable.

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?

"Provide page when known, otherwise scans up to 500 recent events" gives real operational guidance for one parameter and warns of a fallback cost. However, it never states when to prefer this tool over gitlab_list_webhook_events, nor what happens if the event is older than the scan window.

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

Deploy Server

Other Tools