Mail a postcard
lob.send_postcardFrom $0.905 per postcardListed
Print and mail a real postcard through Lob's Print & Mail API, with tracking events. Uses your own Lob API key.
Inputs
| Name | Type | Description |
|---|---|---|
torequired | object | |
from | object | |
frontrequired | string | HTML or URL of the front artwork |
backrequired | string | HTML or URL of the back |
size | string | one of: 4x6, 6x9, 6x11; default: "4x6" |
Example output
Provider returns a postcard object (id psc_..., expected_delivery_date, tracking events).
Try it
Not connected yet: use Lob directly at lob.com . Calling it through our MCP returns this same message.
Call it
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "lob.send_postcard",
"arguments": {
"to": {
"name": "Recipient",
"address_line1": "123 Example St",
"address_city": "Springfield",
"address_state": "IL",
"address_zip": "62701"
},
"front": "<html>Hello</html>",
"back": "<html>From your agent</html>",
"size": "4x6"
}
}
}curl -sS -X POST https://www.realworldmcp.com/api/call/lob.send_postcard \
-H 'content-type: application/json' \
-d '{"to": {"name": "Recipient", "address_line1": "123 Example St", "address_city": "Springfield", "address_state": "IL", "address_zip": "62701"}, "front": "<html>Hello</html>", "back": "<html>From your agent</html>", "size": "4x6"}'const res = await fetch("https://www.realworldmcp.com/api/call/lob.send_postcard", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"to": {"name": "Recipient", "address_line1": "123 Example St", "address_city": "Springfield", "address_state": "IL", "address_zip": "62701"}, "front": "<html>Hello</html>", "back": "<html>From your agent</html>", "size": "4x6"})
});
console.log(await res.json());