{"uid":"cap_LGBu_LhFeaGBJhE1bNvru","slug":"writerslogic-deictic-relative-date-checker-9788870e","name":"WritersLogic Deictic & Relative-Date Checker","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/deictic-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"minLength":1,"description":"Message to check."},"anchor":{"type":"object","required":["asOf","timeZone"],"properties":{"asOf":{"type":"string","maxLength":40,"description":"ISO 8601 instant with Z/offset, or a plain YYYY-MM-DD local date."},"timeZone":{"type":"string","maxLength":64,"minLength":1,"description":"IANA zone, e.g. Europe/Berlin."}},"description":"Reference time for resolving unambiguous relative dates.","additionalProperties":false},"candidates":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":20,"description":"Items recently in play; echoed on reference slots for the caller to ask with. Never chosen automatically."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_incsQCKUbswxMu0n5HCmH","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Scans English text for unresolvable context-dependent phrases (demonstratives, back-references, relative dates) and returns either resolved dates or clarification questions for each ambiguous span.","exampleAgentPrompt":"Before you act on this customer message — 'I need the report done by end of month, same format as last time, and ship it to that address' — scan it for any phrases that are ambiguous or can't be understood without extra context, using today as the anchor (2024-01-15, America/New_York), and tell me what you'd need to clarify.","exampleUseCases":[{"title":"Pre-flight check for scheduling agent","prompt":"Before you book anything, run this message through the ambiguity checker: 'Schedule the call for next Friday at the usual time with the same team as before.' Today is 2024-03-10 in Europe/London — tell me which parts are unresolvable so I can ask the user the right follow-up questions."},{"title":"Resolve relative dates in customer support ticket","prompt":"A customer wrote: 'I placed my order yesterday and need it delivered in 3 days.' Can you check this message for relative dates and resolve them to actual calendar dates? My anchor is 2024-05-20T14:30:00Z in America/Chicago."},{"title":"Validate AI pipeline message before tool dispatch","prompt":"Before dispatching this tool call message to the inventory system — 'Pull the same report as last quarter for that product line, due soon' — scan it for demonstratives and back-references that need clarification, anchored to 2024-06-01 in Asia/Tokyo, and list the questions I should ask the caller first."}],"resultDescription":"Returns a structured result with a pass or fail status, plus an array of detected spans each containing the matched phrase, its category (demonstrative, back-reference, or relative date), character offsets, the resolved date if unambiguous, and a suggested clarification question if the phrase cannot be resolved. Candidates from the input are echoed on reference slots to help the caller formulate questions.","failureModes":["Text is empty or exceeds 20,000 characters — validation error returned","anchor.asOf is not a valid ISO 8601 instant or YYYY-MM-DD — parse error","anchor.timeZone is not a recognized IANA zone — error returned","Relative weekday expressions like 'next Friday' are not resolved and become clarification questions rather than errors","Non-English input is not analyzed and may return no detections even if ambiguous phrases exist","Pronouns like 'it' or 'they' are intentionally out of scope and will not be flagged"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to validate that an incoming user or tool message is fully unambiguous before passing it to a downstream planner or action executor — especially when the message may contain relative dates, demonstrative references, or back-references that could cause silent misinterpretation. It is preferable to general-purpose LLM-based ambiguity detection because it is rule-based, deterministic, cheap ($0.005/call), and returns structured offsets and ready-to-use clarification questions rather than freeform prose. Best suited for English-language agentic pipelines where unresolved temporal or referential ambiguity would cause downstream failures.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T06:39:01.232Z","isFirstParty":false,"canonicalSlug":"writerslogic-deictic-relative-date-checker-9788870e"}