Skip to main content
Glama

List custom objects

sf_list_custom_objects

Retrieve custom objects and their Tooling API Ids from Salesforce org via SOQL, enabling targeted deletion workflows.

Instructions

List custom objects in the org with their Tooling API Ids (via a Tooling API SOQL query on CustomObject). Use the returned Id with sf_delete_custom_object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results. Default 200.
searchNoFilter by DeveloperName (case-insensitive substring).

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 carries the behavioral disclosure burden. It does add useful context by revealing that this runs 'a Tooling API SOQL query on CustomObject' and returns Tooling API Ids. It does not explicitly confirm read-only behavior, ordering, or output shape beyond the Ids, but 'List' and 'query' imply a non-mutating operation.

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 filler. The primary purpose is front-loaded, and the downstream usage hint ('Use the returned Id with sf_delete_custom_object') is a valuable, compact addition.

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 simple list tool with no output schema and no annotations, the description provides the core information: what is listed, how it is queried, and what the returned Ids are for. It does not detail every return field, but the stated purpose of obtaining Tooling API Ids is sufficient for the intended use.

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%: both 'limit' and 'search' already have meaningful descriptions in the input schema. The tool description adds no additional parameter-level detail, so the baseline of 3 applies.

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 states a specific action ('List'), a clear resource ('custom objects in the org'), and a key output detail ('Tooling API Ids'). It also distinguishes this from general object listing by specifying custom objects and the Tooling API query mechanism.

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 a usage context by saying 'Use the returned Id with sf_delete_custom_object,' which helps the agent understand one downstream purpose. However, it does not explicitly state when to prefer this tool over siblings like sf_list_objects or sf_soql_query, nor does it mention exclusions.

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