Skip to main content
Glama
plainfold-calendars-mcp

plainfold-calendars-mcp

Official
by plainfoldhq

previous_business_day

Read-onlyIdempotent

Find the last business day strictly before a given date on a specified calendar, useful for calculating prior trading or settlement dates.

Instructions

The last business day strictly before date (YYYY-MM-DD) on calendar.

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": {
      "calendar": "<calendar>",
      "date": "<date>"
    },
    "name": "previous_business_day"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
calendarYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, closed-world behavior, so the safety profile is covered. The description adds one valuable behavioral nuance: 'strictly before' means a business-day input returns the prior day rather than itself. It does not explain calendar identifiers or holiday handling.

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 front-loaded sentence with no filler; the boundary condition is stated inline where it matters.

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

Completeness3/5

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

An output schema exists, so return values need no explanation. However, for a two-parameter tool with zero schema descriptions, the description should clarify what a valid calendar value looks like and whether holidays are honored.

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 0%, so the description must carry parameter meaning. It supplies the date format (YYYY-MM-DD) and names the calendar parameter, but leaves the calendar identifier's expected values and source undocumented, which matters given the list_calendars sibling.

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 result: the last business day strictly before a given date on a given calendar. The word 'before' and the strictly qualifier distinguish it from next_business_day and add_business_days, though siblings are not named explicitly.

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 explicit when-to-use or when-not-to-use guidance, and no alternative tool is referenced. The agent must infer the use case from the operation name alone.

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