Skip to main content
Glama
metabase-mcp

metabase-mcp

by livingroot

cards_execute

Run a saved Metabase question by ID and return results as a Markdown table; pass max_rows to limit rows (default 50).

Instructions

Run a saved Metabase question (card) by ID and return results as a Markdown table. Defaults to 50 rows; pass max_rows to adjust. Only native SQL cards are fully supported.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "card_id": "<card_id>"
    },
    "name": "cards_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idYesMetabase saved question (card) ID
max_rowsNoMaximum rows to return (default 50)
parametersNoFilter parameters for {{template_tag}} placeholders in the saved question

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations supplied, the description does meaningful work: it discloses the result format (Markdown table), the default row cap of 50 with max_rows as the override, and an important limitation ('Only native SQL cards are fully supported'). It stops short of saying whether the call is strictly read-only or what happens when a non-native-SQL card is passed.

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?

Three short sentences with zero waste: purpose and return type first, then the row-limit knobs, then the support caveat. Every sentence carries information an agent needs before calling.

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?

For a 3-parameter read tool with no output schema, the description covers what it does, what comes back, the default cap, and a key coverage caveat. The one meaningful gap is pointer to how callers should discover or filter cards, but the schema handles parameter detail well.

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 coverage is 100%, so all three parameters — including the nested template-tag parameter structure — are already documented in the schema. The description restates the max_rows default and adds nothing about how to form the parameters list, so baseline 3 applies.

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?

States a specific verb and resource ('Run a saved Metabase question (card) by ID') plus the return format ('Markdown table'). It implicitly separates itself from queries_execute_sql by targeting saved cards rather than raw SQL, but never names an alternative explicitly, so sibling differentiation is only partial.

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?

Usage is only implied: the agent can infer 'use this when a question is already saved as a card,' but there is no explicit when-to-use/when-not guidance versus queries_execute_sql, cards_get, or cards_find. No prerequisites (e.g., needing the card ID from cards_list/cards_find) are stated.

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