Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion claude-plugins/sent/skills/sent-compliance/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The optional `profileId` selector is available only for an organization's owned

## Interpret requirements and plan

1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names.
1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names. The setup plan's `compliance` value takes exactly these keys and option values, never REST field names or values.
2. Check `hasRegime` before interpreting an empty requirements list. An empty list with a published regime can mean no fields are demanded; `hasRegime: false` means no schema is published and is not proof that no compliance is required. US `TOLL_FREE` numbers require toll-free verification before production traffic, even when no requirements are returned; never tell the user that a toll-free number needs no registration.
3. Call `compliance.setup_plan` when the user needs the setup steps for a market. From Claude, Sender Profiles are provisioned in the Sent Dashboard: present the plan's requirements, and when it returns a Dashboard handoff, give the user that link. If the plan contains a `call` that would create a Sender Profile, do not call `sender_profiles.create`; hand the setup to the Dashboard. Do not translate the plan into an invented REST call.
4. If `canCompleteHere` is false, report `blocker` and `attachments`, then hand off document submission to the Sent dashboard or the documented multipart REST workflow. Required uploads cannot be carried through MCP. Optional attachment fields alone do not necessarily block creation.
Expand Down
26 changes: 18 additions & 8 deletions claude-plugins/sent/skills/sms-10dlc-registration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ description: Prepares and validates Sent US A2P 10DLC brand and campaign registr

# SMS 10DLC Registration

Use this skill for US A2P SMS over 10-digit long codes. Separate the compliance evidence packet from the exact Sent API request; they have different schemas and validators.
Use this skill for US A2P SMS over 10-digit long codes. Keep three shapes apart; they have different field names and use-case values:

| Shape | Used for | Field names | 2FA use case | `MIXED` / `LOW_VOLUME` |
| --- | --- | --- | --- | --- |
| Evidence packet | Internal readiness review | snake_case, versioned | `TWO_FA` | allowed |
| MCP `compliance` map | The setup plan from `sent-compliance` | snake_case | `2FA` | refused; volume decides |
| REST campaign request | `/v3/profiles/{profileId}/campaigns` | camelCase in a `campaign` wrapper | `TWO_FA` | allowed |

For current field and document requirements or an exact SMS setup call, use `sent-compliance` before preparing the registration evidence here. From Claude, its plan is completed by creating the Sender Profile in the Sent Dashboard; it does not manage campaigns on an existing profile.

Expand All @@ -29,7 +35,7 @@ Reject guidance that reintroduces a free-standing brand path.

Inherited campaigns are read-only. A profile cannot supply `brand` while brand inheritance is true.

## Two validation layers
## Evidence and requests

### Evidence readiness packet

Expand All @@ -41,9 +47,13 @@ python scripts/validate_10dlc_packet.py evidence.json

Collect legal identity, public website/policy links, consent proof, message flow, opt-in/opt-out/help responses and keywords, use cases, and realistic samples. See [references/10dlc-evidence-checklist.md](references/10dlc-evidence-checklist.md).

### Sent campaign request
### MCP compliance map

Through Sent MCP, the registration uses exactly the keys, `options`, and limits `compliance.requirements` publishes for US `TEN_DLC`, which is the shape of the setup plan's `compliance` value; never put REST field names or values in it. Each key's notes name the TCR field it fills. For use cases, `TWO_FA` is published as `2FA`, and `MIXED` and `LOW_VOLUME` are refused because Sent derives them from `volume`, so list each kind of traffic as its own entry. No local validator checks this shape.

### REST campaign request

The API request uses exact camelCase and a `campaign` wrapper:
The REST request uses exact camelCase and a `campaign` wrapper:

<!-- sent-campaign-request -->
```json
Expand Down Expand Up @@ -81,9 +91,9 @@ Validate it with:
python scripts/validate_campaign_payload.py campaign.json
```

## API use cases
## REST API use cases

Support all 13 current values:
The REST campaign request supports all 13 current values:

`MARKETING`, `ACCOUNT_NOTIFICATION`, `CUSTOMER_CARE`, `FRAUD_ALERT`, `TWO_FA`, `DELIVERY_NOTIFICATION`, `SECURITY_ALERT`, `M2M`, `MIXED`, `HIGHER_EDUCATION`, `POLLING_VOTING`, `PUBLIC_SERVICE_ANNOUNCEMENT`, and `LOW_VOLUME`.

Expand All @@ -101,8 +111,8 @@ Campaign responses currently expose statuses `SENT_CREATED`, `ACTIVE`, and `EXPI
2. Select brand/campaign inheritance.
3. Validate the versioned evidence packet.
4. Create or confirm the profile brand.
5. Translate evidence into the exact camelCase campaign request.
6. Validate locally and use `sandbox: true`.
5. Through MCP, fill the `compliance` map as described above. Through REST, translate evidence into the exact camelCase campaign request.
6. For REST, validate locally and use `sandbox: true`.
7. Show the payload and obtain confirmation before a real create/update/delete.
8. Store profile ID, campaign ID, `submittedToTCR`, raw status, and review evidence.
9. Complete the profile with required `webHookUrl` only after prerequisites are ready.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ use_cases[].messaging_use_case_us -> useCases[].messagingUseCaseUs
use_cases[].sample_messages -> useCases[].sampleMessages
```

These names are for the REST request. The MCP `compliance` map uses the keys `compliance.requirements` publishes instead.

Run the evidence validator before translation and the campaign validator after translation.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
| `PUBLIC_SERVICE_ANNOUNCEMENT` | Public-interest or government notices |
| `LOW_VOLUME` | Low-volume mixed traffic |

These are the REST values. The MCP `compliance` map takes the `options` `compliance.requirements` publishes instead.

Select what the business will actually send. Do not use `MIXED` or `LOW_VOLUME` to hide a dominant high-risk use case.

## Sample rules
Expand Down
3 changes: 3 additions & 0 deletions evals/sms-10dlc-registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ cases:
- query: "Why is our SMS throughput so low even after we registered our brand?"
expect: ambiguous
rationale: Could be vetting-score / campaign-throttle (sms-10dlc-registration) or per-cohort delivery analysis (messaging-performance-analyzer). Start with messaging-performance-analyzer to localize whether throttling is the broken stage, then route here if the diagnosis is TCR vetting or campaign misclassification.
- query: "compliance.setup_plan gave me a US 10DLC plan — how do I fill its compliance map for a 2FA and account-notification campaign?"
expect: trigger
rationale: Filling the MCP compliance map is campaign content; the skill sends the agent to the published keys and options and explains the 2FA spelling and why MIXED is refused.
2 changes: 1 addition & 1 deletion packages/sent/skills/sent-compliance/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The optional `profileId` selector is available only for an organization's owned

## Interpret requirements and plan

1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names.
1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names. The setup plan's `compliance` value takes exactly these keys and option values, never REST field names or values.
2. Check `hasRegime` before interpreting an empty requirements list. An empty list with a published regime can mean no fields are demanded; `hasRegime: false` means no schema is published and is not proof that no compliance is required. US `TOLL_FREE` numbers require toll-free verification before production traffic, even when no requirements are returned; never tell the user that a toll-free number needs no registration.
3. Call `compliance.setup_plan` when the user needs the exact setup call. Its `call.tool` is `sender_profiles.create`, with camelCase argument names and null placeholders that must be filled before execution. Do not execute blank values or translate the plan into an invented REST call.
4. If `canCompleteHere` is false, report `blocker` and `attachments`, then hand off document submission to the Sent dashboard or the documented multipart REST workflow. Required uploads cannot be carried through MCP; do not attempt a guaranteed-to-fail create. Optional attachment fields alone do not necessarily block creation.
Expand Down
26 changes: 18 additions & 8 deletions packages/sent/skills/sms-10dlc-registration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ description: Prepares and validates Sent US A2P 10DLC brand and campaign registr

# SMS 10DLC Registration

Use this skill for US A2P SMS over 10-digit long codes. Separate the compliance evidence packet from the exact Sent API request; they have different schemas and validators.
Use this skill for US A2P SMS over 10-digit long codes. Keep three shapes apart; they have different field names and use-case values:

| Shape | Used for | Field names | 2FA use case | `MIXED` / `LOW_VOLUME` |
| --- | --- | --- | --- | --- |
| Evidence packet | Internal readiness review | snake_case, versioned | `TWO_FA` | allowed |
| MCP `compliance` map | The setup plan from `sent-compliance` | snake_case | `2FA` | refused; volume decides |
| REST campaign request | `/v3/profiles/{profileId}/campaigns` | camelCase in a `campaign` wrapper | `TWO_FA` | allowed |

For current field and document requirements or an exact SMS setup call, use `sent-compliance` before preparing the registration evidence here. Its plan creates a new Sender Profile and does not manage campaigns on an existing profile.

Expand All @@ -29,7 +35,7 @@ Reject guidance that reintroduces a free-standing brand path.

Inherited campaigns are read-only. A profile cannot supply `brand` while brand inheritance is true.

## Two validation layers
## Evidence and requests

### Evidence readiness packet

Expand All @@ -41,9 +47,13 @@ python scripts/validate_10dlc_packet.py evidence.json

Collect legal identity, public website/policy links, consent proof, message flow, opt-in/opt-out/help responses and keywords, use cases, and realistic samples. See [references/10dlc-evidence-checklist.md](references/10dlc-evidence-checklist.md).

### Sent campaign request
### MCP compliance map

Through Sent MCP, the registration uses exactly the keys, `options`, and limits `compliance.requirements` publishes for US `TEN_DLC`, which is the shape of the setup plan's `compliance` value; never put REST field names or values in it. Each key's notes name the TCR field it fills. For use cases, `TWO_FA` is published as `2FA`, and `MIXED` and `LOW_VOLUME` are refused because Sent derives them from `volume`, so list each kind of traffic as its own entry. No local validator checks this shape.

### REST campaign request

The API request uses exact camelCase and a `campaign` wrapper:
The REST request uses exact camelCase and a `campaign` wrapper:

<!-- sent-campaign-request -->
```json
Expand Down Expand Up @@ -81,9 +91,9 @@ Validate it with:
python scripts/validate_campaign_payload.py campaign.json
```

## API use cases
## REST API use cases

Support all 13 current values:
The REST campaign request supports all 13 current values:

`MARKETING`, `ACCOUNT_NOTIFICATION`, `CUSTOMER_CARE`, `FRAUD_ALERT`, `TWO_FA`, `DELIVERY_NOTIFICATION`, `SECURITY_ALERT`, `M2M`, `MIXED`, `HIGHER_EDUCATION`, `POLLING_VOTING`, `PUBLIC_SERVICE_ANNOUNCEMENT`, and `LOW_VOLUME`.

Expand All @@ -101,8 +111,8 @@ Campaign responses currently expose statuses `SENT_CREATED`, `ACTIVE`, and `EXPI
2. Select brand/campaign inheritance.
3. Validate the versioned evidence packet.
4. Create or confirm the profile brand.
5. Translate evidence into the exact camelCase campaign request.
6. Validate locally and use `sandbox: true`.
5. Through MCP, fill the `compliance` map as described above. Through REST, translate evidence into the exact camelCase campaign request.
Comment thread
rrustemh-sent marked this conversation as resolved.
Resolved
6. For REST, validate locally and use `sandbox: true`.
7. Show the payload and obtain confirmation before a real create/update/delete.
8. Store profile ID, campaign ID, `submittedToTCR`, raw status, and review evidence.
9. Complete the profile with required `webHookUrl` only after prerequisites are ready.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ use_cases[].messaging_use_case_us -> useCases[].messagingUseCaseUs
use_cases[].sample_messages -> useCases[].sampleMessages
```

These names are for the REST request. The MCP `compliance` map uses the keys `compliance.requirements` publishes instead.

Run the evidence validator before translation and the campaign validator after translation.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
| `PUBLIC_SERVICE_ANNOUNCEMENT` | Public-interest or government notices |
| `LOW_VOLUME` | Low-volume mixed traffic |

These are the REST values. The MCP `compliance` map takes the `options` `compliance.requirements` publishes instead.

Select what the business will actually send. Do not use `MIXED` or `LOW_VOLUME` to hide a dominant high-risk use case.

## Sample rules
Expand Down
2 changes: 1 addition & 1 deletion plugins/sent/skills/sent-compliance/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The optional `profileId` selector is available only for an organization's owned

## Interpret requirements and plan

1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names.
1. Call `compliance.requirements` for the selected market. Preserve required flags, conditional rules, options, item fields, sender pattern, and attachment field names. The setup plan's `compliance` value takes exactly these keys and option values, never REST field names or values.
2. Check `hasRegime` before interpreting an empty requirements list. An empty list with a published regime can mean no fields are demanded; `hasRegime: false` means no schema is published and is not proof that no compliance is required. US `TOLL_FREE` numbers require toll-free verification before production traffic, even when no requirements are returned; never tell the user that a toll-free number needs no registration.
3. Call `compliance.setup_plan` when the user needs the exact setup call. Its `call.tool` is `sender_profiles.create`, with camelCase argument names and null placeholders that must be filled before execution. Do not execute blank values or translate the plan into an invented REST call.
4. If `canCompleteHere` is false, report `blocker` and `attachments`, then hand off document submission to the Sent dashboard or the documented multipart REST workflow. Required uploads cannot be carried through MCP; do not attempt a guaranteed-to-fail create. Optional attachment fields alone do not necessarily block creation.
Expand Down
26 changes: 18 additions & 8 deletions plugins/sent/skills/sms-10dlc-registration/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ description: Prepares and validates Sent US A2P 10DLC brand and campaign registr

# SMS 10DLC Registration

Use this skill for US A2P SMS over 10-digit long codes. Separate the compliance evidence packet from the exact Sent API request; they have different schemas and validators.
Use this skill for US A2P SMS over 10-digit long codes. Keep three shapes apart; they have different field names and use-case values:

| Shape | Used for | Field names | 2FA use case | `MIXED` / `LOW_VOLUME` |
| --- | --- | --- | --- | --- |
| Evidence packet | Internal readiness review | snake_case, versioned | `TWO_FA` | allowed |
| MCP `compliance` map | The setup plan from `sent-compliance` | snake_case | `2FA` | refused; volume decides |
| REST campaign request | `/v3/profiles/{profileId}/campaigns` | camelCase in a `campaign` wrapper | `TWO_FA` | allowed |

For current field and document requirements or an exact SMS setup call, use `sent-compliance` before preparing the registration evidence here. Its plan creates a new Sender Profile and does not manage campaigns on an existing profile.

Expand All @@ -29,7 +35,7 @@ Reject guidance that reintroduces a free-standing brand path.

Inherited campaigns are read-only. A profile cannot supply `brand` while brand inheritance is true.

## Two validation layers
## Evidence and requests

### Evidence readiness packet

Expand All @@ -41,9 +47,13 @@ python scripts/validate_10dlc_packet.py evidence.json

Collect legal identity, public website/policy links, consent proof, message flow, opt-in/opt-out/help responses and keywords, use cases, and realistic samples. See [references/10dlc-evidence-checklist.md](references/10dlc-evidence-checklist.md).

### Sent campaign request
### MCP compliance map

Through Sent MCP, the registration uses exactly the keys, `options`, and limits `compliance.requirements` publishes for US `TEN_DLC`, which is the shape of the setup plan's `compliance` value; never put REST field names or values in it. Each key's notes name the TCR field it fills. For use cases, `TWO_FA` is published as `2FA`, and `MIXED` and `LOW_VOLUME` are refused because Sent derives them from `volume`, so list each kind of traffic as its own entry. No local validator checks this shape.

### REST campaign request

The API request uses exact camelCase and a `campaign` wrapper:
The REST request uses exact camelCase and a `campaign` wrapper:

<!-- sent-campaign-request -->
```json
Expand Down Expand Up @@ -81,9 +91,9 @@ Validate it with:
python scripts/validate_campaign_payload.py campaign.json
```

## API use cases
## REST API use cases

Support all 13 current values:
The REST campaign request supports all 13 current values:

`MARKETING`, `ACCOUNT_NOTIFICATION`, `CUSTOMER_CARE`, `FRAUD_ALERT`, `TWO_FA`, `DELIVERY_NOTIFICATION`, `SECURITY_ALERT`, `M2M`, `MIXED`, `HIGHER_EDUCATION`, `POLLING_VOTING`, `PUBLIC_SERVICE_ANNOUNCEMENT`, and `LOW_VOLUME`.

Expand All @@ -101,8 +111,8 @@ Campaign responses currently expose statuses `SENT_CREATED`, `ACTIVE`, and `EXPI
2. Select brand/campaign inheritance.
3. Validate the versioned evidence packet.
4. Create or confirm the profile brand.
5. Translate evidence into the exact camelCase campaign request.
6. Validate locally and use `sandbox: true`.
5. Through MCP, fill the `compliance` map as described above. Through REST, translate evidence into the exact camelCase campaign request.
6. For REST, validate locally and use `sandbox: true`.
7. Show the payload and obtain confirmation before a real create/update/delete.
8. Store profile ID, campaign ID, `submittedToTCR`, raw status, and review evidence.
9. Complete the profile with required `webHookUrl` only after prerequisites are ready.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ use_cases[].messaging_use_case_us -> useCases[].messagingUseCaseUs
use_cases[].sample_messages -> useCases[].sampleMessages
```

These names are for the REST request. The MCP `compliance` map uses the keys `compliance.requirements` publishes instead.

Run the evidence validator before translation and the campaign validator after translation.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
| `PUBLIC_SERVICE_ANNOUNCEMENT` | Public-interest or government notices |
| `LOW_VOLUME` | Low-volume mixed traffic |

These are the REST values. The MCP `compliance` map takes the `options` `compliance.requirements` publishes instead.

Select what the business will actually send. Do not use `MIXED` or `LOW_VOLUME` to hide a dominant high-risk use case.

## Sample rules
Expand Down
Loading