Skip to main content
Glama
aptro

Superset MCP Integration

by aptro

superset_activity_get_recent

Retrieve recent user activity history from Apache Superset, showing viewed charts and dashboards to track engagement and monitor actions.

Instructions

Get recent activity data for the current user

Makes a request to the /api/v1/log/recent_activity/ endpoint to retrieve a history of actions performed by the current user.

Returns: A dictionary with recent user activities including viewed charts and dashboards

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The main handler function for the 'superset_activity_get_recent' tool. It is decorated with @mcp.tool() for registration, @requires_auth for authentication check, and @handle_api_errors for error handling. The function makes a GET request to the Superset API endpoint '/api/v1/log/recent_activity/' using the shared make_api_request helper to retrieve recent user activity data.
    @mcp.tool()
    @requires_auth
    @handle_api_errors
    async def superset_activity_get_recent(ctx: Context) -> Dict[str, Any]:
        """
        Get recent activity data for the current user
    
        Makes a request to the /api/v1/log/recent_activity/ endpoint to retrieve
        a history of actions performed by the current user.
    
        Returns:
            A dictionary with recent user activities including viewed charts and dashboards
        """
        return await make_api_request(ctx, "get", "/api/v1/log/recent_activity/")
Behavior2/5

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

No annotations are provided, so the description carries full burden. It mentions the endpoint ('/api/v1/log/recent_activity/') and return format ('dictionary with recent user activities'), but lacks critical behavioral details: authentication requirements, rate limits, pagination, data freshness, or what happens if no recent activity exists. For a read operation with zero annotation coverage, this leaves significant gaps in understanding how the tool behaves.

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?

The description is appropriately concise with three sentences: purpose statement, endpoint detail, and return format. It's front-loaded with the core function. Minor improvements could include combining sentences or removing the endpoint detail if not critical for agent use, but overall it's efficient with minimal waste.

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?

Given the tool's low complexity (0 parameters, no output schema, no annotations), the description is minimally adequate. It covers what the tool does and what it returns, but lacks context about authentication, data scope, or error handling. Without annotations or output schema, the description should ideally provide more behavioral context to be fully complete for agent use.

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?

The tool has 0 parameters with 100% schema description coverage, so the schema fully documents the absence of inputs. The description doesn't need to add parameter semantics, but it correctly implies no parameters are required by not mentioning any. Baseline for 0 parameters is 4, as the description doesn't contradict or add unnecessary detail.

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 clearly states the tool's purpose: 'Get recent activity data for the current user' and specifies it retrieves 'a history of actions performed by the current user.' It distinguishes itself from sibling tools by focusing on user activity logs rather than charts, dashboards, databases, or other resources. However, it doesn't explicitly differentiate from potential similar activity-tracking tools (none exist in siblings).

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention prerequisites (e.g., authentication status), time ranges, or limitations compared to other logging tools. The sibling list includes no other activity-related tools, but the description fails to specify if this is the only way to access user activity or if there are context-specific considerations.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/aptro/superset-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server