Skip to main content
Glama
JanNafta

PropellerAds MCP Server

by JanNafta

get_ad_formats

Retrieve available advertising format options to select appropriate layouts for campaign setup and optimization.

Instructions

Get list of available ad formats.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual implementation of the get_ad_formats logic, which makes a GET request to the PropellerAds API.
    def get_ad_formats(self) -> list[dict[str, Any]]:
        """Get available ad formats."""
        result = self._request("GET", "/adv/ad-formats")
        return result.get("data", result) if isinstance(result, dict) else result
  • Registration of the get_ad_formats tool in the MCP server.
    Tool(
        name="get_ad_formats",
        description="Get list of available ad formats.",
        inputSchema={"type": "object", "properties": {}},
    ),
  • The handler logic in the MCP server that calls the client method when the tool is invoked.
    elif name == "get_ad_formats":
        formats = client.get_ad_formats()
        return f"# Available Ad Formats\n\n```json\n{json.dumps(formats, indent=2)}\n```"
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the action ('Get list') but doesn't clarify if this is a read-only operation, requires authentication, has rate limits, or what the return format might be (e.g., list of strings, objects). This leaves significant gaps for an AI agent to understand the tool's behavior.

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?

The description is a single, efficient sentence with zero waste—it directly states the tool's purpose without unnecessary words. It's appropriately sized and front-loaded, making it easy to parse quickly.

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

Completeness2/5

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

Given the lack of annotations and output schema, the description is incomplete. It doesn't explain what 'available ad formats' entails (e.g., types, structures, or usage context), leaving the AI agent to guess about return values and behavioral traits. For a tool with no structured data support, more detail is needed to be fully helpful.

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?

The input schema has 0 parameters with 100% coverage, meaning no parameters are documented in the schema. The description doesn't add parameter details, but since there are no parameters, this is acceptable. A baseline of 4 is appropriate as the description doesn't need to compensate for missing parameter information.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose with a specific verb ('Get') and resource ('list of available ad formats'), making it immediately understandable. However, it doesn't differentiate from sibling tools like 'get_available_countries' or 'get_balance' beyond the resource type, which prevents a perfect score.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. With sibling tools like 'get_campaign_details' and 'get_performance_report', there's no indication of whether this tool is for general reference, campaign setup, or another specific context. No exclusions or prerequisites are mentioned.

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/JanNafta/propellerads-mcp'

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