Skip to main content
Glama

upsert_contact

DestructiveIdempotent

Create a contact if it doesn't exist, or update it if it does. Do not include sensitive personal data (health, financial, government ID, payment card, passwords).

Input Schema

NameRequiredDescriptionDefault
emailYesContact email address
dry_runNoValidate and show what would be sent without changing anything
list_idYesList ID
last_nameNoLast name
first_nameNoFirst name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / email / description
      Previous value: -"Contact email address,required"New value: +"Contact email address"
    • changedInput schema / properties / list_id / description
      Previous value: -"List ID,required"New value: +"List ID"
  2. Changed2 schema fields changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "Validate and show what would be sent without changing anything",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and openWorldHint=true. The description's only added behavioral content is the compliance constraint on sensitive data, which is genuinely useful. It does not explain what the destructive aspect means (e.g., overwriting existing field values, re-subscribing suppressed contacts) or how dry_run mitigates it.

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 sentences, front-loaded with the core behavior, zero filler. The safety constraint earns its place as a hard rule.

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

Completeness3/5

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

There is no output schema, so the description should carry more weight. The compliance warning is a valuable addition, but gaps remain for a destructive upsert: what happens to existing fields, whether the dry_run flag is the safe preview path, and what a success response looks like.

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%, so the schema already documents all five parameters and the baseline is 3. The description adds no parameter-level meaning beyond the schema, and notably never mentions dry_run, the most consequential non-obvious parameter.

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+resource and defines the upsert semantics precisely ('create if it doesn't exist, or update it if it does'), which separates it from create_contact and update_contact without naming them. Not a 5 because sibling tool names are never referenced explicitly.

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

Usage Guidelines3/5

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

The upsert framing implicitly tells the agent to use this when it doesn't know whether the contact exists, but there is no explicit 'use this instead of create_contact/update_contact when...' guidance and no prerequisites stated.

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