List available fields
list_fieldsList 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
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | ||
| connector | No | ||
| account_id | No | ||
| field_type | No | ||
| refresh_schema | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||