Skip to main content
Glama

check_credentials

Verify the existence and validity of Yourware credentials using this tool. Ensure your credentials are correctly configured for project uploads and deployments on the platform.

Instructions

Check your yourware credentials exists and are valid.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The MCP tool handler for 'check_credentials', registered via @mcp.tool decorator. Loads credentials, checks if they exist and are valid using the Credentials helper method, returns success status.
    @mcp.tool(description="Check your yourware credentials exists and are valid.") async def check_credentials(): try: credentials = Credentials.load() except FileNotFoundError: return { "success": False, "message": "Credentials not found", "help": "Run `create_api_key` to create one", } if not await credentials.check_credentials(): return { "success": False, "message": "Credentials are invalid", "help": "Call `create_api_key` to create one", } return { "success": True, "message": "Credentials are valid", }
  • Helper method on the Credentials class that performs the actual API validation of the credentials by checking if the API key list endpoint returns 200.
    async def check_credentials(self) -> bool: api_key_list_path = "/api/v1/api-keys/list" client = get_client(self) response = await client.get(api_key_list_path) return response.status_code == 200

Other Tools

Related Tools

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/ai-zerolab/yourware-mcp'

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