Skip to main content
Glama
bintocher

Qlik Sense MCP Server

get_app_object

Retrieve specific object layouts from Qlik Sense applications by providing application and object identifiers to access detailed analytics components.

Instructions

Get specific object layout by calling GetObject and GetLayout sequentially via WebSocket.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
app_idYesApplication GUID
object_idYesObject ID to retrieve

Implementation Reference

  • Registration of the 'get_app_object' tool including name, description, and JSON schema for input parameters (app_id and object_id).
    Tool(
        name="get_app_object",
        description="Get specific object layout by calling GetObject and GetLayout sequentially via WebSocket.",
        inputSchema={
            "type": "object",
            "properties": {
                "app_id": {"type": "string", "description": "Application GUID"},
                "object_id": {"type": "string", "description": "Object ID to retrieve"}
            },
            "required": ["app_id", "object_id"]
        }
    )
    ]
  • Main handler logic for executing the 'get_app_object' tool. Connects to Engine API, opens the app, retrieves object handle with GetObject, fetches layout with GetLayout, and returns the result as JSON.
    elif name == "get_app_object":
        app_id = arguments["app_id"]
        object_id = arguments["object_id"]
    
        def _get_app_object():
            try:
                self.engine_api.connect()
                app_result = self.engine_api.open_doc(app_id, no_data=False)
                app_handle = app_result.get("qReturn", {}).get("qHandle", -1)
    
                if app_handle == -1:
                    return {"error": "Failed to open app"}
    
                # Get object
                obj_result = self.engine_api.send_request("GetObject", {"qId": object_id}, handle=app_handle)
                if "qReturn" not in obj_result:
                    return {"error": f"Object {object_id} not found"}
    
                obj_handle = obj_result["qReturn"]["qHandle"]
    
                # Get layout
                layout_result = self.engine_api.send_request("GetLayout", [], handle=obj_handle)
                if "qLayout" not in layout_result:
                    return {"error": "Failed to get object layout"}
    
                # Return only the result part as requested
                return layout_result
    
            except Exception as e:
                return {"error": str(e), "app_id": app_id, "object_id": object_id}
            finally:
                self.engine_api.disconnect()
    
    
        result = await asyncio.to_thread(_get_app_object)
        return [
            TextContent(
                type="text",
                text=json.dumps(result, indent=2, ensure_ascii=False)
            )
        ]
  • Helper method in EngineAPI class that performs the GetObject request, used indirectly in the tool handler.
    """Get object by ID."""
    return self.send_request("GetObject", {"qId": object_id}, handle=app_handle)
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 tool calls 'GetObject and GetLayout sequentially via WebSocket', which implies network operations and potential latency, but doesn't disclose critical behavioral traits like error handling, rate limits, authentication needs, or what 'layout' entails. The description is insufficient for a tool with no annotation coverage.

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 a single sentence that is front-loaded with the main action ('Get specific object layout') and includes implementation detail. It's efficient with zero waste, though the implementation detail might be unnecessary for clarity. Structure is appropriate for the tool's complexity.

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

Completeness2/5

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

Given no annotations, no output schema, and a tool that performs retrieval operations (implied by 'Get'), the description is incomplete. It doesn't explain what 'object layout' returns, error conditions, or behavioral constraints. For a tool with 2 parameters and no structured support, more context is needed to be adequately helpful.

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 description coverage is 100%, with both parameters ('app_id' and 'object_id') documented in the schema as 'Application GUID' and 'Object ID to retrieve'. The description adds no meaning beyond this, as it doesn't explain parameter relationships or usage context. Baseline 3 is appropriate since the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states the tool 'Get specific object layout' which indicates a retrieval action on an object layout resource. However, it's vague about what 'object layout' means (e.g., UI layout, data structure) and doesn't clearly distinguish it from sibling tools like 'get_app_sheet_objects' or 'get_app_field'. The phrase 'by calling GetObject and GetLayout sequentially via WebSocket' adds implementation detail but doesn't clarify the purpose further.

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?

No guidance is provided on when to use this tool versus alternatives. The description doesn't mention when this tool is appropriate (e.g., for retrieving layout details vs. other object properties) or refer to sibling tools like 'get_app_sheet_objects' for different use cases. It lacks context about prerequisites or exclusions.

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/bintocher/qlik-sense-mcp'

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