Corcava logo La única herramienta empresarial que necesitas Corcava
Menú

List Projects via MCP: Find Workspaces and Project IDs

Developer reference for the list_projects MCP tool. Learn how to retrieve all projects in your workspace with filtering and search. Includes example tool calls, natural language prompts, edge cases, and troubleshooting.

Tool Overview

Purpose

The list_projects tool retrieves all projects available in your workspace. Use this tool when you need to find a project ID before creating tasks, generating reports, or scoping work to a specific project.

Read-only operation: This tool only reads data - it never modifies projects.

Input Parameters

The tool accepts optional search and pagination parameters.

Output Format

The tool returns a paginated list of project objects:

{
  "data": [
    {
      "id": 456,
      "name": "Q1 Product Launch",
      "description": "Launch new product features for Q1 2026",
      "created_at": "2026-01-01T10:00:00Z",
      "updated_at": "2026-03-10T14:30:00Z",
      "task_count": 42,
      "board_count": 3,
      "member_count": 5
    },
    {
      "id": 789,
      "name": "Marketing Campaign",
      "description": "Spring marketing campaign",
      "created_at": "2026-02-01T09:00:00Z",
      "updated_at": "2026-03-08T11:15:00Z",
      "task_count": 18,
      "board_count": 1,
      "member_count": 3
    }
  ],
  "meta": {
    "current_page": 1,
    "per_page": 25,
    "total": 2
  }
}

Response Fields

  • id: Unique project identifier (use this in other tools like create_task, list_tasks)
  • name: Project name
  • description: Project description (may be null)
  • created_at / updated_at: Timestamps
  • task_count: Total number of tasks in the project
  • board_count: Number of boards
  • member_count: Number of members

Example Tool Calls

Example 1: List All Projects

Tool Call (JSON):

{
  "tool": "list_projects",
  "arguments": {}
}

Returns: All projects in your workspace

Example 2: Search by Name

Tool Call (JSON):

{
  "tool": "list_projects",
  "arguments": {
    "search": "Product Launch"
  }
}

Returns: Projects matching "Product Launch" in name

Natural Language Prompt Examples

Claude Desktop / General AI

User Prompt:

"What projects do I have?"

AI Behavior:

  1. AI calls list_projects with no filters
  2. AI receives list of all projects
  3. AI presents project names and task counts

Finding a Specific Project

User Prompt:

"Find the Q1 launch project and create a task in it"

AI Behavior:

  1. AI calls list_projects with search: "Q1 launch"
  2. AI finds project ID (456)
  3. AI calls create_task with project_id: 456

Grouping Tasks by Project

User Prompt:

"Show me my tasks grouped by project"

AI Behavior:

  1. AI calls list_projects to get all project names and IDs
  2. AI calls list_tasks for each project
  3. AI groups and presents tasks by project name

Common Use Cases

Edge Cases

No Projects Found

Situation: Workspace has no projects or search matches nothing

Response:

{
  "data": [],
  "meta": {
    "current_page": 1,
    "per_page": 25,
    "total": 0
  }
}

Handling: Check search term or verify workspace has projects

Permission Denied (403)

Situation: API key doesn't have workspace access

Response:

{
  "error": "forbidden",
  "message": "You don't have permission to access projects in this workspace"
}

Handling: Verify API key configuration

Read 403 troubleshooting guide →

Best Practices

Using list_projects Effectively

  • ✅ Always call list_projects first when you need a project ID
  • ✅ Use the search parameter to narrow results when you know the project name
  • ✅ Cache project IDs within a conversation to avoid redundant calls
  • ✅ Use project names from the response to make reports human-readable

Often used together with:

Artículos relacionados

Get Board Details via MCP: Columns, States, and Usage

Developer reference for the get_board MCP tool. Learn how to retrieve complete details of a specific board including columns, states, task counts, and workflow configuration. Includes example tool cal...

List Task Comments via MCP: Timelines and Audit Trails

Developer reference for the list_task_comments MCP tool. Learn how to retrieve comment history and audit trails for tasks, including pagination and filtering. Includes example tool calls, natural lang...

Get Time Tracking Status via MCP: What is Running Now

Developer reference for the get_tracking_status MCP tool. Learn how to check if time tracking is currently active and which task is being tracked. Includes example tool calls, natural language prompts...

MCP Timeouts and Slow Responses: How to Stabilize Your Setup

Experiencing timeouts or slow MCP tool calls? This performance troubleshooting guide helps you diagnose timeout causes, optimize long-running operations, implement retry patterns, and reduce response...

MCP Tools Not Listed: Why `tools/list` Is Empty

If the Corcava connection appears active but the client advertises no tools, troubleshoot connector enablement, authorization, and configuration loading in that order. Do not confuse an empty MCP tool...

MCP Config JSON Errors: How to Fix Common Mistakes

This guide applies to MCP clients configured with a static JSON file and API key. If your client offers Add custom connector and asks only for a server URL, use Corcava's OAuth flow instead: enter htt...