Skip to main content
Glama

Get task runs completed count

render_get_task_runs_completed
Read-onlyIdempotent

Retrieve the count of completed task runs, with options to filter by state, task ID, or time range, and aggregate results by state.

Instructions

Get task runs completed count. Get the total number of task runs completed for one or more tasks. Optionally filter by state (succeeded/failed) or aggregate by state. Calls GET /metrics/task-runs-completed on the Render Public API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
stateNoThe state of task runs to filter to. When multiple state query params are provided, they are ORed together
endTimeNoEpoch/Unix timestamp of end of time range to return. Defaults to `now()`.
resourceNoTask ID to query. When multiple task IDs are provided, they are ORed together
startTimeNoEpoch/Unix timestamp of start of time range to return. Defaults to `now() - 1 hour`.
aggregateByNoThe field to aggregate by
resolutionSecondsNoThe resolution of the returned data
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint. The description adds the HTTP method and endpoint path, which provides minimal extra behavioral context beyond the safety profile.

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 concise sentences with front-loaded purpose. Each sentence adds value with no redundancy or fluff.

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?

The description covers the core functionality and mentions optional filters, but lacks details on return format, handling of multiple resources, and the impact of resolutionSeconds. For a metrics tool with 6 parameters and no output schema, minor gaps remain.

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 coverage is 100% with all parameters described. The description only reiterates the state and aggregateBy parameters, adding no new semantic information beyond what the schema already provides.

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?

The description clearly states it retrieves the count of completed task runs, with optional state filtering and aggregation. However, it does not differentiate from siblings like render_get_task_runs_queued or render_list_task_runs.

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?

The description implies usage for counting completed runs but lacks explicit guidance on when to use this tool over alternatives, such as listing detailed runs or queued counts.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LuSrodri/render-useful-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server