Skip to main content
Glama

Manage custom fields

custom_fields_manage
Destructive

Custom fields on contacts, companies or deals. create (field_key becomes {{cf.}}), update, delete (its values go too; confirm first), set_value (one record's value).

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": {
      "action": "<action>"
    },
    "name": "custom_fields_manage"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRequired for: update, delete.
nameNoRequired for: create; optional for: update. Label, e.g. "Loan amount".
typeNo
valueNo
actionYes
optionsNoUsed by: create, update. Required for type select.
entityIdNo
fieldKeyNoRequired for: set_value; optional for: create. snake_case, max 60 chars.
positionNoLower sorts first.
entityTypeNoRequired for: create, set_value.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / type / enum
      Previous value: -[
      -  "text",
      -  "number",
      -  "date",
      -  "select"
      -]New value: +[
      +  "text",
      +  "number",
      +  "date",
      +  "select",
      +  "url",
      +  "email"
      +]
  2. Changed5 schema fields changed
    • addedInput schema / properties / entityType / description
      Added value: +"Required for: create, set_value."
    • changedInput schema / properties / fieldKey / description
      Previous value: -"snake_case, max 60 chars."New value: +"Required for: set_value; optional for: create. snake_case, max 60 chars."
    • addedInput schema / properties / id / description
      Added value: +"Required for: update, delete."
    • changedInput schema / properties / name / description
      Previous value: -"Label, e.g. \"Loan amount\"."New value: +"Required for: create; optional for: update. Label, e.g. \"Loan amount\"."
    • changedInput schema / properties / options / description
      Previous value: -"Required for type select."New value: +"Used by: create, update. Required for type select."
  3. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already flag destructiveHint=true, readOnlyHint=false, and idempotentHint=false; the description adds genuinely non-redundant behavior: delete cascades to stored values and warrants confirmation, and create's field_key becomes the {{cf.<key>}} template reference. Those are exactly the consequences an agent cannot infer from the annotation flags. It stops short of covering set_value's write semantics or what update does to existing values.

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?

One fragment-heavy sentence with a resource preamble followed by action-level notes; nothing is wasted and the cascade warning is attached directly to delete. The telegraphic style costs some readability (action names without explicit verbs), keeping it off a 5.

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 10-parameter destructive multi-action tool with no output schema, the definition covers the highest-stakes facts (cascade delete, template key) but leaves gaps: it never explains how value/entityId/entityType combine for set_value, what position does, or what a successful call returns. Adequate to act cautiously, not complete enough to act confidently.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 60% schema coverage the description still contributes meaning the schema lacks: field_key is bound to the {{cf.<key>}} template syntax, and set_value is scoped to a single record's value, clarifying value/entityId usage. It does not restate what the schema already says, so this is additive rather than duplicative.

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 the resource (custom fields on contacts, companies, or deals) and enumerates the four operations (create, update, delete, set_value), so an agent knows this is the CRUD surface for custom-field definitions plus a single-value writer. It is distinguishable from custom_fields_list because it is clearly the mutation counterpart, though the telegraphic phrasing means each action's verb-object is implied 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?

'delete (its values go too; confirm first)' gives a real precondition and safety cue, and 'set_value (one record's value)' hints at when that action is appropriate versus definition-level actions. Beyond that, there is no explicit when-to-use/when-not, and no pointer to custom_fields_list for reading definitions, so routing guidance is only implied.

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