KosmoKrator

data

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.

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.

Agent Surfaces

Machine-Readable Metadata

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.