Skip to main content
Glama

ai_dates

Read-only

Extract dates and deadlines from text — Pulls every date, deadline, date range, time and recurring schedule out of free text (emails, contracts, chats, tickets) and resolves relative wording like next Friday or end of Q3 against a reference date into ISO dates, with weekday, days from the reference date, the event each date belongs to, and the next upcoming one. Dates are validated offline. Price: $0.006 USDC (Base, via x402).

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": {
      "text": "<text>"
    },
    "name": "ai_dates"
  }
}

Input Schema

NameRequiredDescriptionDefault
refNooptional reference date YYYY-MM-DD (default today UTC)
textYestext containing dates, e.g. Please send the draft by next Friday; the review call is every Monday at 10am

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Beyond the annotations (readOnly, openWorld, non-destructive), the description discloses the paid invocation cost ($0.006 USDC on Base via x402), that date resolution is validated offline, and what the response contains (weekday, days from reference, owning event, next upcoming date). Payment and validation semantics are exactly the kind of behavior annotations cannot carry.

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?

Purpose is front-loaded in a single dense sentence, followed by a short price note; nothing is wasted. The sentence is long and parenthetical-heavy, which slows scanning slightly, but every clause carries information.

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

Completeness5/5

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

For a two-parameter extraction tool with no output schema, the description covers inputs, resolution behavior, returned fields, validation, and cost — everything an agent needs to call it correctly and anticipate the charge.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so both parameters are already documented; the description still adds meaning by explaining what `ref` is for — resolving relative expressions like "next Friday" or "end of Q3" into ISO dates. It does not document output date formatting details, but the semantic role of the reference date is clarified.

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?

Opens with a specific verb+resource ("Extract dates and deadlines from text") and enumerates exactly what is pulled — dates, deadlines, ranges, times, recurring schedules — plus relative-wording resolution. It never names a sibling or states how it differs from a generic extractor like ai_entities, so it stops short of full differentiation.

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 context is implied through the source examples (emails, contracts, chats, tickets) and the note that relative wording is resolved against a reference date, which tells the caller when this tool is appropriate. There is no explicit when-not guidance or pointer to alternatives such as a general-purpose extraction tool.

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