Skip to main content
Glama
Firenook

Firenook

Official

tasks_stats

Read-onlyIdempotent

Reports Cloud Tasks queue statistics, including task counts, add/failure rates, completed and running dispatch slots, max rate, and max concurrency, so agents can inspect emulator queue health.

Instructions

Report each Cloud Tasks queue's statistics as the official emulator's queueStats does: numberOfTasks, tasksAdded and failedTasks (five-minute counts divided by five), completedLastMin, runningTasks (the dispatch slots, not tasks running), maxRate and maxConcurrent. For the waiting tasks themselves, use tasks_list.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "tasks_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so safety is covered. The description goes beyond them with non-obvious semantics: counts are five-minute figures divided by five, and runningTasks means dispatch slots rather than tasks currently running — exactly the kind of reinterpretation an agent would otherwise get wrong. It does not describe error behavior or cost, which keeps it from a 5.

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?

Two sentences, front-loaded with the verb and resource, then the field list, then the sibling hand-off. Parentheticals are used precisely to correct likely misreadings ('the dispatch slots, not tasks running', 'five-minute counts divided by five') rather than as filler.

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?

There is no output schema, so the description must carry the return value, and it does so exhaustively by naming all seven fields and clarifying the two that are counterintuitive. For a zero-parameter read-only tool, nothing an agent needs in order to call or interpret it is missing.

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?

The tool takes zero parameters, so the baseline is 4 and there are no argument semantics to document or omit. The description instead spends its budget on interpreting the returned fields, which is the right allocation of effort here.

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?

States a specific verb ('Report') and resource ('each Cloud Tasks queue's statistics') and immediately enumerates the exact fields returned (numberOfTasks, tasksAdded, failedTasks, completedLastMin, runningTasks, maxRate, maxConcurrent). The closing sentence distinguishes it from the sibling tasks_list by scope: this is aggregate queue stats, that is the individual waiting tasks.

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?

'For the waiting tasks themselves, use tasks_list' explicitly names the alternative and the condition that selects it, so an agent can route correctly without opening either schema. It stops short of spelling out when this tool is the right choice (e.g., monitoring vs. debugging) or any prerequisites, but the usage context is clear.

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