Skip to main content
Glama
Ecomail MCP Server

Ecomail MCP Server

Official
by Ecomailcz

Create Transaction

create-transaction

Records a new e-commerce transaction for a subscriber from order ID, email, and amount, supporting item details, status, delivery fields, and UTC timestamps.

Instructions

Create a new e-commerce transaction for a subscriber. Timestamps are in UTC.

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": {
      "order_id": "<order_id>",
      "email": "<email>",
      "amount": "<amount>"
    },
    "name": "create-transaction"
  }
}

Input Schema

NameRequiredDescriptionDefault
taxNoTax amount
cityNoDelivery city
shopNoShop name (case sensitive, used in segment conditionals)
emailYesSubscriber's email
amountYesTotal amount including tax and shipping
countyNoDelivery county
statusNoTransaction status
countryNoDelivery country
order_idYesYour unique order/transaction ID
shippingNoShipping amount
timestampNoUnix timestamp of the transaction
transaction_itemsNoArray of transaction items

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden of behavioral disclosure. It says nothing about side effects an agent would need to know: whether an unknown email auto-creates a subscriber, whether a duplicate order_id errors or is upserted, whether creating a transaction triggers automations or segment conditionals (the schema's "shop" field hints at segment logic), or what is returned. The UTC sentence is the only extra context and is arguably redundant with the schema's "Unix timestamp" description.

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?

Two short sentences with no filler, and the purpose is front-loaded before the time-convention note. Nothing is wasted, though the extreme brevity for a 12-parameter mutation tool means conciseness is partly achieved by omission rather than by efficient 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?

For a write operation with 12 parameters, no annotations, and no output schema, the description should explain required fields, duplicate-handling, and what a success response contains. None of that is present, leaving the agent to infer mutation semantics entirely from the schema. The UTC note alone does not make the definition complete for a tool of 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%, including descriptions for all 12 properties and the nested transaction_items, so the schema does the heavy lifting and the baseline of 3 applies. The description adds only the UTC time convention, which is marginal since Unix timestamps are inherently UTC-based. It adds no meaning about required vs optional field interplay or the amount/tax/shipping relationship.

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?

States a specific verb and resource: "Create a new e-commerce transaction for a subscriber." That is unambiguous about what the tool does and the domain (e-commerce transaction tied to a subscriber). It does not explicitly contrast with the sibling create-bulk-transactions, but the singular/plural naming makes the distinction largely self-evident.

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?

There is no when-to-use guidance at all: nothing about choosing this over create-bulk-transactions for multiple orders, nothing about prerequisites such as the subscriber needing to exist, and nothing about when a transaction should not be created. The only usage-adjacent content is the UTC note, which is a data convention rather than selection criteria.

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