Skip to main content
Glama
sitebay
by sitebay

sitebay_list_teams

Retrieve and display all teams associated with your authenticated account, including team details and member information for WordPress site management.

Instructions

List all teams for the authenticated user.

Returns: Formatted list of teams with their details and member information

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The @mcp.tool decorated handler function that implements the sitebay_list_teams tool. It initializes the SiteBay client, fetches the list of teams, formats them nicely, and handles errors.
    @mcp.tool
    async def sitebay_list_teams(ctx: Context) -> str:
        """
        List all teams for the authenticated user.
        
        Returns:
            Formatted list of teams with their details and member information
        """
        try:
            await ctx.info("Fetching teams from SiteBay")
            
            client = await initialize_client()
            teams = await client.list_teams()
            
            if not teams:
                return "No teams found for your account."
            
            result = f"**Your Teams** ({len(teams)} teams):\n\n"
            
            for team in teams:
                result += f"• **{team.get('name', 'Unknown')}**\n"
                result += f"  - ID: {team.get('id', 'Unknown')}\n"
                result += f"  - Plan: {team.get('plan_type_name', 'Unknown')}\n"
                result += f"  - Active: {team.get('is_active', 'Unknown')}\n"
                result += f"  - Default: {team.get('is_default', 'Unknown')}\n"
                result += f"  - Created: {team.get('created_at', 'Unknown')}\n\n"
            
            await ctx.info("Successfully retrieved teams list")
            return result
            
        except SiteBayError as e:
            await ctx.error(f"SiteBay API error: {str(e)}")
            return f"❌ SiteBay Error: {str(e)}"
        except Exception as e:
            await ctx.error(f"Unexpected error listing teams: {str(e)}")
            return f"❌ Unexpected error: {str(e)}"
  • The @mcp.tool decorator registers the sitebay_list_teams function as an MCP tool.
    @mcp.tool
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions that it returns a 'formatted list of teams with their details and member information', which adds context about the output format. However, it lacks details on pagination, rate limits, or error handling, leaving gaps for a tool with no annotation support.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise and front-loaded, with two sentences that directly state the purpose and return value without any wasted words. Every sentence earns its place by providing essential information efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's low complexity (0 parameters, no annotations, but has an output schema), the description is reasonably complete. It explains what the tool does and what it returns, and the output schema should cover return details, reducing the need for more in the description. However, it could improve by adding usage context or behavioral traits.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has 0 parameters with 100% coverage, so the schema fully documents the absence of parameters. The description does not add parameter information, which is unnecessary here. Baseline is 4 for zero parameters, as no additional semantic value is needed beyond the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('List all teams') and the resource ('teams for the authenticated user'), making the purpose unambiguous. However, it does not explicitly differentiate this tool from sibling tools like 'sitebay_list_sites' or 'sitebay_list_ready_made_sites', which might list other resources, so it misses full sibling distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides no guidance on when to use this tool versus alternatives. It does not mention any prerequisites, such as authentication requirements implied by 'authenticated user', nor does it compare to other list tools in the sibling set, leaving usage context unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other 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/sitebay/sitebay-mcp'

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