Skip to main content
Glama

Register a site and give it a working, published banner

account.createApp
Destructive

Registers a domain as a new app and leaves it ready to install: it creates the app, builds and PUBLISHES its banner configuration, and activates it, so install.getSnippet works immediately afterwards. Use it when the customer has an account but no app for this site. It checks the account's existing apps first and will reuse one that is already registered for the domain rather than creating a duplicate; when another app exists on the same base domain it returns a question for the site owner instead of guessing, because a domain cannot be freed once taken. Accepts appearance overrides from demo.suggestDesign so the banner is on-brand from its first render. It does NOT accept compliance settings — the new app starts on the same defaults the dashboard applies, and the result names them. A new app is put on banner engine v2 unless widgetVersion is v1 because the owner asked for the v1 banner; reusing an existing app does not change its engine. On v2, button text is set to 'auto' (readable text picked from the site colours) unless design.btnTextColor is given. No account at all? Call help.startSignup; creating an account needs a password and must be done by the person, in their browser.

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": {
      "domainUrl": "<domainUrl>"
    },
    "name": "account.createApp"
  }
}

Input Schema

NameRequiredDescriptionDefault
designNoAppearance overrides to apply at creation, so the banner is on-brand from its first render. Pass the `normalized` object from demo.suggestDesign. Appearance only — compliance settings are NOT accepted here.
createNewNoAfter the site owner has confirmed they want a separate app for this domain, pass true.
domainUrlYesThe site to register, e.g. example.com or https://shop.example.com. This is what the banner's consent records are attributed to, so use the site the snippet will actually run on.
languagesNoAdditional language codes to install banner text for.
domainNameNoA friendly name for the app in the dashboard. Defaults to the domain.
descriptionNoOptional note stored against the app.
widgetVersionNoBanner engine for a newly created app. Omit this, or pass v2: a new app is put on v2. Pass v1 only when the site owner asked for the v1 banner. Has no effect when an existing app is reused.
defaultLanguageNoTwo-letter language code for the banner's default language. Defaults to `en`.
useExistingAppIDNoAfter the site owner has chosen an existing app, pass its AppID here. Creates nothing.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true, and the description justifies why: a domain cannot be freed once taken, so it refuses to guess on base-domain conflicts. It also discloses non-obvious behavior beyond the annotations — reuse of an already-registered app instead of duplicate creation, that compliance settings are rejected and defaults are named in the result, and the v1/v2 engine rule including that reuse never changes the engine.

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 its side effects, then conditions, then defaults — a sensible order. It is dense with no filler sentences, but the widgetVersion engine rule is stated twice (once in the description, once in the parameter semantics space), which is mild redundancy against an otherwise tight block.

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

Completeness5/5

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

For a nine-parameter, destructive, nested-object tool with no output schema, the definition covers the full picture: what gets created and published, what is deliberately not accepted (compliance settings), what the result contains (named defaults), how existing apps are handled, and where an agent must hand off to another tool.

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 baseline is 3, but the description adds cross-parameter semantics the schema does not: design comes from demo.suggestDesign's normalized object, createNew is only for after the owner confirms, useExistingAppID creates nothing, widgetVersion has no effect on reuse, and on v2 button text defaults to 'auto' unless design.btnTextColor is supplied. Minor gap: no added detail on languages, defaultLanguage, or domainName beyond the schema.

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 ('Registers a domain as a new app') and immediately enumerates the compound effect: creates the app, builds and PUBLISHES the banner config, activates it. It distinguishes itself from install.getSnippet (which works afterwards) and help.startSignup (for no-account cases), so an agent can tell exactly which tool to pick.

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

Usage Guidelines5/5

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

Gives an explicit triggering condition ('when the customer has an account but no app for this site'), an explicit alternative for the negative case ('No account at all? Call help.startSignup'), and routing for the ambiguous case (returns a question for the site owner rather than guessing on base-domain collisions). It also names the exact parameters that gate reuse vs. creation (createNew, useExistingAppID).

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