Skip to main content
Glama

Create popup

create_popup

Create a popup that shows a form on a trigger (time, scroll or exit_intent), optionally only on some paths. Errors: invalid_popup_config, not_found (form), invalid_status. Next: set status live, then add the runearc-embed.js script with data-popup="ID" to your site; popup_stats shows conversions.

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>",
      "form_id": "<form_id>",
      "heading": "<heading>"
    },
    "name": "create_popup"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesA name for the popup, such as "Blog exit offer".
statusNodraft or live. Default draft.
form_idYesThe form to show (frm_...).
headingYesThe popup headline.
triggerNotime, scroll or exit_intent. Default time.
only_pathsNoOnly on URLs starting with these paths, such as ["/blog"]. Empty means every page.
days_betweenNoDays before showing again to the same visitor. Default 7.
trigger_valueNoSeconds for time, percent for scroll. Default 5 and 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations only say this is a non-readOnly, non-destructive, non-idempotent create; the description adds real operational context beyond that: the error codes to expect (invalid_popup_config, not_found, invalid_status) and the post-create deployment step without which the popup never renders. It does not mention that retries will produce duplicate popups despite idempotentHint=false, which is the notable remaining gap.

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

Conciseness5/5

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

Two dense sentences: what it creates first, errors second, next steps last, in the order an agent needs them. Every clause carries information, including the embed-snippet requirement that would otherwise be discovered only after a failed launch.

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 an 8-parameter mutation with no output schema, the description covers errors, the returned ID (implied by data-popup=\"ID\") and the activation path, which is most of what an agent needs. Missing is the duplicate-creation warning on retry and any note on what the resource looks like immediately after creation.

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 every parameter including defaults (draft, time, 7 days, 5/50) is already documented in the schema. The description restates the trigger vocabulary and path scoping but adds no syntax or formatting detail beyond it; baseline 3 applies.

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?

Specific verb and resource ("Create a popup") plus the object's shape: a form shown on a trigger (time, scroll, exit_intent), optionally scoped to paths. That is enough to distinguish it from create_form, create_campaign and the rest of the create_* siblings without opening any schema.

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 an explicit follow-on sequence ("Next: set status live, then add the runearc-embed.js script with data-popup=\"ID\"") and points at popup_stats for conversion measurement. It stops short of stating when a popup is the wrong choice versus other create_* tools, so it is clear context without full exclusion guidance.

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.