cadence

v0.3.1
com.cadencercs/cadence Checked 3 days ago Published 3 months ago

Send 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.

ParameterTypeDescription
agentId *string
brandId *string
optinCapturedAt *stringISO 8601 timestamp of when consent was given
optinMethod *stringHow consent was captured, e.g. web_form, appointment_booking
to *stringRecipient in E.164, e.g. +12025550123
useCase *string
disclaimerstringFrequency, rates, HELP and STOP. Appended to this first message on both legs.
expiresAtstringAn absolute deadline instead. Not both.
expiresInintegerSeconds 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…
flowobjectA 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…
idempotencyKeystringMakes a retry safe. Without one, a retried send delivers and bills twice.
mediaobjectAn image, chart, PDF or short video to send with this message.
openingTextstringThe first message. Required unless you send `flow`, whose first step is the opening.
optinEvidenceRefstringPointer to the proof — a record id or URL
smsFallbackTextstringRequired if you send chips or rich content — what the recipient reads on the SMS leg.
suggestionsarrayChips, 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…
turnCeilingintegerMax 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.

ParameterTypeDescription
conversationId *string
expiresAtstring
expiresIninteger
idempotencyKeystring
mediaobject
smsFallbackTextstring
suggestionsarrayStrings are reply chips; objects are action chips (openUrl, dial, calendar, location).
textstring

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.

ParameterTypeDescription
conversationId *string
optionIndexintegerA reply chip on the NEWEST message, 1-based. Arrives as a real postback.
postbackDatastringA 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. "…
textstringWhat they typed, e.g. "182.4" or "STOP" or "START"

cadence_get_conversation

State, channel, trust level and turn count for one conversation.

ParameterTypeDescription
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.

ParameterTypeDescription
conversationId *string

cadence_close_conversation

Close a conversation. Stops turn counting.

ParameterTypeDescription
conversationId *string

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.

ParameterTypeDescription
brandId *string

cadence_create_brand

Create a brand — the business carriers review. Fields are snake_case on brand routes.

ParameterTypeDescription
displayName *stringConsumer-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.

ParameterTypeDescription
brandId *string
bannerUrlstring1440x448, under 200 kB, same rules
colorstringHex; needs 4.5:1 contrast against white
contactEmailstringA named individual's mailbox, not a shared alias
descriptionstringAlso sent to Google as the agent description, where the limit is 100 characters.
legalEntitystringExact registered name, e.g. "Salus, Inc."
logoUrlstring224x224, under 50 kB, true-colour PNG or JPEG, no redirects
privacyUrlstringOmit to auto-detect from the website
termsUrlstring
useCasestringPERMANENT at Google once an agent is synced. transactional forbids promotional content forever.
websitestring

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 —…

ParameterTypeDescription
brandId *string

cadence_create_agent

Create an agent under a brand. A local record until it is synced to Google — nothing reaches Google here.

ParameterTypeDescription
brandId *string
displayName *string
useCasestringPERMANENT 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.

ParameterTypeDescription
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.

ParameterTypeDescription
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…

ParameterTypeDescription
agentId *stringCadence agent id. The agent must exist at Google already — an agent with no RBM agent id has nothing to allowlist against.
e164 *stringThe 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.

ParameterTypeDescription
monthsAgointeger0 is the current month