Skip to main content
Glama
Sequenzy MCP Server

Sequenzy MCP Server

Official
by Sequenzy

upsert_account

Destructive

Create or update a customer organization by external ID, merging attributes and optionally adding members so segments and emails can reference organization data.

Instructions

Create or update a customer organization (Subscribers > Organizations in the dashboard) by external ID. Attributes merge into the stored attributes (a null value deletes a key; set replaceAttributes to replace them all). Optional members are added in the same call. Use this to model companies, workspaces or teams so segments can filter on organization.plan and emails can use {{organization.name}} (account.* still works). The first organization turns Organizations on for the workspace; it fails with a 409 error when contacts already use a custom attribute named account or account.*, which must be renamed first.

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": {
      "externalId": "<externalId>"
    },
    "name": "upsert_account"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDisplay name, e.g. Acme.
domainNoPrimary domain, e.g. acme.com.
membersNoContacts to add as members in the same call.
companyIdNoCompany ID. If not provided, uses the currently selected company.
attributesNoAccount attributes such as plan, seats, mrr or trialEndsAt (max 100 keys). Nested objects flatten to dotted names.
externalIdYesCustomer-owned account (organization/workspace) ID, e.g. the org id in your app.
replaceAttributesNoReplace all stored attributes instead of merging.

Output Schema

NameRequiredDescriptionDefault
noteNoAdditional context about the result.
itemsNoFallback array wrapper used only when a tool returns a bare array.
valueNoFallback object wrapper used only when a tool returns a non-object value.
accountNoThe account record returned by Sequenzy.
createdNoTrue when the account was created.
membersNoMembers added in this call, when provided.
messageNoHuman-readable status, confirmation, or next-step message.
successNoWhether the Sequenzy operation succeeded.
warningsNoNon-fatal cautions about content, permissions, or follow-up actions.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.0

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the annotations by spelling out the destructive mechanics precisely: attributes merge, a null value deletes a key, and replaceAttributes wipes them all. It also discloses a side effect not visible anywhere else (the first organization turns Organizations on for the workspace) and a specific failure mode (409 when contacts already use a custom attribute named account/account.*). No conflict with the destructiveHint/openWorldHint/idempotentHint declarations.

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 identification key, then layers merge semantics, use case, and failure conditions in a logical order. Every sentence contributes, though the final sentences are densely packed and could be split for scannability.

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 seven-parameter nested mutation tool this is essentially complete: mutation semantics, side effects, prerequisite state, and error conditions are all covered, and an output schema exists so return values need no explanation.

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 description coverage is 100%, so the per-field docs already carry the load and baseline 3 applies. The description adds real semantic value on top: attribute merge versus replace behavior, null-as-delete, and the notion that externalId is customer-owned. It does not discuss members role defaults or companyId fallback beyond what the schema already says.

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 pair (create or update) plus the exact resource (customer organization) and the key that identifies it (externalId), and pins its dashboard location (Subscribers > Organizations). This distinguishes it immediately from siblings like delete_account, add_account_member, and get_account_by_external_id.

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 a concrete when-to-use rationale — model companies/workspaces/teams so segments can filter on organization.plan and emails can use {{organization.name}} — and notes that members can be added in the same call, implicitly covering the add_account_member case. It stops short of explicitly naming an alternative tool or stating when not to use it.

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

Deploy Server

Other Tools