Skip to main content
Glama

Get replica lag

render_get_replication_lag
Read-onlyIdempotent

Get the replication lag in seconds for a Postgres database replica to identify synchronization delays.

Instructions

Get replica lag. Get seconds of replica lag of a Postgres replica. Calls GET /metrics/replication-lag on the Render Public API.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
endTimeNoEpoch/Unix timestamp of end of time range to return. Defaults to `now()`.
resourceNoPostgres ID to query. When multiple resource query params are provided, they are ORed together
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 (readOnlyHint, idempotentHint, destructiveHint: false) already convey safety and idempotency. The description adds the endpoint but lacks details on rate limits, authentication, or error handling, which is adequate given the annotations.

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

Conciseness4/5

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

The description is concise with two sentences, though the first sentence slightly repeats the tool title. It is well-structured but could be more efficient.

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

Completeness2/5

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

With 4 parameters, no output schema, and only a minimal description, the tool lacks contextual completeness. It does not explain the output format, default values, or how to interpret the lag metric, which is insufficient for reliable agent usage.

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 descriptions for all 4 parameters, so the description adds no additional meaning beyond the schema. Baseline of 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?

The description clearly states it retrieves replica lag in seconds for a Postgres replica and specifies the API endpoint. The verb 'get' and resource 'replica lag' are unambiguous, and the tool is distinct from sibling metrics tools like get_cpu or get_memory.

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

Usage Guidelines2/5

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

No guidance is provided on when to use this tool versus alternatives. It does not mention context such as monitoring replication health or when to prefer other metrics tools, and there is no exclusionary criteria.

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