Skip to main content
Glama

Get signed webhooks for a formation order

formation.webhook

Registers an https endpoint on one LLC or nonprofit formation order, from its orderId and trackingToken, so Corpus POSTs each lifecycle step instead of the agent polling formation.status: paid, founder confirmed, in review, review approved, submitted to the state, accepted, certificate available, completed, failed or cancelled. Each step is sent at most once per endpoint, signed per the Standard Webhooks spec (webhook-id, webhook-timestamp, webhook-signature), with the formation.status projection as data and nothing more. Returns a subscriptionId and a whsec_ secret that is shown ONCE, then sends a formation.webhook.test delivery. At most 3 active endpoints per order. Pass { orderId, trackingToken, subscriptionId, remove: true } to remove one. Failed deliveries retry for about 45 hours; 410 Gone or three abandoned deliveries in a row disable the endpoint. No API key; free, does not consume credits.

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": {
      "orderId": "<orderId>",
      "trackingToken": "<trackingToken>"
    },
    "name": "formation.webhook"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoRegistering: the https endpoint (port 443, a public hostname, no IP address) Corpus will POST to.
removeNotrue to remove the endpoint named by subscriptionId.
orderIdYesThe order's id.
trackingTokenYesThe order's tracking token, returned with the orderId.
subscriptionIdNoRemoving: the subscriptionId registration returned.

Output Schema

NameRequiredDescriptionDefault
textYesHuman-readable tool result (also mirrored in content[].text).
isErrorNoTrue when the tool could not complete successfully.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Annotations cover safety and idempotency; the description adds substantially more: the whsec_ secret is shown only once, a formation.webhook.test delivery is fired on registration, failed deliveries retry for about 45 hours, and a 410 Gone or three abandoned deliveries disable the endpoint. It also discloses the payload is the formation.status projection and nothing more, plus cost (free, no API key).

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-loaded with the action and resource, then lifecycle events, signing, returns, limits, and removal, all in a tight block. The opening sentence is a long run-on that could be split, but no clause is filler.

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

Completeness5/5

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

For a mutating registration tool with an output schema present, this covers what an agent needs: credentials, return values (subscriptionId, one-time secret), delivery semantics, signing spec headers, retry and disable behavior, quota, and cost. Nothing material is missing.

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 100%, so the baseline is 3; the description earns an extra point by explaining how the parameters combine: url and the two required credentials on registration, versus subscriptionId plus remove:true on removal. It does not add format detail for url beyond the schema's https/port-443/public-hostname note, but the operation-level semantics are clarified.

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: register an https endpoint on one LLC/nonprofit formation order, keyed by orderId and trackingToken. It explicitly contrasts with the sibling formation.status polling path, so an agent can distinguish the push-based option from the pull-based one without opening either schema.

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?

Gives the positive case (push instead of polling formation.status), the removal case with the exact payload ({ orderId, trackingToken, subscriptionId, remove: true }), and the constraint of at most 3 active endpoints per order. Alternatives and exclusions are named rather than inferred.

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