MCP
Execute MCP tool
Executes an MCP tool with RBAC enforcement. The tool must be available in the user's filtered tool list (see /api/mcp/tools). Admin/Editor roles can access all tools, while Viewer role can only access tools with readOnlyHint: true annotation. RBAC is enforced both at tool listing time and at execution time (double-check pattern).
post/api/mcp/call-tool
Headers
X-Grafana-Org-Idstring
Grafana organization ID for multi-tenant isolation. Defaults to '1' if not provided.
Request body
Response
Tool execution result