KosmoKrator

print

Lob MCP, CLI, and Lua Integration for AI Agents

Lob integration docs for AI agents: MCP gateway setup, Lob CLI commands, Lua API reference, credentials, and function schemas.

7 functions 5 read 2 write API key auth

Lob for agents

Credentials can be configured manually in web or CLI hosts.

Use this integration from Lua code mode, the headless integrations CLI, or the KosmoKrator MCP gateway. The same package metadata powers all three surfaces.

Machine-Readable Metadata
integration_slug
lob
route_slug
lob
package
lob
auth_strategy
api_key API key
cli_setup_supported
true
cli_runtime_supported
true
mcp_gateway_supported
true
lua_supported
true
supports_multi_account
true

Quick Links

Lob MCP Client Matrix

Use these pages when a specific agent client or framework needs copy-pasteable MCP setup for Lob.

Lob CLI Matrix

Use these pages for direct Lob CLI workflows in scripts, CI, cron, and agent wrappers.

Function Catalog

FunctionTypeParametersDescription
lob.lob_list_letters Read read 2 List letters with pagination. Returns a page of letter objects sorted by creation date (newest first).
lob.lob_get_letter Read read 1 Retrieve details of a specific letter by its Lob ID, including delivery status, tracking info, and the letter URL.
lob.lob_create_letter Write write 6 Create and send a letter via Lob. Provide recipient and sender addresses (as address IDs or inline address objects), plus an HTML file or template ID for the letter content.
lob.lob_list_postcards Read read 2 List postcards with pagination. Returns a page of postcard objects sorted by creation date (newest first).
lob.lob_get_postcard Read read 1 Retrieve details of a specific postcard by its Lob ID, including delivery status, tracking info, and thumbnails.
lob.lob_create_postcard Write write 5 Create and send a postcard via Lob. Provide recipient and sender addresses (as address IDs or inline address objects), plus HTML or template IDs for the front and back.
lob.lob_get_current_user Read read 0 List saved addresses in the Lob account. Returns all verified addresses that can be used as sender or recipient for letters and postcards.