Skip to main content
Glama

Intents Checkout

Pay a test invoice and fire invoice.paid

send_test_webhook

Pay a test invoice end to end so the API fires a real invoice.paid to your webhooks. No money moves. Local server only: pass url (e.g. http://localhost:3000/api/webhooks/intents) to also POST the signed event straight to a local handler, signed with INTENTS_WEBHOOK_SECRET.

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": {
      "invoiceId": "<invoiceId>"
    },
    "name": "send_test_webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoLocal (stdio) server only: a local handler
invoiceIdYes
maxWaitSecNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already flag openWorldHint=true and destructiveHint=false, and the description adds genuinely new facts: no money moves, a real signed invoice.paid is emitted to registered webhooks, and the optional direct POST is signed with INTENTS_WEBHOOK_SECRET. It never notes that repeated calls will emit duplicate events, which combined with idempotentHint=false would be worth stating.

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?

Three short sentences, front-loaded with the core action and the reassuring 'No money moves', with the parameter-specific caveat last. Dense but every clause carries information; no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The action and its side effect are covered, but for a 3-parameter mutation tool with no output schema the definition leaves open what is returned (paid invoice? delivery result?), what happens if no webhook is registered or the handler fails, and what `maxWaitSec` governs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is only 33%, so the description must compensate. It does well for `url` (local handler target, signed payload) but adds nothing about `maxWaitSec` (presumably the wait for webhook delivery, capped at 45s) and only implicitly conveys that `invoiceId` must be a test-mode invoice.

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?

States a specific verb and resource ('Pay a test invoice end to end') plus the concrete observable effect ('fires a real invoice.paid to your webhooks'). It is clearly a webhook/invoice exercise tool rather than a generic event emitter, though it never names send_test_event to draw the boundary explicitly.

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

Usage Guidelines3/5

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

Usage is implied (end-to-end webhook testing against a real invoice) and the `url` parameter carries scoped guidance ('Local server only'). However, there is no explicit statement of when to choose this over send_test_event, nor any prerequisite such as needing an existing test invoice in the right state.

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.