Skip to content
Back to skills

Composio Tool Router

ASecurity

Use when routing third-party SaaS tool work through Composio CLI for lightweight discovery, service-scoped tool lookup, schema-on-demand, dry-run validation, or MCP-light Slack, Linear, GitHub, Notion, Jira, and similar integrations.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsgobashgitapidatabasedocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add TobeMagic/aimagician-skills --skill composio-tool-router --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Composio Tool Router?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Composio Tool Router
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tobemagic-composio-tool-router/badge)](https://www.skillsdirectory.com/skills/tobemagic-composio-tool-router)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: composio-tool-router
description: Use when routing third-party SaaS tool work through Composio CLI for lightweight discovery, service-scoped tool lookup, schema-on-demand, dry-run validation, or MCP-light Slack, Linear, GitHub, Notion, Jira, and similar integrations.
category: operate
subcategory: tool-routing
tags:
  - composio
  - tool-router
  - integrations
  - saas
  - mcp-alternative
compatibility:
  tools: [bash, composio]
  requires: Composio CLI, intended service/toolkit, user intent, and confirmation or a task-scoped delegated-closure authorization for external writes
---

# Composio Tool Router

Use this skill as a lightweight third-party SaaS tool registry and router. It helps the agent discover and invoke Slack, Linear, GitHub, Notion, Jira, and similar actions through Composio without loading a full MCP server's schema into every turn.

This skill replaces only the MCP-heavy parts that Composio can cover: tool discovery, service-scoped routing, schema-on-demand, auth-aware execution, and proxy calls. Custom protocol servers, local resource exposure, and protocol-specific schema design are engineering tasks outside this router; follow the target project's architecture and documentation.

## Capability Routing

Load only the reference needed for the current task.

| Need | Reference |
|---|---|
| CLI commands for discovery, schema lookup, dry-run, execution, and proxy | `references/cli-workflow.md` |
| Safety classes, confirmation rules, secret handling, and MCP replacement boundaries | `references/safety-and-boundaries.md` |

## When To Use

Use this skill when:

- the user wants to discover actions for a SaaS service such as Slack or Linear;
- the agent needs a compact list of available Composio actions for one toolkit;
- a task can be solved by searching Composio for the right tool instead of preloading MCP schemas;
- only one or a few tool schemas should be loaded on demand;
- the task involves checking whether an external account is connected or what auth step is needed;
- the user wants a unified external SaaS entrypoint that can later extend to GitHub, Notion, Jira, Gmail, and similar services.

Do not use it when:

- the task is building or changing an MCP server;
- the needed capability is a local filesystem resource, local database, project-only API, or custom server not exposed through Composio;
- the user explicitly asked to use a configured MCP tool;
- a direct first-party CLI is already the safest, narrowest path and avoids Composio auth indirection.

## Default Operating Contract

- CLI-first: prefer `composio` commands over SDK/API code unless the user explicitly asks for SDK integration.
- Service-scoped: identify the toolkit slug first, then list or search inside that toolkit.
- Schema-on-demand: inspect a specific tool schema only after selecting a candidate action.
- Dry-run first: validate write-capable calls with `--dry-run` before real execution.
- Confirm external writes: any create, update, archive, delete, send, invite, publish, or proxy mutation needs explicit confirmation of target, payload, and expected effect. A user may grant one task-scoped delegated-closure authorization for named post-delivery Linear mutations; it is not blanket permission.
- Secret-safe: never print tokens, API keys, OAuth state, or raw files from `~/.composio/`.
- Output-efficient: summarize candidate tools and only include fields needed for the next decision.

**CHECKPOINT:** Before an external write, the toolkit, action slug, target identity, required fields, dry-run result, duplicate-risk decision, and authorization source must be written in one compact execution record.

**CHECKPOINT:** Confirm that discovery stayed service-scoped and schema-on-demand before expanding to a global search or a different integration path.

**CHECKPOINT:** If any requested action is destructive, public, administrative, or duplicate-sensitive, stop after dry-run until the target and authorization are explicit.

## Workflow

### 1. Classify Intent

- Identify the target service or toolkit, such as `linear`, `slack`, `github`, `notion`, or `jira`.
- Identify the user intent: discover, inspect schema, validate, execute, debug auth, or proxy an API call.
- Determine risk class: read-only, write/update, destructive, public communication, admin action, or unknown.
- If service, target, or write intent is ambiguous, discuss before calling anything beyond discovery.

### 2. Preflight

- Check the CLI: `command -v composio`, `composio --version`, and relevant `--help`.
- If auth state matters, use `composio whoami` or `composio link <toolkit>` only after explaining why.
- Do not inspect or quote local Composio config/cache files that may contain auth state.

### 3. Discover Tools

- For a known service, list compact inventory: `composio tools list <toolkit> --limit 50`.
- For narrowed service search, use `composio tools list <toolkit> --query "<term>" --limit 20`.
- For intent search, use `composio search "<intent>" --toolkits <toolkit> --limit 10`.
- Prefer service-scoped results over global search to reduce noise.

```bash
composio tools list linear --limit 50
composio tools list slack --query "send message" --limit 20
composio tools info <tool-slug>
```

```bash
composio tools info <tool-slug>
composio execute <tool-slug> --get-schema
```

### 4. Select And Inspect

- Choose the smallest tool that matches the user's intent.
- Prefer read-only tools for lookup and validation before mutation.
- Inspect only the selected tool: `composio tools info <tool_slug>` or `composio execute <tool_slug> --get-schema`.
- Capture required inputs, optional inputs, likely IDs to resolve first, and pitfalls from the command output.

### 5. Validate And Execute

- Build the payload from user-approved facts and resolved IDs.
- For write-capable calls, run `composio execute <tool_slug> -d '<json>' --dry-run` first.
- Before real execution, confirm the exact tool slug, target account/service, destination/resource, payload summary, and whether duplicate execution would be harmful. A delegated post-delivery closure may proceed without another conversational prompt only when the original user authorization named the issue, permitted Linear status/comment closure after merge, and the worker prompt repeats the exact permitted action set. It must still dry-run and report the final payload summary.
- Execute once. If the response indicates success, do not retry blindly.
- For failures, summarize the error, connection state, missing scopes or fields, and the safest retry path.

```bash
composio execute <tool-slug> -d '<approved-json-payload>' --dry-run
```

### 6. Return A Compact Tool Report

Include:

- toolkit and user intent;
- commands run;
- candidate tools considered;
- selected tool slug and why;
- schema or required inputs inspected;
- auth/link state if checked;
- dry-run result for write-capable work;
- real execution result if performed;
- risks, assumptions, and next action.

## MCP Replacement Rules

Use Composio instead of MCP when the problem is:

- finding SaaS actions by service or intent;
- executing a supported SaaS action with existing Composio auth;
- reducing context that would otherwise come from large MCP tool schemas;
- using one unified external SaaS entrypoint across multiple apps.

Keep MCP or another direct integration when the problem needs:

- local resources, resource templates, or prompt surfaces;
- a custom tool contract not available in Composio;
- streaming, long-lived local servers, or target-specific MCP client behavior;
- strict self-hosted control over schemas, auth, audit logs, or data residency.

## Failure Handling And Checkpoint

| Trigger | First response | Fallback |
|---|---|---|
| CLI, service connection, or authorization is unavailable | Report the redacted preflight result and the missing capability | Route to a safer first-party CLI or defer execution; never inspect auth caches |
| Discovery returns no fitting action or schema is incomplete | Broaden the intent query once and inspect only one selected schema | Return the empty result and direct-integration boundary instead of guessing fields |
| Dry-run or execution exposes a target/payload mismatch | Stop before mutation and show the discrepancy | Request corrected facts or authorization; never blind-retry a possible partial write |

- CLI missing or unauthenticated: report the exact preflight failure and do not invent available actions.
- Service filter returns no action: broaden the intent query once, then report the empty result and direct-integration alternative.
- Schema or required field remains unknown: do not execute; inspect only that action's schema and ask for material missing input.
- Dry-run differs from requested mutation: stop and show the discrepancy.
- Execution fails: return the redacted error, connection state, safe retry path, and whether any partial mutation may have occurred.

When a retry could duplicate a mutation or conceal a partial result, stop and route reconciliation through a read-only lookup before any further execution.

A write can advance only after service, action slug, identity or connection, required fields, dry-run, and user authorization are all explicit. A read completes only when the result is tied to the selected action and not inferred from a generic service description.

## Output Contract

For Composio routing work, report:

- toolkit/service;
- discovery command and result summary;
- selected action/tool slug;
- whether schema was loaded on demand;
- whether auth/link was needed;
- dry-run and confirmation status for writes;
- execution result or reason execution was not performed;
- residual risk and validation suggestions.

Files in this skill

  • SKILL.md9.5 KB
  • references/cli-workflow.md2.6 KB
  • references/safety-and-boundaries.md3.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.