Skip to main content
Glama

Deadline SLA Clock

Deadline SLA Clock

deadline-sla-clock

A deadline written as a local time without an instant cannot be enforced, and a receipt cannot process a cutoff that two agents would convert differently. $0.001 per call, USDC via x402 or MPP. Given a deadline timestamp (and an optional now and timezone), returns remaining seconds, overdue, and a state of ok, due_soon, or overdue against a fixed UTC instant. An empty call scores a built-in overdue deadline.

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": "deadline-sla-clock"
  }
}

Input Schema

NameRequiredDescriptionDefault
nowNoOptional as-of timestamp; default is the server clock
labelNoOptional label for the cutoff
deadlineNoDeadline timestamp (ISO-8601 with offset, or a wall clock plus timezone)
timezoneNoIANA timezone used when deadline or now has no offset
due_soon_secondsNoSeconds before the deadline that count as due_soon (default 3600)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does meaningful work: it discloses the per-call price and payment rails (USDC via x402 or MPP), the exact state vocabulary returned, and the fallback behavior for an empty call ('scores a built-in overdue deadline'). It stops short of stating whether the call is purely read-only/side-effect free or how invalid timestamps are handled.

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

Conciseness3/5

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

Two of the four sentences are abstract justification about why unanchored local times are dangerous, which delays the actual statement of what the tool does until sentence three. The pricing sentence is valuable but sits awkwardly between the motivation and the core definition; the content is useful but not front-loaded.

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 five-parameter, annotation-free, output-schema-free tool, the description covers return fields (remaining seconds, overdue, state values), a defaulting rule, an empty-input fallback, and cost. It leaves the exact response field names and error behavior for malformed timestamps unstated, a modest gap.

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%, so the baseline is 3. The description clarifies that `now` defaults to the server clock and that timezone matters only when an offset is absent, but it omits the roles of `label` and `due_soon_seconds`, which the schema already documents. It adds little beyond the structured fields.

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 third sentence states concretely what the tool computes: 'Given a deadline timestamp ... returns remaining seconds, overdue, and a state of ok, due_soon, or overdue against a fixed UTC instant.' That is a specific verb + resource + return shape, so the tool's job is unambiguous. No siblings exist to differentiate against, which is the only thing keeping it from a 5.

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 opening framing (local time without an instant cannot be enforced; receipts cannot process a cutoff two agents would convert differently) implies the usage context but never states when to call this versus computing locally. There is no explicit when-to-use or when-not-to-use statement, only an implied motivation.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources