Preview: SendMock has no stable release yet. These docs follow develop.

MCP reference

Logs tools

sendmock_logs_http

Requests to the native and provider APIs, newest first.

Toolset logs.

  • Read only
InputTypeDescription
cursorstring
The next_cursor of the previous page.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
limitinteger
Items per page, 1 to 200 (default 50).Example: 50
apistring
Which API, e.g. twilio.Example: twilio
status_classstring
2xx, 4xx or 5xx.One of: 2xx, 4xx, 5xxExample: 4xx
pathstring
Part of the path.Example: /Messages.json

Example call

{
  "name": "sendmock_logs_http",
  "arguments": {
    "cursor": "01JB7T9Q2R5W8X3Y6Z1A4B7C9D",
    "limit": 50
  }
}

Result: PageOf_ApiRequestLogEntry

API
GET/api/v1/logs/http
CLI
sendmock logs http
In the app
Logs > API requests

sendmock_logs_http_get

One API request with its request and response.

Toolset logs.

  • Read only
InputTypeDescription
request_idrequiredstring
The captured request's ID, from GET /api/v1/http/requests or GET /api/v1/logs/http.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

Example call

{
  "name": "sendmock_logs_http_get",
  "arguments": {
    "request_id": "01JB7T9Q2R5W8X3Y6Z1A4B7C9D"
  }
}

Result: ApiRequestLogEntry

API
GET/api/v1/logs/http/{requestId}
CLI
sendmock logs http show <requestId>
In the app
Logs > API requests > open a request

sendmock_logs_smtp

SMTP sessions, newest first, including rejected ones.

Toolset logs.

  • Read only
InputTypeDescription
cursorstring
The next_cursor of the previous page.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D
limitinteger
Items per page, 1 to 200 (default 50).Example: 50
resultstring
delivered or failed.Example: delivered
querystring
Client, EHLO name or user.Example: laravel.test

Example call

{
  "name": "sendmock_logs_smtp",
  "arguments": {
    "cursor": "01JB7T9Q2R5W8X3Y6Z1A4B7C9D",
    "limit": 50
  }
}

Result: PageOf_SmtpSession

API
GET/api/v1/logs/smtp
CLI
sendmock logs smtp
In the app
Logs > SMTP sessions

sendmock_logs_smtp_get

One SMTP session with its transcript.

Toolset logs.

  • Read only
InputTypeDescription
session_idrequiredstring
The SMTP session's ID, from GET /api/v1/logs/smtp.Example: 01JB7T9Q2R5W8X3Y6Z1A4B7C9D

Example call

{
  "name": "sendmock_logs_smtp_get",
  "arguments": {
    "session_id": "01JB7T9Q2R5W8X3Y6Z1A4B7C9D"
  }
}

Result: SmtpSession

API
GET/api/v1/logs/smtp/{sessionId}
CLI
sendmock logs smtp show <sessionId>
In the app
Logs > SMTP sessions > open a session