Lotus.Web.MCP.Access (Lotus Web v1.4.0)

Copy Markdown View Source

Asks the Lotus.Web.Resolver about every MCP call, with the action the dashboard would ask about for the same thing.

ToolActionResource
list_data_sources:discover or :queryeach source listed
list_schemas, list_tables, describe_table:discover or :querythe data source
get_column_values, run_sql:querythe data source
list_queries:queryeach query's data source
get_query, run_query, show_chart:querythe query's data source
save_query:create_query, and :querynil, and the data source
update_query, save_chart:update_querythe query
list_dashboards:view_dashboardeach dashboard listed
get_dashboard, run_dashboard:view_dashboardthe dashboard
create_dashboard:manage_dashboardnil
add_dashboard_card:manage_dashboard, and :query for a query cardthe dashboard, and the query's data source

A resource needs :query (a saved query, on its data source; the chart app) or :view_dashboard (a dashboard).

The tool list shows what the access level allows (and, for actions that take no resource, what authorize/3 allows); the call asks authorize/3 with the resource. A list tool's result leaves out what the person may not see. A tool this table does not name is not listed, so a tool a later Lotus adds stays hidden until Lotus Web maps it.