Skip to main content
Glama

Set a custom field on a contact

set_contact_field
DestructiveIdempotent

Write a value into one of the custom fields defined for this organization (list them with list_custom_fields).

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": {
      "contactId": "<contactId>",
      "field": "<field>",
      "value": "<value>"
    },
    "name": "set_contact_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldYesField slug.
valueYes
contactIdYes
idempotencyKeyNoOptional. A unique id for this action (16-128 chars: letters, digits, _ : . -). If you are unsure whether a call went through (timeout, network error), repeat it with the SAME idempotencyKey and the same arguments: you get the original result and nothing is done twice.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/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, so the safety profile is covered structurally. The description adds the requirement that the field be pre-defined, but says nothing about overwriting an existing value, what happens on an unknown slug, or permission needs. The idempotencyKey retry contract lives in the schema, not the description.

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?

A single sentence plus a parenthetical pointer, with zero filler. The constraint that fields must already exist is front-loaded before the discovery hint.

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 could reasonably state what is returned or how partial success looks, and it does not. For a destructive, idempotent mutation with two undocumented parameters, missing overwrite and error semantics leave a real gap, though the field-discovery guidance covers the main practical pitfall.

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 coverage is 50%: field and idempotencyKey are documented, while value and contactId are bare. The description partly compensates by constraining field to organization-defined custom fields and pointing at list_custom_fields to obtain slugs. It still adds no meaning for value's accepted format or for contactId's identity source.

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: writing a value into an existing custom field. The parenthetical routing to list_custom_fields implicitly distinguishes this from listing or creating field definitions. The gap is that the description never says the write targets a contact record (that only appears in the title and the contactId param), so the object of the mutation is slightly understated.

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?

It gives a concrete precondition for correct invocation: discover field slugs first via list_custom_fields, and only use fields already defined for the organization. It does not discuss when to prefer update_contact or what to do when the field does not exist yet (create_custom_field), so no explicit exclusions are 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