Skip to main content
Glama
agentreadycrm

agentreadycrm

Official

Define Field

define_field
Idempotent

Create custom fields on contacts, organizations, or deals to track data missing from standard fields, so values can be set, filtered, sorted, and displayed as columns.

Instructions

Define a custom field on contacts, organizations or deals, so it can be set, filtered, sorted and shown as a column.

Call it when the user wants to track something list_fields does not have: a fit grade, an audience, a headcount. Then write values with update_contact, update_organization or update_opportunity (fields={key: value}). Put a fact about a company on the organization, once, never on each of its contacts. Defining a key that exists returns it, adding any new options and filling an empty description; it never changes the label, type, range or removes an option, which update_field does.

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": {
      "entity": "<entity>",
      "key": "<key>",
      "label": "<label>",
      "type": "<type>"
    },
    "name": "define_field"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyYesStable identifier: lowercase letters, digits and underscores (e.g. "fit"). Writes, filters and other systems name it, so choose it to last.
typeYesWhat the field holds.
labelYesThe name people see, e.g. "Fit".
entityYesWhat the field describes.
maximumNoFor a number field, the highest value it accepts, inclusive.
minimumNoFor a number field, the lowest value it accepts, inclusive (e.g. 1 for a 1-5 score).
optionsNoThe allowed values, required for select and multi_select. Matched without regard to case on write.
defined_byNoWho is defining it: an agent, a run, or a person.
descriptionNoWhat the field means and how to fill it, written for the agent that will grade the next thousand records.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare non-destructive, idempotent, closed-world; the description adds real behavior beyond them: re-defining an existing key returns it, appends new options, backfills an empty description, and never mutates label, type, range or removes options. It does not state permission requirements or what the response looks like, but the output schema covers the latter.

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?

Front-loaded purpose sentence, then usage, then mutation semantics — good ordering with no filler. The company-vs-contact placement rule is a slightly long aside, but it prevents a common misuse, so it earns its place.

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?

With 9 parameters, rich enum coverage, full schema descriptions, an output schema and strong annotations, the description supplies exactly the missing layer: when to create vs modify, how keys are reused, and where field values get written. Nothing essential for correct invocation is absent.

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 earns more by explaining the 'entity' vocabulary in domain terms (deals = opportunities) and by stating the key-value write convention that ties this tool to update_contact/update_organization/update_opportunity. It also implicitly justifies 'key' as a lasting identifier, though it doesn't discuss minimum/maximum or options constraints.

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?

Opens with a specific verb and resource: 'Define a custom field on contacts, organizations or deals', then immediately states the downstream consequences (set, filtered, sorted, column). It also names the sibling it is not — list_fields for existing fields, update_field for changes — so the agent can route without opening schemas.

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 trigger ('when the user wants to track something list_fields does not have'), concrete examples (fit grade, audience, headcount), the follow-up write path with the exact parameter form (fields={key: value}), and the exclusion case where update_field is the right tool instead.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.