Skip to main content
Glama
pushengage-mcp

pushengage-mcp

Create a subscriber attribute

pushengage_create_attribute

Creates a custom subscriber attribute for the current site, making it available for audience-group rules that target subscriber attributes.

Instructions

Creates a new subscriber attribute on the current site. Required: name (human-readable label, e.g. "Customer Plan") and key (machine identifier, e.g. "plan"). The key must start with a letter and contain only letters, numbers, hyphens, and underscores. The created key becomes a usable value for audience-group rules with field="attributes" (the rule's key property). PushEngage caps each site at 50 attributes; the API returns 422 if the limit is exceeded.

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": {
      "name": "<name>",
      "key": "<key>"
    },
    "name": "pushengage_create_attribute"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesThe machine identifier used in the JavaScript SDK and in audience-group rules. Must start with a letter and only contain letters, numbers, hyphens, and underscores. Max 64 chars. e.g. "plan", "signup_source", "lifetime-value". This is the same key you pass as `key` on an audience-group rule with field="attributes".
nameYesHuman-readable attribute name shown in the dashboard. 1–128 chars. e.g. "Customer Plan", "Sign-up Source".
site_idNoOverride the currently selected site.

Output Schema

NameRequiredDescriptionDefault
idNo
keyNo
nameNo
statusNo
view_urlNo
use_with_audience_group_ruleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.2.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / properties / site_id / maximum
      Added value: +9007199254740991
    • changedOutput schema / additionalProperties
      Previous value: -trueNew value: +{}
    • changedOutput schema / properties / use_with_audience_group_rule / additionalProperties
      Previous value: -trueNew value: +{}
  2. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false, idempotentHint=false), the description discloses a concrete quota — 50 attributes per site — and the resulting 422 failure, plus the key validation rule. The notable gap is duplicate handling: since idempotentHint is false, the agent would benefit from knowing what happens when the key already exists.

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?

Four front-loaded sentences that each carry information: purpose, required fields, key format, downstream usability, and quota. The key-format rule duplicates the schema's pattern and description slightly, which keeps it from a perfect score, but there is no filler.

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?

With an output schema available, return values need no explanation, and the description covers required params, format rules, downstream integration, and the site limit with its error code. Only duplicate-key behavior and the optional site_id override are left unaddressed, which are minor at this complexity.

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 description coverage is 100% and the key field's schema entry already explains its role in audience-group rules and its character constraints, so the description largely restates structured data. It adds marginal value by pairing name and key semantics with examples, but the baseline 3 applies when the schema does the heavy lifting.

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

Purpose4/5

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

The description opens with a specific verb and resource: "Creates a new subscriber attribute on the current site," and frames the attribute as an input to audience-group rules, which implicitly separates it from pushengage_create_audience_group. It stops short of naming a sibling to route away from, so it is clear but not fully differentiated.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: the note that the created key becomes a usable value for audience-group rules tells an agent why it would call this, but there is no explicit when-not guidance, no pointer to pushengage_list_attributes for checking existing keys, and no mention of prerequisite auth or site selection.

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