{% extends "docs/base.html" %} {% block docs_content %}

ping_user

Send a one-off ping to a user, subject to their ping mention settings.

Other interfaces: REST API and CLI ping-user.

Parameters

Name Type Required Description
username string Yes The username of the user to ping, or self for the authenticated user.
body string No An optional message of at most 240 characters. Omit it to send a bare ping.

Example

curl -X POST https://pearing.example/api/v1/mcp \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "ping_user",
      "arguments": {
        "username": "alice",
        "body": "Can you take a look at this?"
      }
    }
  }'

Response

Returns the created user-mention event as a text content block inside the standard MCP tool result.

The call fails when the user does not exist, has disabled ping mentions, or only accepts pings from teammates and does not share a team with the caller. A user may always ping themselves.

The MCP tool shares the api:ping-user rate limit with REST and CLI calls. Rate-limit errors include the number of seconds to wait before retrying.

{% endblock %}