Skip to main content
Glama
onimsha

Airtable OAuth MCP Server

by onimsha

list_bases

Retrieve all accessible Airtable bases to view available workspaces and tables for data management and integration.

Instructions

List all accessible Airtable bases

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The MCP tool handler and registration for 'list_bases'. Decorated with @self.mcp.tool, it retrieves an authenticated AirtableClient and calls its list_bases() method, returning a list of base dictionaries.
    @self.mcp.tool(description="List all accessible Airtable bases")
    async def list_bases() -> list[dict[str, Any]]:
        """List all accessible Airtable bases."""
        client = await self._get_authenticated_client()
        response = await client.list_bases()
        return [
            {
                "id": base.id,
                "name": base.name,
                "permissionLevel": base.permission_level,
            }
            for base in response.bases
        ]
  • AirtableClient.list_bases() method, which makes the authenticated GET request to Airtable's /v0/meta/bases endpoint and parses the response using ListBasesResponse model.
    async def list_bases(self) -> ListBasesResponse:
        """List all accessible Airtable bases.
    
        Returns:
            Response containing list of bases
        """
        logger.info("Listing Airtable bases")
        return await self._make_request(
            "GET",
            "/v0/meta/bases",
            response_model=ListBasesResponse,
        )
  • Pydantic models AirtableBase and ListBasesResponse used for parsing the Airtable API response in list_bases.
    class AirtableBase(BaseModel):
        """Represents an Airtable base."""
    
        id: str
        name: str
        permission_level: str = Field(alias="permissionLevel")
    
    
    class ListBasesResponse(BaseModel):
        """Response from listing Airtable bases."""
    
        bases: list[AirtableBase]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Without annotations, the description carries full burden. It implies a read-only operation but lacks details on pagination, authentication, or rate limits. Adequate for a simple list.

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?

Single sentence that is concise, front-loaded, and contains no extraneous words. Excellent efficiency.

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

Completeness5/5

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

Given zero parameters and existing output schema, the description sufficiently informs the agent of the tool's purpose and return value. No missing context.

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?

No parameters exist, so baseline score of 4 applies. Description adds no parameter information, which is unnecessary.

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

Purpose5/5

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

Description clearly states the verb 'list', resource 'bases', and scope 'all accessible', distinguishing it from sibling tools like list_tables and list_records.

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?

No guidance on when to use this tool versus alternatives, nor any exclusions or prerequisites. The description is purely functional.

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