Skip to main content
Glama

DripRaven WhatsApp campaigns

add_or_update_contact

Idempotent

Add or update a contact. Idempotent on phone — updates name, tags, and fields if the contact already exists. Phone must be E.164 format (+49171234567). source and external_id enable CRM sync. Set opted_out: false to RE-SUBSCRIBE a contact who previously opted out (only with genuine consent), or true to unsubscribe them; omit it to leave their opt-out status unchanged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo
tagsNo
phoneYesE.164 format, e.g. +49171234567
fieldsNoCustom key/value fields
sourceNoe.g. "hubspot", "api"
opted_outNoOmit to leave unchanged; false re-subscribes, true unsubscribes
external_idNoID in the source system

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations provide idempotentHint=true, but the description goes well beyond that by explaining idempotency keyed on phone, the exact fields updated, CRM sync behavior via source/external_id, and the nuanced opted_out semantics including the consent requirement for re-subscribing. This is rich behavioral disclosure beyond what annotations alone convey.

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?

Three sentences, each earning its place: core upsert behavior, phone format, CRM sync, then opt-out semantics. The most important behavior is front-loaded, and the consent warning is included without expanding into unnecessary prose.

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

Completeness4/5

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

Given seven parameters, nested objects, and no output schema, the description covers the behavioral essentials and parameter semantics well. A small gap is that it does not describe what the tool returns (e.g., contact object vs success indicator) or whether tags/fields are fully replaced or merged, but these do not block correct invocation.

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 coverage is 71%, and the description adds real meaning to several parameters: E.164 format for phone, CRM sync purpose for source/external_id, and the two-state plus omit behavior for opted_out. It does not add much for name, tags, or fields beyond saying they are updated, but the most nuanced parameters are clarified.

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?

The description states a specific verb and resource ('Add or update a contact') and immediately clarifies the distinguishing behavior: idempotency on phone, updating name/tags/fields when the contact already exists. This separates it from plain create or update tools without needing to inspect the schema.

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?

The description gives clear operational context for when to use this tool: it handles both add and update based on phone, and it explains the specific opt-out/re-subscribe decision. It does not explicitly name alternative sibling tools like import_contacts or list_contacts, so it stops short of full when-not-to-use guidance.

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