Save a connector overlay
set_connector_overlayStore a per-datasource overlay with the calling principal as author, then republish its card. Requires expected_revision; an overlay_revision_conflict returns current_revision: re-read and reconcile before retrying. Returns revision, artifact, overlay validation report, pending Requests and invalidated approvals. opting in records consent, with this revision, for Ekaya to read the overlay document as written and possibly reuse it as the connector's default for all customers. Nothing is sent anywhere now. Leave account-specific constants (IDs, names) out of a document you opt in. A later revision without the flag is not opted in. Not available for MCP datasources; select original tools with select_connector_tools. Overlay editing for a catalogue card: 1. Start with describe_connector_overlays and get_connector_operations(datasource_id). 2. Use validate_connector_overlay. 3. Save with set_connector_overlay. 4. set_connection_fields if needed; values are non-secret and do not republish or change approvals. To select original tools, use search_connector_tools, inspect get_connector_tool, then select_connector_tools with the current expected_revision. Try the published operation with dev_run_operation where execution is supported. Publication alone creates no pending Requests; choose the needed operations through the offered tools for creating Requests or the Requests page's Pending tab. list_query_suggestions and approve_query_suggestion review the chosen Requests. Finally, execute_approved_request runs approved, pinned overlay reads through the Composio proxy and selected original tools; see describe_connector_overlays' execution and original_tools for their limits. An Administrator must enable this connection's permission for AI agent actions before approval. Custom modules use publish_module_version. If saved_revision is returned with an error, call republish_connector instead of repeating the edit. The compact reply carries revision, selection, artifact, counts, notices and pending Request references (query_id, name, operation, effect). suggested_queries lists every Request waiting for review against the published version, including kept Requests with the same IDs and unchanged republishes. created_suggestion_ids identifies only Requests this call created. suggested_query_count and created_suggestion_count are totals before byte-budget fitting; both lists carry omission receipts when truncated. kept_pending_suggestion_count counts unchanged pending Requests moved to the new version. Request references, created_suggestion_ids and next_tool naming list_query_suggestions are included only when that tool is offered to this caller on this call, and their counts go with them. invalidated_requests, invalidated_request_reasons and carried_forward_requests name approved Requests, so they and their counts appear only when list_approved_requests is offered; when the byte budget cuts one of those lists, omitted carries its true count and points at that reader. Read get_connector_operations for operations and full declarations. report covers submitted declarations for set/select and stored declarations for republish (empty after removal); connector carries immutable revision and review facts without the overlay document. A concurrent editor may advance the stored revision before publication; connector.overlay_revision reports what was actually pinned.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"datasource_id": "<datasource_id>",
"overlay": "<overlay>",
"expected_revision": "<expected_revision>"
},
"name": "set_connector_overlay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| overlay | Yes | The declaration and original-tool selection document described by describe_connector_overlays; never code. | |
| review_note | No | Optional note for this revision, at most 4096 characters; no NUL. | |
| datasource_id | Yes | The datasource to diagnose or change (UUID); get_connector_operations also accepts a bound Custom module; tool selection requires a connected Composio or MCP card; operation and request declarations are not available for MCP datasources. | |
| expected_revision | Yes | Highest stored revision from get_connector_operations, including removals; integer 0 through 2147483646. | |
| submit_for_ekaya_review | No | Default false. Records consent for this revision only; opting in records consent, with this revision, for Ekaya to read the overlay document as written and possibly reuse it as the connector's default for all customers. Nothing is sent anywhere now. Leave account-specific constants (IDs, names) out of a document you opt in. A later revision without the flag is not opted in. |