cadence
v0.3.1Send RCS messages from your agent and get typed replies.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cadence_get_started
How Cadence works and what to do first. Call this before anything else if you have not used it before.
cadence_onboarding_status
The go-live checklist, computed from your account's real state. Each step names the call that completes it.
cadence_open_conversation
Start a conversation and send the first message. The agent speaks first and opt-in provenance is required. On a sandbox key agentId and brandId are free strings and delivery is simulated.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | |
brandId * | string | |
optinCapturedAt * | string | ISO 8601 timestamp of when consent was given |
optinMethod * | string | How consent was captured, e.g. web_form, appointment_booking |
to * | string | Recipient in E.164, e.g. +12025550123 |
useCase * | string | |
disclaimer | string | Frequency, rates, HELP and STOP. Appended to this first message on both legs. |
expiresAt | string | An absolute deadline instead. Not both. |
expiresIn | integer | Seconds this message stays worth delivering. Google holds a message for an offline handset up to 30 days — for anything tied to a moment, set this, or a yesterday-shaped question arrives on Thursday… |
flow | object | A scripted multi-step survey, driven by us: {id, name, disclaimer, closing|holdOpen, steps:[{id, text, suggestions, smsFallbackText}]}. This is the recommended shape for anything with more than one qu… |
idempotencyKey | string | Makes a retry safe. Without one, a retried send delivers and bills twice. |
media | object | An image, chart, PDF or short video to send with this message. |
openingText | string | The first message. Required unless you send `flow`, whose first step is the opening. |
optinEvidenceRef | string | Pointer to the proof — a record id or URL |
smsFallbackText | string | Required if you send chips or rich content — what the recipient reads on the SMS leg. |
suggestions | array | Chips, max 25 chars each, max 11. A string is a quick reply. An object is an action chip — opens a URL, dials, adds a calendar event, shows a location. Reply chips must not be carrier keywords (STOP… |
turnCeiling | integer | Max turns before the conversation closes (default 30) |
cadence_send
Send the next turn in an open conversation. Rich content degrades to smsFallbackText on the SMS leg.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | |
expiresAt | string | |
expiresIn | integer | |
idempotencyKey | string | |
media | object | |
smsFallbackText | string | |
suggestions | array | Strings are reply chips; objects are action chips (openUrl, dial, calendar, location). |
text | string |
cadence_simulate_reply
Deliver a reply as though the recipient sent it. SANDBOX KEYS ONLY — refused on live keys, because it would write words a real person never said into their transcript and consent record. This is how you exercise a conversation end to end without touching a phone.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string | |
optionIndex | integer | A reply chip on the NEWEST message, 1-based. Arrives as a real postback. |
postbackData | string | A chip from ANY recent message, by the slug we generated when we sent it (label lowercased, non-alphanumerics to underscores, then _ and its 1-based position among all chips on that message — e.g. "… |
text | string | What they typed, e.g. "182.4" or "STOP" or "START" |
cadence_get_conversation
State, channel, trust level and turn count for one conversation.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string |
cadence_get_messages
The transcript. Read deliveredText rather than body — on the SMS leg they differ, and body is the composed RCS wording rather than what the recipient actually read.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string |
cadence_close_conversation
Close a conversation. Stops turn counting.
| Parameter | Type | Description |
|---|---|---|
conversationId * | string |
cadence_check_consent
Whether a brand may message a number, and why not if it may not. Check this rather than attempting a send and reading the error.
| Parameter | Type | Description |
|---|---|---|
brandId * | string | |
e164 * | string | Recipient in E.164 |
cadence_list_brands
The brands on your account with each one's carrier-approval status.
cadence_get_brand
A brand's details, its latest readiness report, what is blocking submission, and its agents.
| Parameter | Type | Description |
|---|---|---|
brandId * | string |
cadence_create_brand
Create a brand — the business carriers review. Fields are snake_case on brand routes.
| Parameter | Type | Description |
|---|---|---|
displayName * | string | Consumer-facing name, e.g. "Acme Dental" |
cadence_update_brand
Set the details carriers verify. Do not guess legalEntity — carriers reconcile it against the site, and a wrong value is worse than a missing one.
| Parameter | Type | Description |
|---|---|---|
brandId * | string | |
bannerUrl | string | 1440x448, under 200 kB, same rules |
color | string | Hex; needs 4.5:1 contrast against white |
contactEmail | string | A named individual's mailbox, not a shared alias |
description | string | Also sent to Google as the agent description, where the limit is 100 characters. |
legalEntity | string | Exact registered name, e.g. "Salus, Inc." |
logoUrl | string | 224x224, under 50 kB, true-colour PNG or JPEG, no redirects |
privacyUrl | string | Omit to auto-detect from the website |
termsUrl | string | |
useCase | string | PERMANENT at Google once an agent is synced. transactional forbids promotional content forever. |
website | string |
cadence_check_brand_readiness
Run the carrier-readiness check: crawls the site, validates the privacy policy, messaging terms, opt-in page, domain age, brand/entity consistency and agent artwork, and generates the copy for anything missing. Every check carries `status`, `blocking` and `permanent`, and the last two are different axes: bad artwork is usually `blocking: false` and `permanent: true`, meaning the brand submits fine and the image freezes forever once verification is requested. Gate on both. `blocking` here means *blocks brand submission*. Whether something blocks agent creation is a different and later gate —…
| Parameter | Type | Description |
|---|---|---|
brandId * | string |
cadence_create_agent
Create an agent under a brand. A local record until it is synced to Google — nothing reaches Google here.
| Parameter | Type | Description |
|---|---|---|
brandId * | string | |
displayName * | string | |
useCase | string | PERMANENT once synced. Defaults to the brand's. |
cadence_preview_go_live
Rehearse the irreversible step. Creates NOTHING and returns exactly what would be sent to Google: which agents would be created, the fields that can never change afterwards, and anything that would fail. The real call is deliberately not available here. Show this output to the person who owns the account and let them decide — it creates an agent at Google that can never be deleted, by them or by us.
| Parameter | Type | Description |
|---|---|---|
brandId * | string |
cadence_launch_readiness
What is still blocking an agent's carrier launch, while everything is still cheap to change. The launch questionnaire cannot be edited after submission.
| Parameter | Type | Description |
|---|---|---|
agentId * | string |
cadence_invite_tester
Allowlist a phone number as a test device on an agent, so it can receive real RCS before carrier launch. This is how a message reaches an actual handset without launching to the public. **Invites are a finite, non-refundable resource.** Google allows 20 per agent per day and **200 per agent for its lifetime**, and the lifetime cap cannot be reset by us or by them. Spend them on numbers that will actually be used, not on smoke tests — a sandbox conversation exercises the whole message path for free and costs no invite. The recipient must accept the invitation on the handset. Sending before…
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Cadence agent id. The agent must exist at Google already — an agent with no RBM agent id has nothing to allowlist against. |
e164 * | string | The tester's number in E.164, e.g. +12025550123 |
cadence_list_keys
The API keys on this account — prefix, kind, label, brand scope and whether each is revoked. **Never returns a key's secret**; those exist once, at creation, and are not recoverable. Use it to see whether a live key already exists before asking anyone to make one. Creating a key is deliberately not a tool here: a key is a credential, and minting one through this server would write a live secret into a model's context and whatever logs that context reaches. That is a choice for the account owner, in the dashboard or over REST with their own session — not a step an agent should take on thei…
cadence_usage
Usage and cost for a calendar month, for the account this server is authenticated as — which is not necessarily the one you have keys for elsewhere. Sandbox conversations are counted and never billed.
| Parameter | Type | Description |
|---|---|---|
monthsAgo | integer | 0 is the current month |