Skip to main content
Glama

Lookup Kit

days_between

Read-only

Date difference calculator, days between two dates. Days between two dates (YYYY-MM-DD), plus weeks, and the difference in years, months and days. Negative if end is before start. Price: $0.001 per call (x402, USDC on Base).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "days_between"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, and the description is consistent with a pure read computation. It adds genuinely useful behavior beyond annotations: the result includes weeks and a years/months/days breakdown, and it is negative when end precedes start. It also discloses a per-call price and payment mechanism, which is important operational context an agent would not otherwise know.

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?

It is short and front-loads the purpose, but the opening is redundant ('Date difference calculator, days between two dates' followed by 'Days between two dates'), wasting a sentence on restatement. The pricing note is appended without structure, which is fine but reads as bolted-on.

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?

With no output schema, the description carries the burden of describing return values, and it does list days, weeks, and the years/months/days decomposition plus sign behavior. Combined with the pricing disclosure, an agent has enough to call it correctly, though invalid-input handling remains unspecified.

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 0%, so the description must compensate; it does so partly by specifying the YYYY-MM-DD input format and the negative-result semantics of start vs end. However, it does not describe what happens on malformed dates or the ordering requirement, and the two parameter names themselves are only implicitly explained.

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?

Uses a specific verb-resource pairing ('Date difference calculator, days between two dates') and names the input format and output components. It does not name or contrast with siblings such as business_days or date_add, so differentiation relies on the agent's own inference.

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?

There is no when-to-use or when-not-to-use guidance and no reference to alternatives. Given the sibling list includes business_days and date_add, stating that this computes plain calendar-day differences rather than business days would have been valuable; the description leaves that to the agent.

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