Skip to main content
Glama
Pagerlane MCP Connector

Pagerlane MCP Connector

by si-essence

keep_run_workflow

Run a Keep workflow with optional alert or incident payload and inputs. Preview execution as a dry-run by omitting confirm, or set confirm to true to execute and create a new run.

Instructions

Run a workflow. POST /workflows/{workflow_id}/run with optional type, body, and inputs. type defaults to alert. An alert body may set status and severity. Keep defaults a missing alert status to firing and a missing alert severity to info. Query event_type and event_id replay a stored alert. Incident replay is not implemented. Each run creates a new execution. Omit confirm for a dry-run preview.

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": {
      "workflow_id": "<workflow_id>"
    },
    "name": "keep_run_workflow"
  }
}

Input Schema

NameRequiredDescriptionDefault
bodyNoEvent payload nested as body. Extra keys are sent through. Keep fills a missing alert name, id, and lastReceived.
typeNoEvent class for a manual run. Keep defaults an omitted type to alert.
inputsNo
confirmNoSet to the boolean true to execute the write. Omit this field for a dry-run preview. false and the string true are rejected.
event_idNoReplay query param event_id.
event_typeNoReplay query param event_type, used with event_id. Incident replay is not implemented in Keep.
workflow_idYesKeep workflow id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly=false, idempotent=false, destructive=false, openWorld=true; the description adds the non-obvious facts that every run creates a new execution, that dry-run is the default without confirm, and that Keep backfills missing alert status/severity/name/id. It does not cover failure modes such as an unknown workflow_id or what the run response contains.

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?

The purpose is front-loaded in four words, and the remaining sentences are short and declarative, each carrying a distinct fact. A few lines, such as the literal POST path and the repeated default statements, duplicate structured data and could be trimmed.

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?

For a 7-parameter, open-world mutation tool with a nested body object and no output schema, the description covers defaults, replay, dry-run safety, and execution creation well enough to invoke it correctly. Permission requirements and return/response behavior are the main omissions, and neither is fully required here.

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 86%, so the schema already documents most fields; the description still adds cross-parameter meaning, notably that type defaults to alert, that body fields are interpreted as alert vs incident (status/severity defaults differ), and that event_type and event_id work as a pair. That is meaningful semantics beyond the schema nodes.

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+resource ('Run a workflow') and pins down the exact endpoint and payload shape (POST /workflows/{workflow_id}/run with type, body, inputs). It is clearly separable from keep_list_workflows, but it never explicitly names a sibling, so the differentiation is implicit.

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?

It gives concrete conditional guidance: omit confirm for a dry-run preview, use event_type with event_id to replay a stored alert, and it explicitly rules out incident replay as unimplemented. It stops short of saying when to prefer this over alternatives such as acknowledging or resolving an alert directly.

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