Skip to main content
Glama

Create a CRM custom field

create_custom_field

Define a new custom field for contacts (text, number, date, boolean yes/no, or select with a list of options) so the bot and the team can store a value per person. Returns every field afterwards, including the new one's slug, which set_contact_field uses to write a value. Check list_custom_fields first: a field whose slug already exists is left as it was. It only adds the definition; no contact is changed.

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": {
      "name": "<name>",
      "type": "<type>"
    },
    "name": "create_custom_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesName shown to the team, e.g. "Birthday"; the slug is derived from it.
typeYestext, number, date, boolean (yes/no) or select (one of `options`).
optionsNoFor type select: the allowed values (at least one).
workspaceIdNoWorkspace to work on (an id from list_workspaces). Not needed when this connection is tied to one workspace, or when you pass an account: the account's workspace is used.
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. Changed3 schema fields changed
    • addedInput schema / properties / name / description
      Added value: +"Name shown to the team, e.g. \"Birthday\"; the slug is derived from it."
    • changedInput schema / properties / options / description
      Previous value: -"Required for type=select."New value: +"For type select: the allowed values (at least one)."
    • addedInput schema / properties / type / description
      Added value: +"text, number, date, boolean (yes/no) or select (one of `options`)."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

With readOnlyHint=false and destructiveHint=false already supplied, the description still adds substance: it declares the return value (every field afterwards, including the new slug), the dedupe behavior on slug collision, and the absence of contact-level side effects. The only nuance is mild tension between the slug-dedupe note and idempotentHint=false, but the dedupe claim is scoped to pre-existing slugs rather than to whole-call replay, so it is not a real contradiction.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four tight sentences, front-loaded with the purpose and ending on the scope limitation. The type enumeration partially duplicates the schema enum, which is the one small redundancy in an otherwise dense and well-ordered description.

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

Completeness5/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 correctly compensates by describing the return payload and the new slug. For a mutation tool with five parameters and partial annotation coverage, nothing an agent needs in order to call it correctly or to interpret the result is missing.

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 100%, so the baseline is 3; the description adds a little by tying the select type to its options list and explaining that the slug is derived and then consumed by set_contact_field. It does not add format or constraint detail for workspaceId or idempotencyKey beyond the schema text, so it stays just above baseline.

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?

States a specific verb+resource ("Define a new custom field for contacts") and enumerates the supported field types (text, number, date, boolean, select with options). It also distinguishes itself from the two natural siblings: list_custom_fields as a prerequisite check and set_contact_field as the downstream writer of values.

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

Usage Guidelines5/5

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

Gives an explicit pre-call instruction ("Check list_custom_fields first") plus the consequence (an existing slug is left as it was), and clarifies the boundary against set_contact_field by noting this tool only adds the definition and changes no contact. An agent knows both what to do before calling and what this tool will not do.

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