Skip to main content
Glama
suthio

Redash MCP Server

by suthio

get_my_dashboards

Retrieve dashboards created by the current Redash user. Supports pagination with page number and page size.

Instructions

Get dashboards created by the current user

Input Schema

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

Implementation Reference

  • MCP tool handler for 'get_my_dashboards'. Validates args via getMyDashboardsSchema, calls redashClient.getMyDashboards(), and returns the result as JSON text content.
    async function getMyDashboards(params: z.infer<typeof getMyDashboardsSchema>) {
      try {
        const result = await redashClient.getMyDashboards(params.page, params.pageSize);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
        };
      } catch (error) {
        logger.error(`Error fetching my dashboards: ${error}`);
        return {
          isError: true,
          content: [{ type: "text", text: `Error fetching my dashboards: ${error instanceof Error ? error.message : String(error)}` }]
        };
      }
    }
  • Zod schema for 'get_my_dashboards' input validation. Accepts optional 'page' (default 1) and 'pageSize' (default 25) parameters.
    const getMyDashboardsSchema = z.object({
      page: z.coerce.number().optional().default(1),
      pageSize: z.coerce.number().optional().default(25)
    });
  • src/index.ts:1907-1917 (registration)
    Tool registration in ListToolsRequestSchema handler. Registers 'get_my_dashboards' with description 'Get dashboards created by the current user' and input schema with page/pageSize properties.
    {
      name: "get_my_dashboards",
      description: "Get dashboards created by the current user",
      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:2426-2428 (registration)
    CallToolRequestSchema handler routing for 'get_my_dashboards'. Parses args with getMyDashboardsSchema and delegates to the getMyDashboards handler function.
    case "get_my_dashboards":
      logger.debug(`Handling get_my_dashboards`);
      return await getMyDashboards(getMyDashboardsSchema.parse(args));
  • Redash API client method that makes the actual HTTP GET request to '/api/dashboards/my' with pagination params. Returns count, page, pageSize, and results array of RedashDashboard objects.
    async getMyDashboards(page = 1, pageSize = 25): Promise<{ count: number; page: number; pageSize: number; results: RedashDashboard[] }> {
      try {
        const response = await this.client.get('/api/dashboards/my', {
          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) {
        logger.error(`Error fetching my dashboards: ${error}`);
        throw new Error(`Failed to fetch my dashboards: ${error instanceof Error ? error.message : String(error)}`);
      }
    }
Behavior2/5

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

No annotations are provided, so description carries full burden. It states the scope (current user's dashboards) but omits behavioral details like pagination behavior, default ordering, or whether results are full objects or summaries.

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

Conciseness3/5

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

Single sentence is concise but lacks structure for essential details. It is not excessively verbose, but could be improved by adding more context without becoming wordy.

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?

Given no output schema, description should explain what the response contains and any default pagination settings. It omits these, leaving gaps for an agent to understand the tool fully.

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 has 100% coverage with descriptions for page and pageSize. Description adds no extra meaning beyond what schema provides, so baseline 3 is appropriate.

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 uses specific verb 'Get' and resource 'dashboards' with scope 'created by the current user', clearly distinguishing it from sibling tools like 'list_dashboards' which likely lists all dashboards.

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

Usage Guidelines3/5

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

No explicit guidance on when to use this vs alternatives. It implies use for user's own dashboards but doesn't mention that for all dashboards one should use 'list_dashboards' or for a specific dashboard use 'get_dashboard'.

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