Skip to main content
Glama
Mike25app

scaleforge-mcp-meta-ads

get_adset

Retrieve a specific ad set by its ID from Meta Ads, returning default fields and any additional fields you specify.

Instructions

Get a single ad set by ID. Returns default fields plus anything in fields.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
adset_idYes
fieldsNo

Implementation Reference

  • Handler for the 'get_adset' tool. Makes a GET request to Meta Graph API with the adset_id and optional fields, returning the ad set data.
    handler: async (args) =>
      metaGet(`/${String(args.adset_id)}`, {
        fields: args.fields ?? DEFAULT_ADSET_FIELDS,
      }),
  • Input schema for get_adset: requires adset_id (string) and optional fields (string).
    inputSchema: {
      adset_id: z.string(),
      fields: z.string().optional(),
    },
  • src/index.ts:65-66 (registration)
    Registration of all tools via server.registerTool() loop. get_adset is registered here as part of the adsetTools array spread on line 50.
    for (const tool of allTools) {
      server.registerTool(
  • src/index.ts:47-51 (registration)
    Collection of all tool definitions; adsetTools (which contains get_adset) is spread into the allTools array on line 50.
    const allTools: ToolDef[] = [
      ...accountTools,
      ...campaignTools,
      ...adsetTools,
      ...adTools,
  • Tool definition object for 'get_adset' with name, description, inputSchema, and handler. The handler calls metaGet() with the adset ID.
      name: "get_adset",
      description:
        "Get a single ad set by ID. Returns default fields plus anything in `fields`.",
      inputSchema: {
        adset_id: z.string(),
        fields: z.string().optional(),
      },
      handler: async (args) =>
        metaGet(`/${String(args.adset_id)}`, {
          fields: args.fields ?? DEFAULT_ADSET_FIELDS,
        }),
    },
Behavior3/5

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

With no annotations, the description carries full burden. It mentions return of default fields plus custom fields, which is helpful but vague about what default fields are, response structure, or any side effects (none expected for a read). Not misleading but incomplete.

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?

The description is concise with two short sentences, no redundancy. However, it could benefit from slightly more detail without becoming verbose.

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

Completeness3/5

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

Given no output schema, the description omits return structure, pagination hints, or error handling. It covers the core functionality but leaves gaps for a tool with low schema coverage and no annotations.

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

Parameters2/5

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

Schema coverage is 0%, and the description only clarifies that the 'fields' parameter customizes output. It does not explain the expected format (e.g., comma-separated string) or the meaning of 'adset_id.' Minimal added value.

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 clearly states 'Get a single ad set by ID,' specifying the verb (Get), resource (ad set), and unique identifier. It distinguishes from sibling list tools like list_adsets by emphasizing retrieval of a single entity.

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

Usage Guidelines3/5

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

The description implies usage for retrieving a specific ad set by ID but lacks explicit guidance on when to use this versus alternatives (e.g., list_adsets for multiple) or any exclusions. It provides no when-not-to-use context.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mike25app/scaleforge-mcp-meta-ads'

If you have feedback or need assistance with the MCP directory API, please join our Discord server