Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cometly.com/llms.txt

Use this file to discover all available pages before exploring further.

MCP Resources are read-only documents your client can subscribe to once and re-read on demand without burning tool-call budget. Cometly exposes five resources covering workspace orientation and the analytics vocabulary.

At a glance

URIDescriptionMime
cometly://workspace/contextSame payload as get_workspace_context — timezone, currency, connected ad accounts, custom event labels.application/json
cometly://catalog/metricsEvery supported analytics metric slug + category + label.text/csv
cometly://catalog/attribution-modelsEvery attribution model with a one-line description.application/json
cometly://catalog/dimensionsEvery group_by dimension across analytics tools.application/json
cometly://catalog/custom-eventsLive custom-event slot ↔ label map for this space.text/csv

When to use a Resource vs a tool

Resources are best for static-ish reference data the agent shouldn’t re-fetch every turn:
  • Metric catalogs change rarely — fetch once per session.
  • Attribution model definitions never change.
  • Dimension lists never change.
  • Custom event labels change when the user re-labels a slot — re-fetch occasionally.
For dynamic data (current campaign performance, recent webhooks, etc.) use the corresponding tool.

Subscribing

OAuth-aware clients (Claude Desktop, Cursor) handle Resource subscription automatically. Resource reads are subject to the same mcp_space:{id} ability as tools.

Example — reading a Resource

The MCP resources/read method returns the resource body in the same format the corresponding tool would produce:
{
  "method": "resources/read",
  "params": {
    "uri": "cometly://catalog/custom-events"
  }
}
Response (truncated):
slot,label,include_in_gross_revenue
custom_event_2,Deal Created,true
custom_event_5,Lead Magnet,false