Skip to main content
Glama
SendPulse MCP Server

SendPulse MCP Server

by Sudo-psc

set_variable

Assign a value to a contact's variable in a SendPulse bot to store or update contact-specific data for messaging and automation.

Instructions

Set a variable value for a contact

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "bot_id": "<bot_id>",
      "contact_id": "<contact_id>",
      "variable_name": "<variable_name>",
      "variable_value": "<variable_value>"
    },
    "name": "set_variable"
  }
}

Input Schema

NameRequiredDescriptionDefault
bot_idYesThe ID of the bot
contact_idYesThe ID of the contact
variable_nameYesVariable name
variable_valueYesVariable value

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.6/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses almost nothing. It does not say whether setting an existing variable overwrites it, whether an unknown variable_name creates a new variable or errors, what permissions or bot state are required, or whether the change is reversible.

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?

A single short sentence with no filler, and the verb is front-loaded. It is efficient, though the brevity reflects under-specification rather than disciplined editing.

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

Completeness2/5

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

This is a four-required-parameter mutation tool with no annotations and no output schema, so the description must cover behavior and return expectations. It leaves overwrite semantics, error conditions, and the effect of the call entirely unstated — insufficient for a write operation.

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

Parameters3/5

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

Schema coverage is 100%, so all four parameters (bot_id, contact_id, variable_name, variable_value) are already documented in the schema. The description adds no format, constraint, or expected-value information beyond that, so the baseline of 3 applies.

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

Purpose3/5

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

The description states a specific verb and resource ("Set a variable value for a contact"), which is enough to know it mutates contact data. However, "variable" is an undefined domain term — it is unclear whether this is a bot-level variable scoped to a contact, a contact attribute, or a custom field — and nothing distinguishes it from siblings like update_contact or add_tag.

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

Usage Guidelines2/5

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

No when-to-use guidance is given: there is no statement of preconditions (must the contact or variable already exist?), and no pointer to update_contact or any alternative for changing contact data. The agent must infer the choice from sibling names alone.

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