Skip to main content
Glama

List custom fields

sf_list_custom_fields

List custom fields with their Tooling API Ids, enabling you to identify and delete specific fields using the returned Ids.

Instructions

List custom fields with their Tooling API Ids (via a Tooling API SOQL query on CustomField). Use the returned Id with sf_delete_custom_field.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results. Default 200.
searchNoFilter by DeveloperName (case-insensitive substring).
sobjectNoOnly fields on this object, e.g. "Account". Omit for all objects.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations provided, the description must carry behavioral disclosure. It implies a read-only list operation but does not explicitly state that it has no side effects or discuss rate limits or pagination. The mention of Tooling API SOQL gives some context, but it does not go beyond the obvious.

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

Conciseness5/5

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

The description is two sentences with no fluff. It front-loads the purpose and provides a practical pointer to a sibling tool. Every word earns its place.

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?

The description is adequate for a simple list tool: it states what is returned (custom fields with Ids) and how to use the result. The schema covers parameter details. It could be slightly more explicit about the output structure, but that is not critical given the simplicity.

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?

All three parameters (limit, search, sobject) are fully described in the schema (100% coverage). The description adds no additional parameter semantics, so it meets the baseline of 3.

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?

The description clearly states the action (list), the resource (custom fields), and a distinguishing detail (Tooling API Ids). It also specifies the underlying method (SOQL query on CustomField). This distinguishes it from sibling tools like sf_list_objects or sf_list_custom_objects.

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?

The description implies usage for enumerating custom fields but does not explicitly contrast with alternatives. It only mentions a follow-up tool (sf_delete_custom_field) without stating when to use this tool versus others, so the agent must infer the appropriate context.

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