Skip to main content
Glama

Simulate a goal event

simulate_goal_event

Moves a sandbox goal through its lifecycle instantly; each event sends the real signed webhook to the seller's webhookUrl, exactly as live would. confirm: the buyer signs up and links a bank (goal.deposit_paid if there is a deposit; for subscriptions also goal.subscription_created, plus goal.cycle_paid at once if the deposit paid the first period in full). collect: one collected chunk (round-ups and/or Trickl Down, which arrive the same way), $3 by default (goal.round_up_collected); fails with ALREADY_FUNDED when the current period is already paid. complete: one-time goals finish (goal.completed); subscriptions pay the current period and start the next (goal.cycle_paid; the goal stays SAVING). payment_failed: a failed chunk (goal.payment_failed), with reversal=true for the clawback path. expire: a deadline goal fell short (goal.deadline_charge_failed). Confirm first.

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": {
      "goalId": "<goalId>",
      "event": "<event>"
    },
    "name": "simulate_goal_event"
  }
}

Input Schema

NameRequiredDescriptionDefault
eventYes
amountNocollect / payment_failed only: cents, default 300
goalIdYesgoalId from create_test_goal
reasonNopayment_failed with reversal only
reversalNopayment_failed only: true = a chunk already counted is reversed (clawback); false = a collection failed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond readOnlyHint=false: it discloses the real side effect (each event 'sends the real signed webhook to the seller's webhookUrl, exactly as live would'), the resulting goal states ('the goal stays SAVING'), and a named failure code (ALREADY_FUNDED). Return payload and webhook delivery outcome are left unstated, so not a 5.

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?

Front-loads the core behavior and side effect in the first sentence, then devotes one clause per event with no filler. The event walkthrough is a dense run-on block rather than a scannable list, which 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?

For a 5-parameter mutation tool with no output schema, it covers state transitions, webhook side effects, and an error condition, which is close to what an agent needs. Missing are the call's return shape and whether webhook delivery is synchronous or ordered, which the agent cannot learn from any structured field.

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 80% and the schema already documents amount default 300 and the reversal meaning, but the description adds the semantics of every event enum value and ties amount/reason/reversal to specific events ('payment_failed with reversal only', '$3 by default'). Meaningfully richer than the schema alone, though it never states units for amount in the description.

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?

States a specific verb and resource ('Moves a sandbox goal through its lifecycle instantly') and then defines what each of the five event values actually does, so the agent knows precisely which state transition each call triggers. It also anchors goalId to its sibling source ('goalId from create_test_goal'), separating it from create_test_goal/get_goal/cancel_test_goal.

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?

Gives per-event conditions that govern usage ('collect ... fails with ALREADY_FUNDED when the current period is already paid') and closes with the ordering rule 'Confirm first.' It does not name a when-not-to-use case or explicitly point at a sibling alternative, so it stops short of the top band.

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.