Automate Coda tasks via Rube MCP (Composio): manage docs, pages, tables, rows, formulas, permissions, and publishing. Always search tools first for current schemas.
Add this skill
npx mdskills install sickn33/coda-automationComprehensive Coda automation workflows with clear tool sequences, parameters, and pitfalls for each use case
1---2name: coda-automation3description: "Automate Coda tasks via Rube MCP (Composio): manage docs, pages, tables, rows, formulas, permissions, and publishing. Always search tools first for current schemas."4requires:5 mcp: [rube]6---78# Coda Automation via Rube MCP910Automate Coda document and data operations through Composio's Coda toolkit via Rube MCP.1112## Prerequisites1314- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)15- Active Coda connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `coda`16- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1718## Setup1920**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.2122231. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds242. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `coda`253. If connection is not ACTIVE, follow the returned auth link to complete Coda authentication264. Confirm connection status shows ACTIVE before running any workflows2728## Core Workflows2930### 1. Search and Browse Documents3132**When to use**: User wants to find, list, or inspect Coda documents3334**Tool sequence**:351. `CODA_SEARCH_DOCS` or `CODA_LIST_AVAILABLE_DOCS` - Find documents [Required]362. `CODA_RESOLVE_BROWSER_LINK` - Resolve a Coda URL to doc/page/table IDs [Alternative]373. `CODA_LIST_PAGES` - List pages within a document [Optional]384. `CODA_GET_A_PAGE` - Get specific page details [Optional]3940**Key parameters**:41- `query`: Search term for finding documents42- `isOwner`: Filter to docs owned by the user43- `docId`: Document ID for page operations44- `pageIdOrName`: Page identifier or name45- `url`: Browser URL for resolve operations4647**Pitfalls**:48- Document IDs are alphanumeric strings (e.g., 'AbCdEfGhIj')49- `CODA_RESOLVE_BROWSER_LINK` is the best way to convert a Coda URL to API IDs50- Page names may not be unique within a doc; prefer page IDs51- Search results include docs shared with the user, not just owned docs5253### 2. Work with Tables and Data5455**When to use**: User wants to read, write, or query table data5657**Tool sequence**:581. `CODA_LIST_TABLES` - List tables in a document [Prerequisite]592. `CODA_LIST_COLUMNS` - Get column definitions for a table [Prerequisite]603. `CODA_LIST_TABLE_ROWS` - List all rows with optional filters [Required]614. `CODA_SEARCH_ROW` - Search for specific rows by query [Alternative]625. `CODA_GET_A_ROW` - Get a specific row by ID [Optional]636. `CODA_UPSERT_ROWS` - Insert or update rows in a table [Optional]647. `CODA_GET_A_COLUMN` - Get details of a specific column [Optional]6566**Key parameters**:67- `docId`: Document ID containing the table68- `tableIdOrName`: Table identifier or name69- `query`: Filter query for searching rows70- `rows`: Array of row objects for upsert operations71- `keyColumns`: Column IDs used for matching during upsert72- `sortBy`: Column to sort results by73- `useColumnNames`: Use column names instead of IDs in row data7475**Pitfalls**:76- Table names may contain spaces; URL-encode if needed77- `CODA_UPSERT_ROWS` does insert if no match on `keyColumns`, update if match found78- `keyColumns` must reference columns that have unique values for reliable upserts79- Column IDs are different from column names; list columns first to map names to IDs80- `useColumnNames: true` allows using human-readable names in row data81- Row data values must match the column type (text, number, date, etc.)8283### 3. Manage Formulas8485**When to use**: User wants to list or evaluate formulas in a document8687**Tool sequence**:881. `CODA_LIST_FORMULAS` - List all named formulas in a doc [Required]892. `CODA_GET_A_FORMULA` - Get a specific formula's current value [Optional]9091**Key parameters**:92- `docId`: Document ID93- `formulaIdOrName`: Formula identifier or name9495**Pitfalls**:96- Formulas are named calculations defined in the document97- Formula values are computed server-side; results reflect the current state98- Formula names are case-sensitive99100### 4. Export Document Content101102**When to use**: User wants to export a document or page to HTML or Markdown103104**Tool sequence**:1051. `CODA_BEGIN_CONTENT_EXPORT` - Start an export job [Required]1062. `CODA_CONTENT_EXPORT_STATUS` - Poll export status until complete [Required]107108**Key parameters**:109- `docId`: Document ID to export110- `outputFormat`: Export format ('html' or 'markdown')111- `pageIdOrName`: Specific page to export (optional, omit for full doc)112- `requestId`: Export request ID for status polling113114**Pitfalls**:115- Export is asynchronous; poll status until `status` is 'complete'116- Large documents may take significant time to export117- Export URL in the completed response is temporary; download promptly118- Polling too frequently may hit rate limits; use 2-5 second intervals119120### 5. Manage Permissions and Sharing121122**When to use**: User wants to view or manage document access123124**Tool sequence**:1251. `CODA_GET_SHARING_METADATA` - View current sharing settings [Required]1262. `CODA_GET_ACL_SETTINGS` - Get access control list settings [Optional]1273. `CODA_ADD_PERMISSION` - Grant access to a user or email [Optional]128129**Key parameters**:130- `docId`: Document ID131- `access`: Permission level ('readonly', 'write', 'comment')132- `principal`: Object with email or user ID of the recipient133- `suppressEmail`: Whether to skip the sharing notification email134135**Pitfalls**:136- Permission levels: 'readonly', 'write', 'comment'137- Adding permission sends an email notification by default; use `suppressEmail` to prevent138- Cannot remove permissions via API in all cases; check ACL settings139140### 6. Publish and Customize Documents141142**When to use**: User wants to publish a document or manage custom domains143144**Tool sequence**:1451. `CODA_PUBLISH_DOC` - Publish a document publicly [Required]1462. `CODA_UNPUBLISH_DOC` - Unpublish a document [Optional]1473. `CODA_ADD_CUSTOM_DOMAIN` - Add a custom domain for published doc [Optional]1484. `CODA_GET_DOC_CATEGORIES` - Get doc categories for discovery [Optional]149150**Key parameters**:151- `docId`: Document ID152- `slug`: Custom URL slug for the published doc153- `categoryIds`: Category IDs for discoverability154155**Pitfalls**:156- Publishing makes the document accessible to anyone with the link157- Custom domains require DNS configuration158- Unpublishing removes public access but retains shared access159160## Common Patterns161162### ID Resolution163164**Doc URL -> Doc ID**:165```1661. Call CODA_RESOLVE_BROWSER_LINK with the Coda URL1672. Extract docId from the response168```169170**Table name -> Table ID**:171```1721. Call CODA_LIST_TABLES with docId1732. Find table by name, extract id174```175176**Column name -> Column ID**:177```1781. Call CODA_LIST_COLUMNS with docId and tableIdOrName1792. Find column by name, extract id180```181182### Pagination183184- Coda uses cursor-based pagination with `pageToken`185- Check response for `nextPageToken`186- Pass as `pageToken` in next request until absent187- Default page sizes vary by endpoint188189### Row Upsert Pattern190191```1921. Call CODA_LIST_COLUMNS to get column IDs1932. Build row objects with column ID keys and values1943. Set keyColumns to unique identifier column(s)1954. Call CODA_UPSERT_ROWS with rows and keyColumns196```197198## Known Pitfalls199200**ID Formats**:201- Document IDs: alphanumeric strings202- Table/column/row IDs: prefixed strings (e.g., 'grid-abc', 'c-xyz')203- Use RESOLVE_BROWSER_LINK to convert URLs to IDs204205**Data Types**:206- Row values must match column types207- Date columns expect ISO 8601 format208- Select/multi-select columns expect exact option values209- People columns expect email addresses210211**Rate Limits**:212- Coda API has per-token rate limits213- Implement backoff on 429 responses214- Bulk row operations via UPSERT_ROWS are more efficient than individual updates215216## Quick Reference217218| Task | Tool Slug | Key Params |219|------|-----------|------------|220| Search docs | CODA_SEARCH_DOCS | query |221| List docs | CODA_LIST_AVAILABLE_DOCS | isOwner |222| Resolve URL | CODA_RESOLVE_BROWSER_LINK | url |223| List pages | CODA_LIST_PAGES | docId |224| Get page | CODA_GET_A_PAGE | docId, pageIdOrName |225| List tables | CODA_LIST_TABLES | docId |226| List columns | CODA_LIST_COLUMNS | docId, tableIdOrName |227| List rows | CODA_LIST_TABLE_ROWS | docId, tableIdOrName |228| Search rows | CODA_SEARCH_ROW | docId, tableIdOrName, query |229| Get row | CODA_GET_A_ROW | docId, tableIdOrName, rowIdOrName |230| Upsert rows | CODA_UPSERT_ROWS | docId, tableIdOrName, rows, keyColumns |231| Get column | CODA_GET_A_COLUMN | docId, tableIdOrName, columnIdOrName |232| Push button | CODA_PUSH_A_BUTTON | docId, tableIdOrName, rowIdOrName, columnIdOrName |233| List formulas | CODA_LIST_FORMULAS | docId |234| Get formula | CODA_GET_A_FORMULA | docId, formulaIdOrName |235| Begin export | CODA_BEGIN_CONTENT_EXPORT | docId, outputFormat |236| Export status | CODA_CONTENT_EXPORT_STATUS | docId, requestId |237| Get sharing | CODA_GET_SHARING_METADATA | docId |238| Add permission | CODA_ADD_PERMISSION | docId, access, principal |239| Publish doc | CODA_PUBLISH_DOC | docId, slug |240| Unpublish doc | CODA_UNPUBLISH_DOC | docId |241| List packs | CODA_LIST_PACKS | (none) |242
Full transparency — inspect the skill content before installing.