Skip to main content
Glama

check_balance

Check available, reserved, and usable balances for VAP accounts in media execution workflows. Use this tool to verify account funds before processing tasks.

Instructions

Check VAP account balance. Returns available, reserved, and usable balances.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The check_balance tool is handled within the handle_tools_call function, which forwards requests that don't have specialized handlers (like video generation) to the general make_request function, which in turn calls the MCP API's /tools/call endpoint.
    def handle_tools_call(params: Dict) -> Dict:
        """
        Handle tools/call request.
    
        Directive #240: Special handlers for video tools.
        """
        tool_name = params.get("name", "")
        arguments = params.get("arguments", {})
    
        # ═══════════════════════════════════════════════════════════════════
        # VIDEO TOOL HANDLERS (Directive #240)
        # ═══════════════════════════════════════════════════════════════════
    
        if tool_name == "generate_video":
            return _handle_generate_video(arguments)
    
        if tool_name == "estimate_video_cost":
            return _handle_estimate_video_cost(arguments)
    
        if tool_name == "get_task":
            return _handle_get_task(arguments)
    
        # Default: forward to MCP API
        response = make_request("/tools/call", {
            "name": tool_name,
            "arguments": arguments
        })
        return response

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/elestirelbilinc-sketch/Media-infrastructure'

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