IMPLEMENTATION
Call this tool
Connect a user's D7 SMS account once, then configure and run Send SMS from your backend or agent.
import { PipedreamClient } from "@pipedream/sdk"
const pd = new PipedreamClient({
projectId: process.env.PIPEDREAM_PROJECT_ID!,
clientId: process.env.PIPEDREAM_CLIENT_ID!,
clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
projectEnvironment: "production",
})
const result = await pd.actions.run({
id: "d7_networks-send-sms",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
d7_networks: { authProvisionId: "apn_xxxxxxx" },
originator: "Originator",
recipients: ["Recipients"],
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "d7_networks-send-sms",
"configured_props": {
"d7_networks": { "authProvisionId": "apn_xxxxxxx" },
"originator": "Originator",
"recipients": ["Recipients"]
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "d7_networks",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "d7_networks-send-sms",
arguments: {
originator: "Originator",
recipients: ["Recipients"],
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
originator Originator | string | The Sender/Header of a message. Brand name with a maximum character limit of 11 or your mobile number with country code. E.g. Pipedream Required |
recipients Recipients | string[] | Mobile Numbers to send SMS. Required |
content Content | string | Content of the message. Required |
channel Channel | string | Messaging Channel ( SMS, WhatsApp, Viber, Telegram, etc) Optional |
reportUrl Report URL | string | Your call back server URL to recieve delivery status Optional |
dataCoding Data Encoding | string | Set as text for normal GSM 03.38 characters (English, normal characters). Set as unicode for non GSM 03.38 characters (Arabic, Chinese, Hebrew, Greek like regional languages and Unicode characters). Set as auto so we will find the data_coding based on your content. Optional |
msgType Message Type | string | Set as text for normal GSM 03.38 characters (English, normal characters). Set as unicode for non GSM 03.38 characters (Arabic, Chinese, Hebrew, Greek like regional languages and Unicode characters). Set as auto so we will find the data_coding based on your content. Optional |
REFERENCE
Tool details
Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.
- Registry key
- d7_networks-send-sms
- Version
- 0.0.2
- App
- D7 SMS
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗