Skip to main content
Glama

agora_get_order

Retrieve specific order details from Agora by providing the order ID to access purchase information and status.

Instructions

Get details for a specific order in Agora. Args: order_id: The order ID. Returns: The order details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
order_idYes

Implementation Reference

  • Implements the agora_get_order tool: an async function decorated with @mcp.tool() that retrieves order details from the Agora client using the provided order_id and processes the response using handle_response.
    @mcp.tool() async def agora_get_order(order_id: str) -> Dict: """ Get details for a specific order in Agora. Args: order_id: The order ID. Returns: The order details. """ response = get_agora().get_order(order_id=order_id) return handle_response(response)
  • Helper function to lazily initialize and return the Agora client instance inside tool execution to handle initialization errors gracefully.
    def get_agora(): """Get or create an Agora instance. We want to create the class instance inside the tool, so the init errors will bubble up to the tool and hence the MCP client instead of silently failing during the server creation. """ return Agora()
  • Helper function to standardize responses from Agora API calls, distinguishing between raw HTTP responses and processed data.
    def handle_response(response): """ Handle responses from Agora methods. """ if hasattr(response, 'status_code'): # This is a raw response object try: return response.status_code, response.json() except: return response.status_code, response.text # This is already processed data (like a dictionary) 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/Fewsats/agora-mcp'

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