Skip to main content
Glama
uzaysozen

imdb-mcp-server

get_country_codes_for_upcoming_releases

Retrieve country codes to filter upcoming movie and TV releases on IMDb by geographic availability.

Instructions

Get the available country codes for upcoming releases from IMDb. Returns: JSON object containing the available country codes for upcoming releases.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The main handler function decorated with @mcp.tool(), which fetches available country codes for upcoming releases from the IMDb API endpoint '/upcoming-releases-country-codes' using the make_imdb_request helper and returns the JSON-formatted data or an error message.
    @mcp.tool()
    async def get_country_codes_for_upcoming_releases(ctx: Context) -> str:
        """Get the available country codes for upcoming releases from IMDb.
        Returns:
            JSON object containing the available country codes for upcoming releases.
        """
        available_country_codes_url = f"{BASE_URL}/upcoming-releases-country-codes"
        available_country_codes_data = await make_imdb_request(available_country_codes_url, {}, ctx)
        if not available_country_codes_data:
            return "Unable to fetch available country codes for upcoming releases data."
        return json.dumps(available_country_codes_data, indent=4)
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. It states the return type is a JSON object, which is basic but helpful. However, it lacks details on data freshness, rate limits, authentication needs, or error handling, which are important for a tool fetching external data from IMDb.

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 brief and front-loaded with the core purpose in the first sentence. The second sentence adds return format, which is useful. There's no wasted text, though it could be slightly more structured (e.g., bullet points).

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 0 parameters, 100% schema coverage, and an output schema (implied by 'Has output schema: true'), the description is moderately complete. It covers the purpose and return format but lacks behavioral context (e.g., how often data updates, any limitations), which is a gap for a tool with no annotations.

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%, so no parameter documentation is needed. The description doesn't add param info, but that's appropriate here, earning a baseline score of 4 for this dimension.

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 verb 'Get' and the resource 'available country codes for upcoming releases from IMDb', making the purpose specific and understandable. It distinguishes from siblings like 'get_countries' by specifying the scope is for upcoming releases only, though it doesn't explicitly contrast with 'get_upcoming_releases' or 'get_upcoming_indian_movies'.

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. It doesn't mention siblings like 'get_upcoming_releases' (which might return full release data) or 'get_upcoming_indian_movies' (which is region-specific), leaving the agent to infer usage context from tool names alone.

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/uzaysozen/imdb-mcp-server'

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