Skip to main content
Glama
EfrainTorres

ArmaVita Meta Ads MCP

search_geo_locations

Find geographic locations for Meta Ads targeting by searching location names or types to refine audience reach in advertising campaigns.

Instructions

Search geo-location entities for targeting.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
meta_access_tokenNo
location_typesNo
page_sizeNo
page_cursorNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The handler function that implements the search_geo_locations tool logic.
    async def search_geo_locations(
        query: str,
        meta_access_token: Optional[str] = None,
        location_types: Optional[List[str]] = None,
        page_size: int = 25,
        page_cursor: str = "",
    ) -> str:
        """Search geo-location entities for targeting."""
        if not str(query or "").strip():
            return _as_json({"error": "No query provided"})
    
        params: Dict[str, Any] = {
            "type": "adgeolocation",
            "q": query,
            "page_size": int(page_size),
        }
        if page_cursor:
            params["page_cursor"] = page_cursor
        if location_types:
            params["location_types"] = json.dumps(list(location_types))
        payload = await make_api_request(
            "search",
            meta_access_token,
            params,
        )
        return _as_json(payload)
  • Registration of search_geo_locations as an MCP tool using the @mcp_server.tool() decorator.
    @mcp_server.tool()
    @meta_api_tool
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions 'search' but doesn't disclose behavioral traits like whether this is a read-only operation, requires authentication (though meta_access_token parameter hints at it), rate limits, pagination behavior (implied by page_size/page_cursor but not explained), or what 'targeting' entails. The description adds minimal context beyond the basic action.

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's appropriately sized and front-loaded, though this conciseness comes at the cost of detail. Every word earns its place, making it structurally sound.

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 tool's complexity (5 parameters, 1 required), lack of annotations, and 0% schema coverage, the description is incomplete. An output schema exists, so return values needn't be explained, but the description doesn't cover authentication needs, pagination, or targeting context. For a search tool with multiple parameters and no annotation support, this is inadequate.

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 description coverage is 0%, so the description must compensate. It doesn't explain any parameters—not what the 'query' should contain, what 'location_types' are, how pagination works, or the role of 'meta_access_token'. The description adds no meaning beyond what the bare schema provides, failing to address the coverage gap.

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

Purpose3/5

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

The description states the tool searches for 'geo-location entities for targeting', which provides a general purpose. However, it lacks specificity about what 'geo-location entities' are (e.g., cities, regions, coordinates) and doesn't distinguish this search tool from other search siblings like search_ads_archive or search_interests. The verb 'search' is clear but the resource scope is vague.

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?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention prerequisites, context (e.g., for ad targeting), or exclusions. With many sibling tools including other search functions, this omission leaves the agent without direction on appropriate use cases.

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/EfrainTorres/armavita-meta-ads-mcp'

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