Skip to main content
Glama

Get active connection count

render_get_active_connections
Read-onlyIdempotent

Retrieve the number of active connections for Postgres databases or Redis instances on Render. Specify resource IDs and time range to get connection metrics.

Instructions

Get active connection count. Get the number of active connections for one or more Postgres databases or Redis instances. Calls GET /metrics/active-connections on the Render Public API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endTimeNoEpoch/Unix timestamp of end of time range to return. Defaults to `now()`.
resourceNoResource ID to query. When multiple resource query params are provided, they are ORed together. Resources Postgres ids or Redis ids
startTimeNoEpoch/Unix timestamp of start of time range to return. Defaults to `now() - 1 hour`.
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=true, idempotentHint=true, and destructiveHint=false. The description adds the API endpoint (GET /metrics/active-connections) but does not cover other behavioral aspects like authentication requirements, rate limits, or response format.

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?

The description is compact with two sentences: one stating the purpose and the second providing the API endpoint. No redundant or verbose language.

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?

For a read-only metric retrieval tool with good annotations and full schema coverage, the description is largely sufficient. It lacks information about the return shape (since no output schema) but the task is simple enough. Minor gaps like default time ranges are documented in the schema.

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?

The input schema has 100% coverage for all 4 parameters with descriptions and examples. The tool description does not add any additional meaning beyond what the schema provides, so baseline 3 is appropriate.

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?

Description uses specific verb 'Get' and resource 'active connection count', and clarifies it applies to Postgres or Redis instances. It distinguishes from sibling tools that retrieve other metrics (e.g., CPU, memory) or perform mutations.

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 when querying active connections for supported databases but does not explicitly state when to use this tool versus alternatives like render_get_cpu or render_get_memory. No exclusion or prerequisite information is provided.

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