Skip to main content
Glama
saidsurucu

YOKATLAS API MCP Server

by saidsurucu

get_bachelor_degree_atlas_details

Retrieve detailed information about specific bachelor's degree programs in Turkey, including statistics, quotas, placement data, and academic details using YÖP codes and year parameters.

Instructions

Get comprehensive details for a specific bachelor's degree program from YOKATLAS Atlas.

Parameters:

  • yop_kodu (str): Program YÖP code (e.g., '102210277')

  • year (int): Data year (e.g., 2024, 2023)

Returns detailed information including:

  • General program information and statistics

  • Quota, placement, and score data

  • Student demographics and distribution

  • Academic staff and facility information

  • Historical placement trends

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yop_koduYesProgram YÖP code (e.g., '102210277') - unique identifier for the bachelor's degree program
yearYesData year for statistics (e.g., 2024, 2023)

Implementation Reference

  • Handler function implementing the tool logic for fetching bachelor's degree program details from YOKATLAS Atlas. Includes @mcp.tool() decorator for registration and Pydantic Field annotations for input schema validation.
    @mcp.tool()
    async def get_bachelor_degree_atlas_details(
        yop_kodu: Annotated[str, Field(description="Program YÖP code (e.g., '102210277') - unique identifier for the bachelor's degree program")],
        year: Annotated[int, Field(description="Data year for statistics (e.g., 2024, 2023)", ge=2020, le=2030)]
    ) -> dict:
        """
        Get comprehensive details for a specific bachelor's degree program from YOKATLAS Atlas.
    
        Parameters:
        - yop_kodu (str): Program YÖP code (e.g., '102210277')
        - year (int): Data year (e.g., 2024, 2023)
    
        Returns detailed information including:
        - General program information and statistics
        - Quota, placement, and score data
        - Student demographics and distribution
        - Academic staff and facility information
        - Historical placement trends
        """
        try:
            lisans_atlasi = YOKATLASLisansAtlasi({'program_id': yop_kodu, 'year': year})
            result = await lisans_atlasi.fetch_all_details()
            return result
        except Exception as e:
            print(f"Error in get_bachelor_degree_atlas_details: {e}")
            return {"error": str(e), "program_id": yop_kodu, "year": year}
  • Registration of the tool using FastMCP's @mcp.tool() decorator.
    @mcp.tool()
  • Input schema defined using Annotated with Pydantic Field for parameter validation and descriptions.
        yop_kodu: Annotated[str, Field(description="Program YÖP code (e.g., '102210277') - unique identifier for the bachelor's degree program")],
        year: Annotated[int, Field(description="Data year for statistics (e.g., 2024, 2023)", ge=2020, le=2030)]
    ) -> dict:

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/saidsurucu/yokatlas-mcp'

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