Skip to main content
Glama

Sergio by Serviche

Test a Trigger on the last 7 days

try_flow_trigger
Idempotent

Answers who a Trigger would have started for over the last 7 days, and who it would have skipped and why, as the Automations editor's "Try it on the last 7 days" does. READ ONLY: nothing is sent, created or started. It runs the flow's saved Starts when and Only if rules, so it works on a draft too; flow_id comes from read('flows'). It answers only for a Trigger flow (one whose starts_when is a job event, e.g. New job booked); a flow that starts some other way is refused with the reason. Call it before turning a flow on (set_flow_on), and quote the started and skipped rows to your person so they decide. Pass the same idempotency_key when retrying; a repeat returns the same answer.

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": {
      "flow_id": "<flow_id>",
      "idempotency_key": "<idempotency_key>"
    },
    "name": "try_flow_trigger"
  }
}

Input Schema

NameRequiredDescriptionDefault
flow_idYes
idempotency_keyYesYour id for this operation (8-128 of A-Z a-z 0-9 . _ : -). Reuse it on every retry of the same operation; use a new one for a new operation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior1/5

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

The description asserts 'READ ONLY: nothing is sent, created or started', while the annotations declare readOnlyHint=false, meaning the tool may modify its environment. These conflict directly, so an agent cannot tell whether the test is truly side-effect free. Everything else it discloses, such as the draft support, the refusal reason and repeat-call semantics, is strong, but the side-effect claim is what the agent most needs to be accurate.

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 definition is front-loaded with the outcome and the read-only guarantee, and each sentence carries operational content. The analogy to the Automations editor's 'Try it on the last 7 days' is a useful anchor and not filler, though the run-on structure of the eligibility sentence costs some readability.

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?

With no output schema, the description still conveys the return shape conceptually (started rows and skipped rows with reasons). For a two-parameter dry-run tool, it covers prerequisites, refusal behavior and retry semantics well. The one real gap is the contradiction over side effects, rather than missing detail.

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 50%: idempotency_key is already documented in the schema, but the description adds where flow_id comes from (read('flows')) and reinforces the retry semantics of the key, which is real value beyond the schema. The UUID format constraint for flow_id is left entirely to the schema, which is acceptable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource: it answers who a Trigger would have started and who it skipped, and why, over the last 7 days. It pins the scope further by limiting it to Trigger flows whose starts_when is a job event, and it names the sibling it is not: flows that start another way are refused.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicit routing: call it before set_flow_on, quote the started and skipped rows to a person for the decision, get flow_id from read('flows'), and reuse the same idempotency_key on retries. It also states the precondition (a Trigger flow) and the refusal behavior when that precondition fails.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources