Skip to main content
Glama

List available fields

list_fields
Read-only

List the metrics and dimensions you can query, for a connector or the blend.

With no connector you get Porter's curated cross-connector catalog (unprefixed names like clicks, amount_spent). Pass a connector slug (e.g. "facebook-ads") for that platform's full schema. Filter by field_type (metric or dimension) or a query keyword.

When account_id is supplied and the connector supports them, the account's user-defined custom fields (e.g. Google Ads conversion actions) are merged in with custom: true. Every returned id is a valid field name for query_data / query_blend.

exact_match, when present, is the ONE field whose name or label is exactly what you searched for — use it and skip reading the rest.

covers, when present, lists the connectors a field actually resolves against — a blend field asked of a connector outside that list answers with zeros, not with an error. porter_blend_alternatives names the blend fields that do cover the connector you asked for.

refresh_schema=True (with an account_id) makes the connector re-read the account's schema from the platform instead of its cache. The cache is refreshed automatically when the account is re-authorized in Porter; use this only when the user just created something on the platform (e.g. a custom conversion) and needs to see it now. It is slower, so leave it off by default.

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_fields"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryNo
connectorNo
account_idNo
field_typeNo
refresh_schemaNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld=false/destructive=false, and the description goes well beyond them: custom fields merged in with custom:true, cached-vs-platform schema reads with a slower refresh path, and the non-obvious 'covers' behavior where a blend field asked of a non-covered connector answers with zeros rather than an error. That zero-vs-error distinction is exactly the kind of behavior an agent cannot infer elsewhere.

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?

Well structured in one-concern-per-paragraph form with the scoping rule front-loaded, and no sentence is pure filler. It is nevertheless long for a list tool, and part of the length is spent narrating return fields (exact_match, covers, porter_blend_alternatives) that a declared output schema already surfaces.

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?

For a tool with five optional parameters, zero schema descriptions, and real blend-vs-connector ambiguity, the description supplies the scope rules, the cache/refresh caveat, and the failure semantics needed to call it correctly. Nothing material is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must carry all five parameters, and it does: connector slug semantics, field_type values ('metric' or 'dimension', an enum the schema lacks), account_id as the trigger for custom fields, query as a name/label keyword search (clarified by the exact_match note), and refresh_schema's cost and precondition.

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?

Opens with a specific verb and resource ('List the metrics and dimensions you can query') and immediately distinguishes two scopes (a connector vs. the blend). The no-connector case is explicitly characterized as the curated cross-connector catalog, which separates it from the sibling query_data/query_blend tools that consume these ids.

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

Usage Guidelines5/5

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

Gives explicit routing rules: omit connector for the curated catalog, pass a connector slug for the platform's full schema, filter with field_type or query. It also states a clear when-to-use/ when-not-to for refresh_schema ('use this only when the user just created something on the platform... leave it off by default') and tells the agent to use exact_match and skip reading the rest.

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