Skip to main content
Glama

Get the current week

get_weeks_current
Read-onlyIdempotent

Retrieves the current week and its WEEK_ID so you can submit this week's measurable score; adjacent weeks are one less or one more.

Instructions

Get the current week

Returns the current week in your organization. Its ForWeekNumber is the WEEK_ID that PUT /api/v1/measurables/{MEASURABLE_ID}/week/{WEEK_ID} takes to write this week's score. The week before is one less and the week after is one more.

GET /api/v1/weeks/current

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_weeks_current"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and openWorld, so safety is covered. The description adds one genuinely useful behavioral fact — that week IDs are relative ('the week before is one less and the week after is one more') — but says nothing about what happens at year boundaries, response fields, or caching.

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?

Front-loaded with the one-line purpose, then the actionable WEEK_ID explanation. The trailing raw 'GET /api/v1/weeks/current' line is redundant with the tool name and title and does not earn its place.

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 does the right thing by naming the field an agent needs (ForWeekNumber) and how it maps to the write endpoint. It could go further and describe other fields in the week object, but the essential call path is complete for a simple, no-param read.

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?

The tool takes zero parameters, so there is no parameter surface to explain; the baseline for a no-param tool applies. The description instead spends its words on the return value's key field, which is the relevant semantics here.

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 and resource ('Get the current week') and immediately clarifies scope: 'Returns the current week in your organization', which distinguishes it from week/history lookups elsewhere in the catalog. The added note that ForWeekNumber is the WEEK_ID consumed by the measurable score PUT endpoint makes the purpose concrete rather than tautological.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear use context: call this to obtain the WEEK_ID needed to write this week's score via PUT /api/v1/measurables/{MEASURABLE_ID}/week/{WEEK_ID}. It does not name an alternative tool or say when not to use it, so it stops short of explicit routing guidance.

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

Deploy Server

Other Tools