Skip to main content
Glama
ysntony

AppsFlyer MCP Server

by ysntony

test_appsflyer_connection

Verify the AppsFlyer API connection and check server status to ensure data integration is functional.

Instructions

Test the connection to AppsFlyer API and return server status.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function that implements the 'test_appsflyer_connection' tool logic. It checks if AppsFlyer API credentials are set and returns a status message. Registered via the @mcp.tool() decorator.
    @mcp.tool()
    async def test_appsflyer_connection():
        """Test the connection to AppsFlyer API and return server status."""
        if not AF_API_BASE_URL or not AF_TOKEN:
            return "Error: AppsFlyer API credentials not configured."
        
        return f"AppsFlyer MCP server is running. API Base URL: {AF_API_BASE_URL}, Token configured: {'Yes' if AF_TOKEN else 'No'}"
  • Duplicate handler function for the 'test_appsflyer_connection' tool in the standalone server runner script.
    @mcp.tool()
    async def test_appsflyer_connection():
        """Test the connection to AppsFlyer API and return server status."""
        if not AF_API_BASE_URL or not AF_TOKEN:
            return "Error: AppsFlyer API credentials not configured."
        
        return f"AppsFlyer MCP server is running. API Base URL: {AF_API_BASE_URL}, Token configured: {'Yes' if AF_TOKEN else 'No'}"
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 tool tests connection and returns server status, but lacks details on error handling, timeouts, authentication requirements, or what 'server status' entails (e.g., HTTP codes, latency). For a connectivity tool with zero annotation coverage, this leaves significant gaps in understanding its operational 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, clear sentence: 'Test the connection to AppsFlyer API and return server status.' It is front-loaded with the core purpose, has zero redundant information, and efficiently communicates the tool's intent without unnecessary elaboration.

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 the tool's simplicity (0 parameters, no output schema, no annotations), the description is adequate but minimal. It covers the basic purpose but lacks context on usage scenarios, error handling, or output details (e.g., format of 'server status'). For a connectivity test tool, more behavioral transparency would enhance completeness, though the absence of parameters reduces complexity.

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 tool has 0 parameters, and schema description coverage is 100% (since there are no parameters to describe). The description doesn't need to add parameter semantics, so it meets the baseline for tools with no parameters. No additional value is required beyond stating the tool's function.

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: 'Test the connection to AppsFlyer API and return server status.' It specifies the verb ('Test'), resource ('AppsFlyer API'), and outcome ('return server status'), making the function unambiguous. However, it doesn't explicitly differentiate from the sibling tool 'get_aggregate_data', which appears to be a data retrieval function rather than a connectivity test.

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. It doesn't mention prerequisites (e.g., authentication setup), timing (e.g., before data operations), or contrast with the sibling tool 'get_aggregate_data'. The implicit context is testing API connectivity, but explicit usage scenarios or exclusions are absent.

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/ysntony/appsflyer-mcp'

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