Skip to main content
Glama

MailBeast.ai

Add or update contacts

upsert_contacts
DestructiveIdempotent

Create or update 1-1000 people in the workspace, matched by email; nobody is added to a campaign (add_leads does that). mode for people who already exist: fill_empty (default) fills only empty fields, overwrite replaces fields with the values sent, skip leaves them. An empty value never erases a field, and tags are always added to the person's (never removed: update_contact replaces them). Each email comes back with its contact id and outcome; invalid ones are listed with the reason. New people beyond the fair use of contact storage are not saved (over_storage_limit).

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": {
      "contacts": "<contacts>"
    },
    "name": "upsert_contacts"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
contactsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true and idempotentHint=true, and the description adds real semantics beyond that: empty values never erase fields, tags are additive only, per-email outcomes and contact ids are returned, invalid emails come back with a reason, and over-storage-limit contacts are silently not saved as `over_storage_limit`. That last caveat in particular is the kind of partial-success behavior an agent cannot infer from annotations.

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 scope and routing before the mechanics, and nearly every clause carries information an agent needs. It is a dense run-on with several parentheticals, which costs some scannability, but there is no filler.

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?

There is no output schema, and the description compensates by describing the per-email return (contact id plus outcome, invalid entries with reasons). It covers the destructive overwrite path, tag behavior, and storage-limit failure, which is complete for a 2-parameter batch upsert.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so the description must carry the load, and it does: it defines the otherwise-opaque `mode` enum value-by-value, names fill_empty as the default (not declared in the schema), and establishes that `email` is the match key for the whole contacts array. That is meaning the schema alone does not convey.

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 concrete verb pair and resource ('Create or update 1-1000 people in the workspace'), plus the matching key (email) and the batch bound. It also distinguishes itself from two siblings in the same breath: 'nobody is added to a campaign (add_leads does that)' and 'update_contact replaces them' for tags.

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?

Explicitly routes the agent away from itself where a sibling fits: no campaign enrollment (use add_leads), and tag replacement is update_contact's job. The `mode` explanation supplies the when-to-use decision for existing people (fill_empty vs overwrite vs skip).

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