Skip to main content
Glama

Set time rules

set_time_rules
Destructive

Sets the rules that close logged hours on all the projects the user owns, which change what every person on them can do: lockedUntil, a day (YYYY-MM-DD, up to today) closes every day on or before it for everybody, the user included, until the date is changed; editWindowDays, a whole number of days (0 to 366), limits how far back people other than the user can fix their own hours (0 = only today). null clears a rule; a field left out stays. Setting rules is a Pro feature; turning them off is allowed on every plan, and rules already set keep protecting the hours if the plan lapses. Needs confirm: true; without it the result is a preview that says how many hours get frozen.

Input Schema

NameRequiredDescriptionDefault
confirmNotrue performs the action. Without it (or with any value other than the boolean true) nothing changes and the result is a preview of the effects.
lockedUntilNoThe last day that is closed, YYYY-MM-DD, not later than today; null reopens everything.
editWindowDaysNoDays back that people other than the owner can still change their hours (0 to 366; 0 = only today); null = no limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes far beyond the destructiveHint/openWorldHint annotations: it says lockedUntil freezes days for everybody including the user until changed, editWindowDays scopes others' edits, null clears, omitted fields persist, rules survive plan lapse, and without confirm the call only previews how many hours get frozen.

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?

Purpose is front-loaded and every clause carries behavioral information about locking, scope, or the preview. The single dense run-on with semicolons is harder to scan than it needs to be.

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?

With no output schema and a destructive mutation, the description supplies everything needed: confirm gating, the preview result, scope of the freeze, clearing semantics, and the Pro-plan constraint.

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 baseline is 3; the description still adds meaning the schema does not carry, notably that a field left out stays unchanged and that rules keep protecting hours if the plan lapses. It largely restates the null/range semantics already in the schema.

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: sets time rules that close logged hours on all projects the user owns. It explicitly covers what the rules do and is clearly distinct from the read-only sibling get_time_rules.

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?

Explains the confirm-preview requirement and that turning rules off is allowed on every plan, giving clear context for use. It does not name an alternative tool or say when a value should be left out rather than nulled, 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources