Skip to main content
Glama

Upsert Contact

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).

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": {
      "email": "<email>",
      "list_id": "<list_id>"
    },
    "name": "upsert_contact"
  }
}

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?

The annotations already declare destructiveHint=true, idempotentHint=true, and openWorldHint=true, so safety profile is partly covered. The description adds genuinely new context — a PII restriction on what may be submitted — but it does not disclose the consequence of destructive=true (namely whether fields omitted on update are cleared or preserved) nor the existence of the dry_run validation path, which matters for a destructive write with no output schema.

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, zero waste, with the core upsert behavior front-loaded and the compliance constraint following. Every sentence earns its place and nothing is repeated from the schema or annotations.

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?

For a destructive, open-world write with no output schema, the definition covers purpose and compliance adequately but leaves material gaps: overwrite behavior on update, whether list_id adds the contact to a list or just scopes it, and how dry_run changes the outcome. Annotations carry some of the load, but the agent must still guess at the update semantics.

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, making 3 the baseline. The description adds the PII exclusion rule, which meaningfully constrains what values email/first_name/last_name may carry, but it says nothing about partial-vs-full update semantics for the optional name fields or how dry_run affects the call.

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?

The description names a specific verb+resource and spells out the upsert semantics: 'Create a contact if it doesn't exist, or update it if it does.' This distinguishes it in behavior from create_contact and update_contact, though it never names those siblings explicitly, so the differentiation must be inferred from the semantics rather than stated.

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?

No explicit when-to-use guidance is given relative to alternatives. An agent must infer that this tool is preferred over create_contact/update_contact when existence is unknown, and there is no mention of when to prefer batch_create_contacts for multiple records or which preconditions (e.g., list membership) apply. Usage is implied rather than instructed.

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