Skip to main content
Glama

list_custom_fields

Read-only

The tenant's custom fields for an area: entity contacts | accounts | agreements (contracts) | leads | a module table (mod_…). Returns key, label, type (text|textarea|number|date|boolean|select|multiselect), required, options, sort_order. Fields hidden from your role are left out. Optional include_inactive.

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>"
    },
    "name": "list_custom_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
entityYesArea: contacts, accounts, agreements (contracts), leads or a module table (mod_…)
include_inactiveNoAlso include inactive entries

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / entity / description
      Added value: +"Area: contacts, accounts, agreements (contracts), leads or a module table (mod_…)"
    • addedInput schema / properties / include_inactive / description
      Added value: +"Also include inactive entries"
  2. 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=true and openWorldHint=false, so safety is covered. The description adds behavior the annotations do not: fields hidden from the caller's role are silently omitted, and the exact returned attributes (key, label, type with its value set, required, options, sort_order) are enumerated, which sets expectations for downstream parsing.

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?

Dense but front-loaded: the resource and its scope come first, then the return shape, then the permission caveat, then the optional flag. The telegraphic final fragment ('Optional include_inactive') and pipe-delimited lists are efficient, though the run-on first sentence takes a re-read.

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?

With no output schema, the description carries the return-value burden and does so by listing the returned attributes and the type vocabulary, plus the role-based omission caveat. For a two-parameter read-only tool that is nearly complete; container shape and ordering guarantees are the only unaddressed details.

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%, so both parameters are already documented in the input schema. The description restates the entity areas and notes that include_inactive is optional, adding no syntax, format, or edge-case detail beyond the schema, so baseline 3 applies.

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 leads with a specific verb and resource: it lists a tenant's custom fields, scoped to one area (contacts, accounts, agreements/contracts, leads, or a mod_… table). That is concrete enough to separate it from the Pipedrive-specific field lister siblings, although it never names an alternative 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 implied by the required `entity` argument and the optional `include_inactive` flag, but there is no explicit when-to-use or when-not guidance and no pointer to sibling tools such as the Pipedrive-specific field listers. An agent can infer the call, but must decide on its own when this is the right lister.

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.