Skip to main content
Glama
suthio

Redash MCP Server

by suthio

list_dashboards

List all dashboards in Redash with pagination support using page and page size parameters.

Instructions

List all available dashboards in Redash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageNoPage number (starts at 1)
pageSizeNoNumber of results per page

Implementation Reference

  • Input schema for the list_dashboards tool. Accepts optional 'page' (default 1) and 'pageSize' (default 25) parameters.
    // Tool: list_dashboards
    const listDashboardsSchema = z.object({
      page: z.coerce.number().optional().default(1),
      pageSize: z.coerce.number().optional().default(25)
    });
  • Handler function for the list_dashboards tool. Calls redashClient.getDashboards(page, pageSize) and returns the result as JSON.
    async function listDashboards(params: z.infer<typeof listDashboardsSchema>) {
      try {
        const { page, pageSize } = params;
        const dashboards = await redashClient.getDashboards(page, pageSize);
    
        return {
          content: [
            {
              type: "text",
              text: JSON.stringify(dashboards, null, 2)
            }
          ]
        };
      } catch (error) {
        console.error('Error listing dashboards:', error);
        return {
          isError: true,
          content: [
            {
              type: "text",
              text: `Error listing dashboards: ${error instanceof Error ? error.message : String(error)}`
            }
          ]
        };
      }
    }
  • src/index.ts:1712-1722 (registration)
    Registration of list_dashboards in the ListToolsRequestSchema handler, defining its name, description, and inputSchema.
    {
      name: "list_dashboards",
      description: "List all available dashboards in Redash",
      inputSchema: {
        type: "object",
        properties: {
          page: { type: "number", description: "Page number (starts at 1)" },
          pageSize: { type: "number", description: "Number of results per page" }
        }
      }
    },
  • src/index.ts:2364-2366 (registration)
    Routing of 'list_dashboards' tool call to the listDashboards handler with schema validation in the CallToolRequestSchema switch statement.
    case "list_dashboards":
      logger.debug(`Handling list_dashboards`);
      return await listDashboards(listDashboardsSchema.parse(args));
  • The getDashboards method on the RedashClient class that makes the actual HTTP GET request to /api/dashboards with pagination params.
    // Get all dashboards
    async getDashboards(page = 1, pageSize = 25): Promise<{ count: number; page: number; pageSize: number; results: RedashDashboard[] }> {
      try {
        const response = await this.client.get('/api/dashboards', {
          params: { page, page_size: pageSize }
        });
    
        return {
          count: response.data.count,
          page: response.data.page,
          pageSize: response.data.page_size,
          results: response.data.results
        };
      } catch (error) {
        console.error('Error fetching dashboards:', error);
        throw new Error('Failed to fetch dashboards from Redash');
      }
    }
Behavior2/5

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

No annotations provided; description lacks details on pagination, ordering, authentication, or response format. Schema shows page/pageSize but description does not mention them.

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, no redundant information, efficiently states purpose.

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

Completeness2/5

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

With many sibling listing tools and no output schema, description is insufficient for agent to select correctly; lacks details on pagination and scope.

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

Parameters3/5

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

Schema covers 100% of parameters with descriptions, so baseline 3 applies. Description adds no extra meaning beyond schema.

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?

Clearly states verb 'list', resource 'dashboards', and scope 'all available', distinguishing it from siblings like get_dashboard or get_my_dashboards.

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 vs alternatives like get_my_dashboards or get_favorite_dashboards. Does not specify context or exclusions.

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/suthio/redash-mcp'

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