Skip to main content
Glama

Copy week

copy_week

Use this when the user wants to start a week from another week's schedule, usually last week into next week. Copies into an empty week only; people no longer on the team become open shifts.

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": {
      "from_week_start": "<from_week_start>",
      "to_week_start": "<to_week_start>"
    },
    "name": "copy_week"
  }
}

Input Schema

NameRequiredDescriptionDefault
workplace_idNoWorkplace id. Omit to use the first workplace.
to_week_startYesThe week to copy into: "next" or "this", or any date in it as YYYY-MM-DD.
from_week_startYesThe week to copy from: "this" or "last", or any date in it as YYYY-MM-DD.

Output Schema

NameRequiredDescriptionDefault
fillNo
weekYes
laborYes
linksYes
staffYes
checksYes
noticeYes
shiftsYes
totalsYes
accountYes
coverageYes
requestsNoTime-off requests from staff waiting for an answer
workplaceYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Beyond the annotations, the description discloses two important behaviors: the destination week must be empty, and staff no longer on the team become open shifts. These are exactly the kind of mutation preconditions and side effects an agent needs before calling the tool.

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?

Two compact sentences front-load the usage condition and then state the critical constraint and side effect. There is no wasted text.

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?

Given full schema coverage, an output schema, and annotations covering safety flags, the description supplies the remaining practical context: when to use it, the empty-week precondition, and what happens to former team members. No essential calling information is missing.

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%, so from_week_start, to_week_start, and workplace_id are already well documented in the schema. The description reinforces the last-to-next-week use case but adds no parameter syntax or format details beyond what the schema provides.

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?

The description states a specific verb and resource: copying a week's schedule from one week into another. It adds useful scope with 'into an empty week only' and side-effect context, but it does not explicitly differentiate itself from siblings such as fill_week or edit_shifts.

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 clearly says when to use the tool: starting a week from another week's schedule, usually last week into next week. It also gives a key exclusion, 'copies into an empty week only,' but does not name alternative tools or explain when to choose them instead.

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