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
update_bucket_in_Groundx.py•707 B
from groundx import AsyncGroundX
async def update_bucket_in_Groundx(groundx_api_key: str, bucket_id: int, new_name: str) -> dict:
"""
Rename a bucket.
See: https://docs.eyelevel.ai/reference/api-reference/buckets/update
Args:
groundx_api_key (str): The API key for GroundX.
bucket_id (int): The bucketId of the bucket being updated.
new_name (str): The new name of the bucket being renamed.
"""
client = AsyncGroundX(api_key=groundx_api_key)
try:
response = await client.buckets.update(bucket_id=bucket_id, new_name=new_name)
return response
except Exception as e:
return {"error": f"Failed to update bucket: {str(e)}"}