Skip to main content
Glama

Write to a user first

start_conversation

Sends a message to one user who may never have written in: pick them by user_id, login_id or attribute + value (find_users). If they have an open conversation it goes there, else a new one starts. A normal message is delivered like a reply: unread in the app, a push, an email if unread. Set promotional for offers and discounts: those only show in the app (no push or email), are labelled, skip users who asked for no offers, and one user gets at most one per 7 days. Needs the app's agent replies set to send (a person decides in the dashboard). Write as the team, plainly; never invent an offer the team hasn't made.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "start_conversation"
  }
}

Input Schema

NameRequiredDescriptionDefault
formNoUp to 5 questions the user answers together; the answers come back structured in get_conversation (form_answer). `text` (or form.text) is the intro.
giftNoA gift the user opens: a card with an Open gift button that opens `url` with a one-time `devreply_gift=gft_…` token added. The app checks the token (POST /v1/project/gifts/claim with a secret key, or the gift.opened webhook) before granting anything. Only offers the team set up; never in exchange for a rating.
textNoThe message, in DevReply Markdown.
linksNoButtons that open a link: the app's own deep link (its scheme from Settings → deep link, e.g. kneefit://lessons/new) or https. The app's deep-link handling does the rest (open a screen, a paywall). `text` becomes the intro.
valueNoThe attribute's value, matched as text.
app_idNoThe app's id (from list_apps). Optional when there is only one.
optionsNoOptional answer buttons, as in reply_to_user.
user_idNoDevReply's id for the user (find_users).
categoryNoFor a new conversation (default other).
login_idNoOr the app's own id (DevReply.login).
attributeNoOr an attribute the app sets, with value.
promotionalNoAn offer or campaign rather than the team reaching one person. Default false.

Output Schema

NameRequiredDescriptionDefault
app_idNoThe app.
deliveryNopush (notifications on) or in_app (promotional, or notifications off / not asked / unknown: they see it next time they open the app).
message_idYesThe message.
promotionalYesSent as a promotion: in the app only, no push or email.
conversation_idYesWhere it went.
new_conversationYesFalse: it went into their open conversation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • addedInput schema / properties / form
      Added value: +{
      +  "description": "Up to 5 questions the user answers together; the answers come back structured in get_conversation (form_answer). `text` (or form.text) is the intro.",
      +  "properties": {
      +    "questions": {
      +      "description": "The questions, in order.",
      +      "items": {
      +        "properties": {
      +          "kind": {
      +            "description": "One choice, several, or free text.",
      +            "enum": [
      +              "single",
      +              "multi",
      +              "text"
      +            ],
      +            "type": "string"
      +          },
      +          "options": {
      +            "description": "For single and multi.",
      +            "items": {
      +              "maxLength": 40,
      +              "type": "string"
      +            },
      +            "maxItems": 6,
      +            "minItems": 2,
      +            "type": "array"
      +          },
      +          "required": {
      +            "description": "Must be answered.",
      +            "type": "boolean"
      +          },
      +          "text": {
      +            "description": "The question.",
      +            "maxLength": 300,
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "text",
      +          "kind"
      +        ],
      +        "type": "object"
      +      },
      +      "maxItems": 5,
      +      "minItems": 1,
      +      "type": "array"
      +    },
      +    "text": {
      +      "description": "Optional intro (Markdown).",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "questions"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / gift
      Added value: +{
      +  "description": "A gift the user opens: a card with an Open gift button that opens `url` with a one-time `devreply_gift=gft_…` token added. The app checks the token (POST /v1/project/gifts/claim with a secret key, or the gift.opened webhook) before granting anything. Only offers the team set up; never in exchange for a rating.",
      +  "properties": {
      +    "expires_in_days": {
      +      "description": "Default 14.",
      +      "maximum": 90,
      +      "minimum": 1,
      +      "type": "integer"
      +    },
      +    "text": {
      +      "description": "One line, e.g. \"Thanks for finding that bug!\".",
      +      "maxLength": 300,
      +      "type": "string"
      +    },
      +    "title": {
      +      "description": "e.g. \"50% off for a year\".",
      +      "maxLength": 80,
      +      "type": "string"
      +    },
      +    "url": {
      +      "description": "The app's deep link (or https) that grants it, e.g. kneefit://paywall?offer=bug_hunter.",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "title",
      +    "url"
      +  ],
      +  "type": "object"
      +}
    • addedInput schema / properties / links
      Added value: +{
      +  "description": "Buttons that open a link: the app's own deep link (its scheme from Settings → deep link, e.g. kneefit://lessons/new) or https. The app's deep-link handling does the rest (open a screen, a paywall). `text` becomes the intro.",
      +  "items": {
      +    "properties": {
      +      "label": {
      +        "description": "The button's text.",
      +        "maxLength": 40,
      +        "type": "string"
      +      },
      +      "url": {
      +        "description": "https://… or the app's scheme.",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "label",
      +      "url"
      +    ],
      +    "type": "object"
      +  },
      +  "maxItems": 3,
      +  "minItems": 1,
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "text"
      -]New value: +[]
    • addedOutput schema / properties / delivery
      Added value: +{
      +  "description": "push (notifications on) or in_app (promotional, or notifications off / not asked / unknown: they see it next time they open the app).",
      +  "type": "string"
      +}
  2. Added

TDQS

A4.5/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations only declare non-read-only and non-destructive; the description goes far beyond by disclosing delivery mechanics (unread, push, email if unread), routing into an existing open conversation, promotional-specific suppression of push/email and its 7-day rate limit, and the prerequisite that agent replies be enabled in the dashboard.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the core action and recipient selection before delivery and promotional rules. It is dense but every sentence carries behavioral information; the main cost is long multi-clause sentences that slightly slow parsing.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 12-parameter, nested-object mutation tool the description covers the high-risk behavior well: delivery channels, promotional constraints, prerequisite configuration, and tone. The structured form/gift/links mechanics are delegated to a fully-described schema and an output schema exists, so the remaining gap is minor.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds genuine meaning: how the three targeting parameters relate to find_users, what `promotional` actually changes about delivery and eligibility, and the conditional creation of a new conversation. The form, gift, and links objects are left to the schema's own rich descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Sends a message to one user') plus the distinguishing scope ('who may never have written in'), immediately separating it from reply_to_user. It also names how the recipient is chosen (user_id, login_id, or attribute + value via find_users).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear context for when to reach out cold and detailed guidance for the promotional case (only offers, respects opt-out, one per 7 days). It stops short of explicitly naming reply_to_user as the alternative when the user already wrote in, leaving that inference to the agent.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources