Skip to main content
Glama

List data sources

datasource_list
Read-only

Lists a report’s data sources—aliases, IDs, usage, connections, credentials, freshness, status—and optionally their fields to inspect or select sources before editing charts or queries.

Instructions

Lists the data sources a report uses: alias (ds1, ds2 …), name, id, how many charts and report filters or parameters use each, the connection (BigQuery table path, or a custom query's SQL and billing project), whether it is embedded in the report or reusable, whose credentials it reads with (owner or viewer), data freshness, status and query parameters. Use it before adding charts, removing or changing a source, to learn the aliases the other data source tools take. With fields: true each source also lists its fields with type, dimension or metric, and default aggregation, which is how to spot a custom query column Looker Studio typed wrongly (fix it with field_update). Google Sheets worksheet settings and GA4 account/property IDs are also identified. Other connectors are listed by native type.

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": {
      "report_id": "<report_id>"
    },
    "name": "datasource_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
fieldsNoAlso list every field of each source with its type, dimension or metric, and default aggregation.
report_idYesReport id or its Looker Studio URL.
data_sourceNoShow only this data source (alias such as ds2, id, or name). All of them when left out.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.4/5.0
Behavior4/5

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

The readOnlyHint already covers the safety profile, and the description adds substantive behavior beyond it: the fields:true switch expands each source to its field list with type and role, connection details include custom-query SQL and billing project, and credential mode (owner vs viewer) is reported per source. It omits anything about response size, pagination, or permission requirements for reading a source, which keeps it from a 5.

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?

Front-loads the verb and resource, then keeps every clause informational — the long enumeration of returned attributes is dense but each item earns its place for a tool with no output schema. The middle sentences are run-on and could be split for scanability, which is the only real cost.

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 carries the full burden of describing return values and does so item by item, including connector-specific notes for Sheets and GA4 and the fallback of listing other connectors by native type. Combined with full parameter coverage and readOnlyHint, an agent has everything needed to call it correctly and interpret the result.

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, but the description adds real meaning: it explains that fields:true is the mechanism for spotting a custom query column that Looker Studio typed wrongly and points to field_update as the remedy, and it clarifies that data_source accepts an alias like ds2. That is guidance the schema text alone does not convey.

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?

States a specific verb and resource ("Lists the data sources a report uses") and then enumerates exactly what each entry contains: alias, name, id, usage counts, connection details, credentials mode, freshness, status. That level of specificity lets an agent distinguish it from datasource_query (which would fetch data, not metadata) without opening either 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?

Gives concrete triggering situations: before adding charts, before removing or changing a source, and to discover the aliases other data source tools require. It does not explicitly say when not to use it or name a sibling as the alternative for a different task (e.g. querying rows), so it falls short of a full when/when-not pairing.

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