Skip to main content
Glama

List an object's fields

list_fields
Read-only

Lists the fields of one selected object as the web Fields step shows them: each field's name, type, a sample value, whether it moves, and where it goes in the destination (null = not moved, "new" = a field of its own, else the id of an existing destination field). Call it when the user asks what will move or wants to change it; both systems must be connected. Up to 100 fields per call (200 with limit); page with offset and nextOffset. A field the automatic mapping could not place carries unmapped: true with unmappedReason; the full run waits until the user has reviewed such fields. Where canChooseDestination is false the destination is fixed: its entry in destinationFields has fixed: true and only whether the field moves can change. Returns { object, destinationObject, total, moving, fields: [{ field, label, type, sample, moves, destination, canChooseDestination, canRename, unmapped? }], destinationFields: [{ id, name, type, fixed? }], matchKey, next }.

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": {
      "id": "<id>",
      "object": "<object>"
    },
    "name": "list_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe migration id start_migration returned, like MIG-8F3C1D92.
limitNoFields per page. Default 100.
objectYesAn object id from list_objects, like "contacts".
offsetNoSkip this many fields (use nextOffset from the last answer).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses paging behavior (100 default, 200 with limit, nextOffset), the gate that a full run waits until unmapped fields are reviewed, the fixed-destination rule driven by canChooseDestination, and the unmapped/unmappedReason flags. That is substantial operational context the annotations do not carry.

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?

It is a single dense paragraph that front-loads the purpose and return shape before constraints. Every sentence carries information, though the enumerated return structure makes it long and a slightly tighter layout would improve scanability.

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 no output schema, the description takes on the burden of explaining the return payload and does so fully, including the fields array, destinationFields, matchKey and next. Combined with paging and the unmapped-review gate, an agent has everything needed to call and interpret it correctly.

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 adds real meaning by tying `limit` to the raised 200 cap and explaining that `offset` should come from the previous answer's nextOffset. `id` and `object` are left to the schema, which already documents them well.

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 names a specific verb and resource ("Lists the fields of one selected object") and enumerates exactly what each entry contains (name, type, sample, moves, destination), which cleanly separates it from siblings like list_objects or list_filter_fields. An agent can tell what it returns without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a concrete trigger ("Call it when the user asks what will move or wants to change it") and a prerequisite ("both systems must be connected"). It stops short of explicitly naming set_fields as the write counterpart, and the phrase "wants to change it" is slightly loose for a read-only tool, but the context is clear.

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