Skip to main content
Glama

Get project task counts

get_project_task_counts
Read-onlyIdempotent

Count a project's top-level tasks by status. Returns counts with one number per status, plus open and total. projectId accepts an ID or slug. Needs projects:read and tasks:read.

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": {
      "projectId": "<projectId>"
    },
    "name": "get_project_task_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectIdYesThe project to count: its ID or slug, from list_projects.

Output Schema

NameRequiredDescriptionDefault
openYesTasks in any status except done and cancelled.
totalYesAll tasks counted.
countsYesTop-level tasks per status.
projectIdYesID of the project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already supply readOnly, idempotent, and closed-world hints, so the bar is lower; the description adds real value by specifying the return shape (one number per status, plus open and total) and the exact auth scopes needed. It also clarifies that only top-level tasks are counted, which prevents a likely miscounting assumption.

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

Conciseness5/5

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

Three short sentences, front-loaded with the action, then the return shape, then the parameter qualifier and auth requirements. Nothing is redundant or padded.

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

Completeness5/5

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

For a single-parameter read tool with full schema coverage, an output schema, and complete annotations, the description covers scope, return shape, and permissions. An agent has everything needed to call it correctly without further context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the schema already says projectId is "its ID or slug, from list_projects", so the description's "projectId accepts an ID or slug" largely repeats structured data. Baseline 3 applies.

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

Purpose4/5

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

"Count a project's top-level tasks by status" gives a specific verb, resource, and scope, and "top-level" plus "a project's" implicitly separates it from get_my_task_counts. It stops short of naming an alternative outright, so sibling differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

There is no explicit when-to-use or when-not guidance, and no alternative is named even though get_my_task_counts exists. Usage is only implied by the purpose statement and the listed required scopes, which is the minimum viable level.

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