Skip to main content
Glama
metabase-mcp

metabase-mcp

by livingroot

cards_get

Retrieves a Metabase saved question with its SQL definition and template-tag settings as structured JSON, including native SQL in a fenced block.

Instructions

Retrieve the full saved question including its SQL query definition and template-tags configuration (name, type, field_id, widget_type, default, required) as structured JSON. Returns SQL in a fenced code block for native SQL cards.

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_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
card_idYesMetabase saved question (card) ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.3

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full disclosure burden. It does useful work by describing the return shape (structured JSON plus SQL in a fenced code block for native SQL cards), but says nothing about permission requirements, behavior for nonexistent card IDs, or how virtual/non-SQL cards differ.

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

Conciseness4/5

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

Two sentences, front-loaded with the action and payload, with no filler. The parenthetical list of template-tag fields is dense but earns its place by telling the agent what configuration data to expect.

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 single-parameter read tool with no output schema, the description supplies the missing return-value context, including the notable fenced-code-block SQL format. Error and permission behavior are unaddressed, which is the main remaining gap.

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?

There is a single parameter (card_id) and schema description coverage is 100%, so the schema already documents it fully. The description adds no meaning about the identifier or its constraints, so the baseline of 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?

The description gives a specific verb+resource ('Retrieve the full saved question') and enumerates the payload it returns: SQL definition and template-tags config with named subfields. The word 'full' implicitly separates it from list/find style siblings, but no sibling is named explicitly.

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: it fetches one card's complete definition, which suggests it is the detail-view counterpart to cards_list/cards_find. There is no explicit statement of when to choose this over cards_find or cards_execute, and no prerequisites or exclusions are given.

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