get-apps
ChatGPTRetrieves app (template) definitions from Dashpivot with field-level metadata. Purpose Gateway to form data. Discover apps, review field definitions, select field IDs before calling get-forms. Prerequisites - For browse queries: call get-workspace-structure first to discover the hierarchy, then pass _path values. - For direct lookup: use
appIds with any app identifier (FlakeID, ObjectId, or unique app ID). No _path needed — the server resolves it automatically. - If the user provides a Dashpivot URL, extract the ID from the URL path and pass it to appIds. Scoping Rules - Preferred: Use a project/team _path (e.g., "/ws_xxx/p_xxx") for targeted browse results. - Broader: Using a workspace _path ("/ws_xxx") may return many apps — only use for workspace-level apps or when a narrower _path is unavailable. - Combine _path with appName or templateTags to narrow results further. Parameters - appIds: Look up apps by any identifier — FlakeID (app_xxx), MongoDB ObjectId (24 hex chars), or unique app ID (e.g. TDW-C-JK6AQ). No _path needed. - _path: Required for browse queries, optional when appIds is provided. Use the narrowest paths available (e.g., ["/ws_xxx/p_xxx"]). - appName / templateTags: Filter apps - pageSize (default 25, max 25), pageCursor for pagination Key Behaviour - List/browse queries return app metadata with fieldCount only — look up specific apps by appIds to get full field definitions - Each app includes a _path field — use directly as _path in get-forms (e.g., ["/ws_xxx/p_xxx/app_xxx"]) - For workspace-wide queries, use _path: ["/" + workspaceId] (e.g., ["/ws_xxx"]) Field Selection for get-forms When calling get-forms, pass specific field IDs via the optional fieldIds parameter to control which fields are returned. Omitting fieldIds returns ALL fields including media (photo, signature, sketch) which contain large binary data. Select fields based on the task: - For text analysis: use singleLineInput, multiLineInput fields - For date filtering: use date fields - For status checks: use category, yesNoCheckbox fields - Avoid media fields (photo, signature, sketch, attachment) unless specifically needed — they contain large binary data Examples - Browse all apps in a project: { _path: ["/ws_xxx/p_xxx"] } - Find safety templates: { _path: ["/ws_xxx/p_xxx"], templateTags: ["safety"] } - Get field definitions for a specific app: { appIds: ["app_xxx"] } <!-- mcp-router:region-aware-pagination --> Pagination across regions: The response includes pageDetails.regions keyed by region (e.g. au1, uk1). To get the next page, pass pageCursor as a JSON object (not a string) with an entry for each region where isLastPage: false. Example: pageCursor: {"au1": "ws_abc", "uk1": "ws_xyz"}. Omit pageCursor entirely for the first page. pageSize applies per-region — the response may include up to pageSize × N items where N is the number of regions with data.




