Skip to main content
Glama

Add Esql Table Panel

add_esql_table_panel

Add an ES|QL table panel to an existing Kibana dashboard to display query output as a table, with grouping columns per row and optional numeric metric columns.

Instructions

Add an ES|QL table panel to an existing dashboard: show a query's output columns as a table. columns are the grouping/dimension columns — one table row per distinct value (e.g. ["status"]); metric_columns are the numeric value columns shown per row (e.g. ["count"]). esql is the query. It is NOT validated server-side — a wrong query or column name yields an empty panel, so write them carefully. For field-based charts use add_panel with a VizSpec. dashboard_id comes from search_dashboards.

space targets a Kibana space by id (default: the default space).

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": {
      "dashboard_id": "<dashboard_id>",
      "title": "<title>",
      "esql": "<esql>",
      "columns": "<columns>"
    },
    "name": "add_esql_table_panel"
  }
}

Input Schema

NameRequiredDescriptionDefault
esqlYes
spaceNo
titleYes
columnsYes
dashboard_idYes
metric_columnsNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations cover write/safety semantics (readOnlyHint=false, destructiveHint=false, idempotentHint=false), and the description adds valuable behavior beyond them: the query and column names are NOT validated server-side, so a mistake silently yields an empty panel. That failure-mode disclosure is genuinely useful; permission requirements and dashboard-not-found behavior are not covered.

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?

Purpose is front-loaded, followed by parameter meaning, the silent-failure caveat, the sibling alternative, and the space default. Every sentence earns its place with no repetition of schema-visible facts.

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?

An output schema exists, so return values need no explanation, and the description covers the mutation, its key parameters, and its main pitfall. Minor gaps remain around space-default behavior when omitted and what happens with an invalid dashboard_id.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema description coverage across 6 parameters, the description carries the burden and does well: it explains columns as grouping/dimension columns producing one row per distinct value, metric_columns as numeric per-row values, esql as the query, dashboard_id's source, and space's default target. Only title is left implicit, and format details for column names relative to the query are not spelled out.

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 ('Add an ES|QL table panel to an existing dashboard') and immediately clarifies the output shape ('show a query's output columns as a table'). It also names the sibling that covers the adjacent case ('For field-based charts use add_panel with a VizSpec'), so the agent can distinguish table panels from field-based ones without opening schemas.

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?

Gives explicit routing advice to add_panel for field-based charts and states where dashboard_id comes from (search_dashboards). It does not address when to prefer this over the sibling ES|QL visualization variants (metric/xy), but within the definition itself the guidance is concrete.

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