Skip to main content
Glama

update_cycle

Idempotent

Update an existing period record: correct dates, add a missing end date, or clear an end date (resume).

  • "my period ended on the 9th not the 8th" -> ended_on

  • "actually my period started the 2nd not the 3rd" -> started_on

  • "I'm still on my period" -> reopen: true (clears ended_on, marks it active)

SELECTOR: exactly one; id if known, else date (the period's start date, or any date within it). date matching more than one record -> error with candidate IDs to retry with.

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": "update_cycle"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoRecord ID.
dateNoYYYY-MM-DD identifying the period: its start date or any day within it.
reopenNotrue clears ended_on and marks the period active again.
ended_onNoNew end date, YYYY-MM-DD.
started_onNoNew start date, YYYY-MM-DD.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Alternative to id: a date (YYYY-MM-DD) that identifies the period — its start date, or any day within it. Resolves only when exactly one record matches."New value: +"YYYY-MM-DD identifying the period: its start date or any day within it."
    • changedInput schema / properties / ended_on / description
      Previous value: -"Updated end date. Format: YYYY-MM-DD."New value: +"New end date, YYYY-MM-DD."
    • changedInput schema / properties / id / description
      Previous value: -"Record ID. Alternative to date."New value: +"Record ID."
    • changedInput schema / properties / started_on / description
      Previous value: -"Updated start date. Format: YYYY-MM-DD. Optional."New value: +"New start date, YYYY-MM-DD."
  2. Changed3 schema fields changed
    • changedInput schema / properties / ended_on / description
      Previous value: -"Updated end date. Format: YYYY-MM-DD. Pass null to clear (mark active). Optional."New value: +"Updated end date. Format: YYYY-MM-DD."
    • addedInput schema / properties / ended_on / nullMeansClear
      Added value: +true
    • addedInput schema / properties / reopen
      Added value: +{
      +  "description": "true clears ended_on and marks the period active again.",
      +  "type": "boolean"
      +}
  3. Changed3 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Alternative to id: a date (YYYY-MM-DD) that identifies the period — its start date, or any day within it. Resolves only when exactly one record matches.",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Record ID from list_cycle. Required."New value: +"Record ID. Alternative to date."
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  4. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, and destructiveHint=false, so the safety profile is supplied structurally. The description does add genuine behavioral detail beyond them: reopen clears ended_on and reactivates the period, and ambiguous date matches raise an error returning candidate IDs to retry with. It says nothing about permissions or what the successful response contains, but with an output schema present that gap is minor.

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 operation summary, then three compact examples, then the selector contract — nothing is buried. The only waste is the reopen parenthetical, which restates the schema description almost verbatim, but it does double as an example so the cost is low.

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?

All five optional parameters are documented in the schema, annotations cover the mutability profile, and an output schema exists, so the description's remaining burden is selection and error semantics — both supplied. An agent could invoke this correctly from the definition alone.

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?

Schema coverage is 100%, so the baseline is 3, and the description earns a notch above by adding cross-parameter rules the schema cannot express: exactly one selector, prefer id when known, otherwise date (start date or any day within the period), and an error with candidate IDs when date matches multiple records. The reopen explanation largely repeats the schema's own wording, which caps it below 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Update an existing period record") and enumerates the three operations it covers: correcting dates, adding an end date, and clearing an end date. The word "existing" plus the natural-language examples cleanly separate it from a create/log path without the agent needing to open the schema.

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?

The three quoted utterance-to-field mappings ("my period ended on the 9th not the 8th" -> ended_on, "I'm still on my period" -> reopen) tell an agent precisely which situations should route here. What's missing is any explicit when-not or named alternative, so the agent must infer that brand-new period creation belongs elsewhere.

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.