Skip to main content
Glama
JimmyAlter

guarded-sql-mcp

by JimmyAlter

Stale devices

stale_devices
Read-onlyIdempotent

Identifies non-retired devices that have not checked in for a set number of days or never, returning the oldest first to help spot inactive hardware.

Instructions

List non-retired devices that have not checked in for at least the given number of days (or never), oldest first.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
daysNoDays without check-in (1-365, default 30).
siteNoSite code as returned by list_sites, e.g. "north-branch".
limitNoMaximum rows to return (1-100, default 25).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so the bar is lower. The description adds genuinely new context: the result set excludes retired devices, includes devices that never checked in, and is ordered oldest first. It does not mention pagination behavior, which is the only notable gap.

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?

A single well-formed sentence that front-loads the resource and the filter condition with zero filler.

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 listing tool with full schema coverage and safety annotations, the description covers scope, filter semantics, and ordering. Nothing essential is missing, though noting result pagination would round it out.

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%, so all three parameters (days, site, limit) are already fully documented with ranges and defaults. The description only restates the days semantics implicitly; baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb (List) and resource (non-retired devices) plus a precise filter condition (no check-in for at least N days, or never). It is distinguishable from search_devices by its staleness criterion, but it does not explicitly name or contrast with that sibling.

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?

Usage is implied by the filter definition (find stale devices), but there is no explicit when-to-use vs when-not guidance and no mention of alternatives such as search_devices, despite the tool returning a list of devices that overlaps with it.

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