Skip to main content
Glama

List Custom Fields

list_custom_fields
Read-onlyIdempotent

List the custom contact properties/fields defined in your account, with each field's key (field_value) — the key to use in personalisation. Segments on custom fields are built in Mailercloud (Audience > Segments) for now.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "list_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoPage number
limitNoNumber of fields to return (10-100, default 20)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / limit / description
      Previous value: -"Number of fields to return"New value: +"Number of fields to return (10-100, default 20)"
  2. Changed1 schema field changed
    • removedInput schema / properties / api_key
      Removed value: -{
      -  "description": "MailerCloud API key",
      -  "type": "string"
      -}
  3. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so safety is covered. The definition adds meaning they do not: it discloses what a returned field carries and the special role of the field_value key for personalization, which is valuable given there is no output schema. It stops short of describing pagination or the response envelope.

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?

Two tight sentences that front-load the core action and follow with the practically important detail about field_value. The em-dash aside and the trailing 'for now' read a bit loosely but each clause carries information.

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?

For a small, read-only, two-parameter listing tool with full schema coverage, the definition covers what the tool returns and why the key matters. The main remaining gap is that paging/return-envelope behavior is never described, which matters somewhat since no output schema exists.

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 description coverage is 100%, with page and limit already documented (including the 10-100 range and default 20). The description adds no further syntax or paging semantics, so the baseline of 3 is appropriate.

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 gives a specific verb ('List') and a precise resource ('custom contact properties/fields defined in your account'), and adds what each returned item contains (its key/field_value). This distinguishes it plainly from the create/update/delete_custom_field siblings without naming them explicitly.

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?

Usage is only implied: the agent can infer this is the way to discover field keys before personalizing content. The note that custom-field segments are managed in the Mailmercloud UI ('Accounts > Segments') usefully signals that segment creation on these fields is out of scope via the API, but it is a redirect for an adjacent task rather than an explicit when-to-use/when-not statement.

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