We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Geoffrey-42/rag-groundx-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
get_bucket_in_Groundx.py•618 B
from groundx import AsyncGroundX
async def get_bucket_in_Groundx(groundx_api_key: str, bucket_id: int) -> dict:
"""
Look up a specific bucket by its bucketId.
See: https://docs.eyelevel.ai/reference/api-reference/buckets/get
Args:
groundx_api_key (str): The API key for GroundX.
bucket_id (int): The bucketId of the bucket to look up.
"""
client = AsyncGroundX(api_key=groundx_api_key)
try:
response = await client.buckets.get(bucket_id=bucket_id)
return response
except Exception as e:
return {"error": f"Failed to get bucket: {str(e)}"}