Skip to main content
Glama

trigger_manage

Manage event-driven trigger rules to automate project execution based on signal conditions. Create, update, delete, list, and test rules that respond to signals from sources like Sentry, IMAP, or RSS feeds.

Instructions

Manage event-driven trigger rules. Actions: list, create (name, event, conditions, actions), update (trigger_id + fields), delete (trigger_id), test (trigger_id, sample payload — dry-run).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesAction to perform: list, create, update, delete, test
statusNoFilter by status: active | paused
limitNoMax results (default 20, max 100)
nameYesDescriptive name for the rule
source_typeNoSignal source type to match (* = any). E.g. sentry, imap, telegram, rss*
project_idNoUUID of the project to trigger
conditionsNoConditions to match on signal payload. Keys are dot-notation field paths, values are {operator: value} objects. Operators: eq, neq, gte, lte, contains, not_contains, exists
input_mappingNoMap signal fields to project input_data. Keys are target fields, values are dot-notation source paths
cooldown_secondsNoSeconds between triggers (0 = no cooldown)
max_concurrentNoMax active runs before skipping trigger (-1 = unlimited)
rule_idYesUUID of the trigger rule
payloadNoSignal payload to test against. Use dot-notation to nest: {"metadata": {"severity": "error"}}
executeNoIf true, actually trigger the project run (default: false — dry run only)

Implementation Reference

  • The MCP gateway proxies all tool calls, including potential 'trigger_manage' requests, to the upstream FleetQ instance via HTTP/SSE. The actual logic resides on the server side of the FleetQ instance.
    server.setRequestHandler(CallToolRequestSchema, async (request) => {
      return upstreamClient.callTool(request.params);
    });
    
    server.setRequestHandler(ListResourcesRequestSchema, async (request) => {
      return upstreamClient.listResources(request.params);
    });
    
    server.setRequestHandler(ReadResourceRequestSchema, async (request) => {
      return upstreamClient.readResource(request.params);
    });
    
    server.setRequestHandler(ListPromptsRequestSchema, async (request) => {
      return upstreamClient.listPrompts(request.params);
    });
    
    server.setRequestHandler(GetPromptRequestSchema, async (request) => {
      return upstreamClient.getPrompt(request.params);
    });
    
    const stdioTransport = new StdioServerTransport();
    await server.connect(stdioTransport);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/escapeboy/agent-fleet-o'

If you have feedback or need assistance with the MCP directory API, please join our Discord server