Skip to main content
Glama
suthio

Redash MCP Server

by suthio

get_public_dashboard

Retrieve a public dashboard by providing its share token. Access shared data without authentication.

Instructions

Get a public dashboard by its share token

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tokenYesPublic share token of the dashboard

Implementation Reference

  • MCP tool handler function for get_public_dashboard. Accepts validated params (token string), calls redashClient.getPublicDashboard(token), and returns the result as JSON text content or an error response.
    async function getPublicDashboard(params: z.infer<typeof getPublicDashboardSchema>) {
      try {
        const result = await redashClient.getPublicDashboard(params.token);
        return {
          content: [{ type: "text", text: JSON.stringify(result, null, 2) }]
        };
      } catch (error) {
        logger.error(`Error fetching public dashboard: ${error}`);
        return {
          isError: true,
          content: [{ type: "text", text: `Error fetching public dashboard: ${error instanceof Error ? error.message : String(error)}` }]
        };
      }
    }
  • Zod schema for get_public_dashboard input validation. Defines a single required parameter: token (string) for the public share token of the dashboard.
    const getPublicDashboardSchema = z.object({
      token: z.string()
    });
  • src/index.ts:1874-1884 (registration)
    Tool registration in the ListToolsRequestSchema handler. Defines the tool name 'get_public_dashboard', description, and input JSON schema (type object with required string property 'token').
    {
      name: "get_public_dashboard",
      description: "Get a public dashboard by its share token",
      inputSchema: {
        type: "object",
        properties: {
          token: { type: "string", description: "Public share token of the dashboard" }
        },
        required: ["token"]
      }
    },
  • src/index.ts:2414-2416 (registration)
    Route registration in the CallToolRequestSchema switch statement. Maps the tool name 'get_public_dashboard' to its handler function with Zod schema validation.
    case "get_public_dashboard":
      logger.debug(`Handling get_public_dashboard`);
      return await getPublicDashboard(getPublicDashboardSchema.parse(args));
  • Redash API client method that performs the actual HTTP GET request to /api/dashboards/public/{token} and returns the dashboard data.
    // Get public dashboard by token
    async getPublicDashboard(token: string): Promise<RedashDashboard> {
      try {
        const response = await this.client.get(`/api/dashboards/public/${token}`);
        return response.data;
      } catch (error) {
        logger.error(`Error fetching public dashboard: ${error}`);
        throw new Error(`Failed to fetch public dashboard: ${error instanceof Error ? error.message : String(error)}`);
      }
    }
Behavior2/5

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

With no annotations, the description carries full behavioral disclosure burden, but it only states the action. It does not mention read-only nature, authentication requirements, rate limits, or idempotency, leaving important traits unspecified.

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 a single, focused sentence with no extraneous words. It is appropriately sized for a simple tool.

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?

The description omits what the tool returns (e.g., full dashboard object). Since there is no output schema, the description should clarify the return value to ensure the agent understands the outcome.

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?

The schema provides 100% coverage for the single parameter (token) with a description. The tool description adds no additional meaning beyond what the schema already offers, so baseline score of 3 is appropriate.

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 tool retrieves a public dashboard using a share token, but does not differentiate it from similar tools like get_dashboard or get_dashboard_by_slug. The name implies public access, but explicit contrast is missing.

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 is provided on when to use this tool versus alternatives such as get_dashboard (for private dashboards) or get_dashboard_by_slug. The agent receives no context for selection.

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