Skip to main content
Glama

Select original connector tools

select_connector_tools
Destructive

Select original tools by adding {slug, version} pins and removing slugs from the current overlay, preserving its declarations. On a Composio card an existing slug is a no-op even if the submitted version differs, and to change a version you remove it then add the new version in a later call; an absent removal is a no-op. selection reports both. On an MCP server an add of an already-selected slug at a different version replaces the stored pin in one write and republishes once, reported in selection.repinned: that is how you follow version changed or a tool the server changed, because an MCP datasource cannot remove its final selected tool (mcp_selection_required) and its overlay document is not settable. A slug cannot appear in both add and remove. add and remove must contain at least one entry between them. Requires expected_revision. Every accepted edit republishes. Only explicitly added or repinned tools create pending Requests; other published operations create none. report.excluded retains per-tool reasons: unknown tool, version changed, not selectable, already published, reserved name, policy refusal or budget. On a Composio card, removing the last declaration clears the overlay; omit review consent and note for that removal. 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. 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>",
      "expected_revision": "<expected_revision>",
      "add": "<add>",
      "remove": "<remove>"
    },
    "name": "select_connector_tools"
  }
}

Input Schema

NameRequiredDescriptionDefault
addYesPins to add; [] for none. On a Composio card an existing slug keeps its stored version; on an MCP server a different version replaces the stored pin and is reported in selection.repinned.
removeYesSlugs to remove, independent of version; [] for none.
review_noteNoOptional note for this revision, at most 4096 characters; no NUL.
datasource_idYesThe 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.
application_idNoOptional Application UUID whose build this call serves (Administrator only). Setup steps this call opens record it, so they show on that Application's build screen; the resources themselves stay shared by the Project. A shared step it reuses keeps the Application it was opened for, so a step it returns may be watchable with get_setup_journal only without application_id. Use the build's application_id, the one you call describe_application with.
expected_revisionYesHighest stored revision from get_connector_operations, including removals; integer 0 through 2147483646.
submit_for_ekaya_reviewNoDefault 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.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true, readOnlyHint=false, openWorldHint=true and idempotentHint=false. The description adds substantial behavior beyond that: Composio no-op semantics for existing slugs, MCP repin behavior, the mcp_selection_required constraint, republish on every accepted edit, pending Request creation rules, excluded reasons, consent semantics, response shape and the saved_revision→republish_connector recovery path, without contradicting the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph with long compound sentences and some repetition of the schema's submit_for_ekaya_review text. It is front-loaded with purpose but becomes hard to scan, with workflow and response details buried in the wall of text.

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

Completeness4/5

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

For a complex, destructive tool with 7 parameters and no output schema, the description covers the workflow, return shape, error handling (saved_revision → republish_connector) and edge cases such as byte-budget truncation and invalidated Requests. It is largely complete, though the organization could be improved.

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?

Schema description coverage is 100%, so each parameter already has documentation. The description adds cross-field constraints not present in the schema: a slug cannot appear in both add and remove, at least one entry is required between them, and existing-slug behavior differs between Composio cards and MCP servers. This adds meaningful semantics beyond the schema.

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

Purpose5/5

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

The first sentence states a specific verb and resource: selecting original tools by adding {slug, version} pins and removing slugs from the current overlay while preserving declarations. It distinguishes this from set_connector_overlay (catalogue-card editing) and names the relevant lifecycle siblings (search_connector_tools, get_connector_tool, set_connector_overlay). An agent can tell this is the tool-selection mutation tool without opening another schema.

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

Usage Guidelines4/5

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

It provides an explicit workflow: search_connector_tools, inspect get_connector_tool, then select_connector_tools with the current expected_revision, and separately describes the catalogue-card overlay-editing path using set_connector_overlay. The separation is clear, though it does not explicitly say 'do not use set_connector_overlay for tool selection'.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources