Skip to main content
Glama

List datasource resource values

datasource_resources
Read-only

List the selectable values behind a widget's advanced settings and filters — campaigns, ad sets, forms, videos, alerts, and so on. describe_datasource says WHICH advanced keys a data view requires; this returns the values to put in them.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsNoValues the resource is scoped by — e.g. the campaign id when listing its ad sets. Keyed as describe_datasource names them
resourceYesResource name, e.g. "campaigns"
client_idYesClient id (from list_clients)
datasource_idYesDatasource alias (from datasources), e.g. fb-ads

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoThe selectable values for that resource — each with the id to put in the advanced setting or filter, and the label to show.
successYesTrue when the call succeeded. A failure comes back as an error result instead.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / params / description
      Added value: +"Values the resource is scoped by — e.g. the campaign id when listing its ad sets. Keyed as describe_datasource names them"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": false,
      +  "properties": {
      +    "data": {
      +      "description": "The selectable values for that resource — each with the id to put in the advanced setting or filter, and the label to show."
      +    },
      +    "success": {
      +      "description": "True when the call succeeded. A failure comes back as an error result instead.",
      +      "type": "boolean"
      +    }
      +  },
      +  "required": [
      +    "success"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=true, destructiveHint=false), and the description adds useful behavioral context: the tool returns selectable values for advanced widget settings/filters, and those values are meant to populate datasource keys. The 'and so on' wording also aligns with openWorldHint=true. No contradiction or hidden surprise.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, zero filler, with the core action front-loaded and the clarifying relationship to describe_datasource in the second sentence. The examples are compact and informative rather than redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is complete for this tool's role: it states what is returned, how it relates to describe_datasource, and gives examples. With an output schema present and annotations covering safety, no critical operational detail is missing. It could explicitly mention the need for client_id/datasource_id context, but the schema already supplies that.

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

Parameters3/5

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

Schema description coverage is 100%, so the schema already documents datasource_id, client_id, resource, and params. The description adds some orientation by mentioning campaign/ad-set-style resources and pointing to describe_datasource for key naming, but it does not add significant parameter-level meaning beyond the schema.

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 uses a specific verb and resource: 'List the selectable values behind a widget's advanced settings and filters,' and names concrete examples. It also explicitly distinguishes itself from describe_datasource, making its purpose unambiguous even among many sibling list_* tools.

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?

The description gives an explicit workflow: describe_datasource tells you WHICH advanced keys are required, while this tool returns the values to fill them with. This clearly routes the agent between the two tools and leaves no ambiguity about when this tool is the right choice.

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