Skip to main content
Glama

batch_execute

Read-only

Run up to 20 Metabase read operations in parallel in one call to fetch dashboards, cards, schemas, query results, and search results together.

Instructions

Execute multiple read operations in a single call. Supports up to 20 operations run in parallel. Supported tools: get_dashboard, get_card, execute_card, get_database_schema, execute_query, search_content, list_dashboards, list_databases, list_cards, get_collections.

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": {
      "operations": "<operations>"
    },
    "name": "batch_execute"
  }
}

Input Schema

NameRequiredDescriptionDefault
operationsYesArray of operations to execute in parallel

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.0.2
    • changedInput schema / properties / operations / items / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {
      -          "dashboard_id": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "dashboard_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "get_dashboard",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {
      -          "card_id": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "card_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "get_card",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {
      -          "card_id": {
      -            "type": "number"
      -          },
      -          "limit": {
      -            "maximum": 10000,
      -            "minimum": 1,
      -            "type": "number"
      -          },
      -          "parameters": {
      -            "additionalProperties": {},
      -            "propertyNames": {
      -              "type": "string"
      -            },
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "card_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "execute_card",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {
      -          "database_id": {
      -            "type": "number"
      -          },
      -          "detail": {
      -            "enum": [
      -              "full",
      -              "tables_only"
      -            ],
      -            "type": "string"
      -          },
      -          "tables": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "database_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "get_database_schema",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {
      -          "database_id": {
      -            "type": "number"
      -          },
      -          "limit": {
      -            "maximum": 10000,
      -            "minimum": 1,
      -            "type": "number"
      -          },
      -          "sql": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "database_id",
      -          "sql"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "execute_query",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {
      -          "query": {
      -            "type": "string"
      -          },
      -          "type": {
      -            "enum": [
      -              "card",
      -              "dashboard",
      -              "collection",
      -              "database",
      -              "table"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "query"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "search_content",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "list_dashboards",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "list_databases",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "args": {
      -        "properties": {
      -          "collection_id": {
      -            "type": "number"
      -          },
      -          "limit": {
      -            "maximum": 100,
      -            "minimum": 1,
      -            "type": "number"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "list_cards",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "dashboard_id": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "dashboard_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "get_dashboard",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "card_id": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "card_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "get_card",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "card_id": {
      +            "type": "number"
      +          },
      +          "limit": {
      +            "maximum": 10000,
      +            "minimum": 1,
      +            "type": "number"
      +          },
      +          "parameters": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "card_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "execute_card",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "database_id": {
      +            "type": "number"
      +          },
      +          "detail": {
      +            "enum": [
      +              "full",
      +              "tables_only"
      +            ],
      +            "type": "string"
      +          },
      +          "tables": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "database_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "get_database_schema",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "database_id": {
      +            "type": "number"
      +          },
      +          "limit": {
      +            "maximum": 10000,
      +            "minimum": 1,
      +            "type": "number"
      +          },
      +          "sql": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "database_id",
      +          "sql"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "execute_query",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "query": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "card",
      +              "dashboard",
      +              "collection",
      +              "database",
      +              "table"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "query"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "search_content",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "list_dashboards",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "list_databases",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "get_collections",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "collection_id": {
      +            "type": "number"
      +          },
      +          "limit": {
      +            "maximum": 100,
      +            "minimum": 1,
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "list_cards",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed3 schema fields changedv1.7.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / operations / items / anyOf
      Removed value: -[
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "dashboard_id": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "dashboard_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "get_dashboard",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "card_id": {
      -            "type": "number"
      -          }
      -        },
      -        "required": [
      -          "card_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "get_card",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "card_id": {
      -            "type": "number"
      -          },
      -          "limit": {
      -            "maximum": 10000,
      -            "minimum": 1,
      -            "type": "number"
      -          },
      -          "parameters": {
      -            "additionalProperties": {},
      -            "type": "object"
      -          }
      -        },
      -        "required": [
      -          "card_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "execute_card",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "database_id": {
      -            "type": "number"
      -          },
      -          "detail": {
      -            "enum": [
      -              "full",
      -              "tables_only"
      -            ],
      -            "type": "string"
      -          },
      -          "tables": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          }
      -        },
      -        "required": [
      -          "database_id"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "get_database_schema",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "database_id": {
      -            "type": "number"
      -          },
      -          "limit": {
      -            "maximum": 10000,
      -            "minimum": 1,
      -            "type": "number"
      -          },
      -          "sql": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "database_id",
      -          "sql"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "execute_query",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "query": {
      -            "type": "string"
      -          },
      -          "type": {
      -            "enum": [
      -              "card",
      -              "dashboard",
      -              "collection",
      -              "database",
      -              "table"
      -            ],
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "query"
      -        ],
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "search_content",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool",
      -      "args"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "list_dashboards",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {},
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "list_databases",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "properties": {
      -      "args": {
      -        "additionalProperties": false,
      -        "properties": {
      -          "collection_id": {
      -            "type": "number"
      -          },
      -          "limit": {
      -            "maximum": 100,
      -            "minimum": 1,
      -            "type": "number"
      -          }
      -        },
      -        "type": "object"
      -      },
      -      "tool": {
      -        "const": "list_cards",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "tool"
      -    ],
      -    "type": "object"
      -  }
      -]
    • addedInput schema / properties / operations / items / oneOf
      Added value: +[
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "dashboard_id": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "dashboard_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "get_dashboard",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "card_id": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "card_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "get_card",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "card_id": {
      +            "type": "number"
      +          },
      +          "limit": {
      +            "maximum": 10000,
      +            "minimum": 1,
      +            "type": "number"
      +          },
      +          "parameters": {
      +            "additionalProperties": {},
      +            "propertyNames": {
      +              "type": "string"
      +            },
      +            "type": "object"
      +          }
      +        },
      +        "required": [
      +          "card_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "execute_card",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "database_id": {
      +            "type": "number"
      +          },
      +          "detail": {
      +            "enum": [
      +              "full",
      +              "tables_only"
      +            ],
      +            "type": "string"
      +          },
      +          "tables": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          }
      +        },
      +        "required": [
      +          "database_id"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "get_database_schema",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "database_id": {
      +            "type": "number"
      +          },
      +          "limit": {
      +            "maximum": 10000,
      +            "minimum": 1,
      +            "type": "number"
      +          },
      +          "sql": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "database_id",
      +          "sql"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "execute_query",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "query": {
      +            "type": "string"
      +          },
      +          "type": {
      +            "enum": [
      +              "card",
      +              "dashboard",
      +              "collection",
      +              "database",
      +              "table"
      +            ],
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "query"
      +        ],
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "search_content",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool",
      +      "args"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "list_dashboards",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {},
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "list_databases",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "args": {
      +        "properties": {
      +          "collection_id": {
      +            "type": "number"
      +          },
      +          "limit": {
      +            "maximum": 100,
      +            "minimum": 1,
      +            "type": "number"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "tool": {
      +        "const": "list_cards",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "tool"
      +    ],
      +    "type": "object"
      +  }
      +]
  3. Addedv1.3.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=true, and the description is consistent with that by restricting itself to read operations; it adds the useful concurrency and cap details. However, it is silent on the behaviors that matter most for a batch tool: whether execution is atomic, what happens if one of the 20 operations fails, and whether results come back in submission order.

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?

Front-loaded with the verb and scope, then the cap, then the supported tools — every sentence earns its place. The tool list partially duplicates the schema's const enum, which is mildly redundant but readable and useful for a quick go/no-go check.

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

Completeness3/5

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

There is no output schema, so the description is the only place an agent could learn the return shape and failure semantics of a batch of heterogeneous results — and it says nothing about either. For a multiplexing tool that can fan out to 20 calls, that is a meaningful 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?

Schema coverage is 100% and the oneOf/const structure fully documents each operation variant, including per-tool args and the maxItems=20 bound, so the schema carries the load. The description's tool enumeration adds a scannable summary but no argument-level meaning beyond what the schema states.

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?

States a specific verb and resource ('Execute multiple read operations in a single call') plus the concurrency model ('run in parallel') and the exact set of supported sub-tools. By enumerating get_dashboard, execute_query, search_content, list_cards, etc., it tells an agent precisely how this differs from calling those siblings directly.

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

Usage Guidelines4/5

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

The supported-tools list makes the intended composition clear, and the 'up to 20 operations in parallel' line tells an agent the batching threshold. What is missing is an explicit when-not clause: it never says to call a sibling directly for a single operation, nor whether run_workflow is the alternative for write/multi-step work.

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