Skip to main content
Glama

Weekday Calculator

calculator_weekday
Read-only

Day of the week for a given date (Monday=0 … Sunday=6).

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

Input Schema

NameRequiredDescriptionDefault
dateYesDate (YYYY-MM-DD preferred).

Output Schema

NameRequiredDescriptionDefault
dateYes
weekdayYes
expressionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so the safety profile is covered. The description adds the non-obvious indexing convention (Monday=0), which is genuinely useful, but says nothing about timezone assumptions or behavior on invalid/out-of-range dates.

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?

One short sentence that front-loads the purpose and tucks the output convention into parentheses. No filler, nothing to trim.

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 single-parameter pure function with a 100%-documented schema and an output schema, the description is nearly sufficient. Minor gaps (timezone handling, invalid-date behavior) remain, but nothing that would stop an agent from calling it correctly.

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 100%: the single 'date' parameter is documented with a 'YYYY-MM-DD preferred' description and an example. The description adds no further parameter meaning, so the baseline 3 applies.

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 verb+resource ('Day of the week for a given date') and even defines the output encoding (Monday=0 … Sunday=6). It does not differentiate from near siblings such as calculator_days, calculator_date_difference, or calculator_leap_year, so an agent comparing them gets no disambiguation.

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 is only implied by the name and description — take a date, get a weekday. There is no explicit statement of when to prefer this over calculator_days or calculator_date_difference, and no note about date-format prerequisites beyond the schema.

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.