Skip to main content
Glama

satisfy_gate

Mark gate conditions as satisfied with evidence, such as confirming PR threads are checked, storing verification for 5 minutes.

Instructions

Satisfy a gate condition (e.g., after checking PR threads). Evidence is stored with a 5-minute TTL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gateYesGate condition ID to satisfy (e.g., pr_threads_checked)
evidenceNoEvidence text (e.g., "0 unresolved threads")

Implementation Reference

  • The core function that satisfies a gate by updating the gate state in a local file.
    function satisfyCondition(conditionId, evidence) {
      const state = loadState();
      state[conditionId] = {
        timestamp: Date.now(),
        evidence: evidence || '',
      };
      saveState(state);
      return state[conditionId];
    }
  • MCP tool handler for satisfy_gate, which calls the satisfyCondition utility.
    case 'satisfy_gate': {
      if (!args.gate) {
        throw new Error('gate is required');
      }
      const entry = satisfyCondition(args.gate, args.evidence || '');
      return toTextResult({
        satisfied: true,
        gate: args.gate,
        ...entry,
      });
    }

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/IgorGanapolsky/mcp-memory-gateway'

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