Skip to main content
Glama

Dodaj lub zaktualizuj kontakty

upsert_contacts
Idempotent

Upsert contacts

Create or update contacts keyed by phone number (max 500). Group names are created if missing. Custom fields become {{field}} in send_sms.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contactsYesLista kontaktów (klucz = numer). Maks. 500.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
createdNo
invalidNo
updatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": {},
      +  "properties": {
      +    "created": {
      +      "type": "number"
      +    },
      +    "invalid": {
      +      "items": {
      +        "additionalProperties": {},
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "updated": {
      +      "type": "number"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Changed5 schema fields changed
    • addedInput schema / properties / contacts / description
      Added value: +"Lista kontaktów (klucz = numer). Maks. 500."
    • addedInput schema / properties / contacts / items / properties / email / description
      Added value: +"E-mail kontaktu."
    • addedInput schema / properties / contacts / items / properties / first_name / description
      Added value: +"Imię, podstawiane jako {{imie}}."
    • addedInput schema / properties / contacts / items / properties / last_name / description
      Added value: +"Nazwisko, podstawiane jako {{nazwisko}}."
    • changedInput schema / properties / contacts / items / properties / msisdn / description
      Previous value: -"Numer telefonu w formacie E.164, np. +48533991881. Numer 9-cyfrowy bez prefiksu = Polska."New value: +"Phone number in E.164. Example: +48533991881. A 9-digit number without prefix is treated as Polish."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations indicate idempotentHint=true and destructiveHint=false, so the description need not repeat these. The description adds valuable behavioral context: 'Group names are created if missing' and 'Custom fields become {{field}} in send_sms', which reveals side effects and integration behavior beyond what annotations provide. It doesn't cover all edge cases (e.g., how existing contacts are updated), but it discloses key behavior that an agent needs to know.

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?

The description is compact: three concise sentences. It front-loads the core purpose, then adds a constraint (max 500) and two key behaviors (group creation, custom field mapping). Every sentence contributes value, with no fluff or repetition of schema details.

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 the tool's moderate complexity (one parameter with nested properties) and the rich schema (100% coverage) plus an output schema, the description covers the essential operational details: limits, group creation, and field placeholders. It lacks explicit error-handling or idempotency notes, but annotations cover the latter. Overall, it is sufficient for an agent to call the tool correctly.

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 description coverage is 100%, and the schema already explains each parameter. The description complements by clarifying the key semantics: the mapping to send_sms placeholders and automatic group creation, which are not in the schema. This exceeds the baseline of 3 because it explains how the data is used downstream, aiding correct invocation.

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 clearly states a specific verb ('Create or update contacts') and resource ('keyed by phone number'). It differentiates from siblings like add_to_group and delete_contact by specifying the upsert semantics and grouping behavior. Even though the title is in Polish, the description is clear and unambiguous.

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 implies when to use this tool: when you need to create or update contacts in bulk, with automatic group creation and inline field updates. It does not explicitly name alternatives or exclusions, but the context (siblings like add_to_group, delete_contact) makes the intended use clear. A 4 is appropriate because it lacks explicit 'use this instead of X' guidance, but the description's scope is well-defined.

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.