Skip to main content
Glama

Submit a week for approval

submit_timesheet
Destructive

Hands in the user's week of hours (give any day of it; weeks run Monday to Sunday) for approval to each owner of the projects the user logged hours on that week, or only to ownerId. From then on the user cannot add, change or delete their hours of that week on those projects until the owner rejects it or the user withdraws it, and an approved week stays closed. A week can be submitted from its Monday on, a timer running in that week has to be stopped first, and a week already submitted or approved stays as it is. Each owner gets a notification. The owner's plan has to include it (Pro). Needs confirm: true; without it the result is a preview with the hours for each owner.

Input Schema

NameRequiredDescriptionDefault
weekYesAny day of the week to submit, YYYY-MM-DD.
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.
ownerIdNoOnly to this owner (one of the owners of the projects the user logged hours on that week).

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 well beyond the annotations by disclosing the lock effect (no add/change/delete until rejected or withdrawn), that approval is permanent ('an approved week stays closed'), that owners are notified, and that the owner's plan must be Pro. It also explains the confirm-gated preview, so the agent knows what a non-confirm call returns.

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 action and its scope, then the side effects and preconditions. It is a dense run-on chain of clauses rather than structured sentences, but each clause carries operational information.

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?

For a mutation tool with no output schema and rich annotations, the description covers the side effects, prerequisites, plan gating, notification behavior, and what the preview result contains. An agent has everything needed to invoke it safely.

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?

With 100% schema coverage the baseline is 3, but the description adds real meaning: 'week' accepts any day of a Monday–Sunday week, 'confirm: true' is required to act and otherwise returns a preview with hours per owner, and 'ownerId' is scoped to actual owners. These interpretations exceed the schema text.

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 ('Hands in the user's week of hours ... for approval') and scopes it precisely: submission goes to each project owner, or only to ownerId. This clearly distinguishes it from siblings like approve_timesheet, withdraw_timesheet, get_week_timesheet and list_timesheets.

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?

Gives concrete when/when-not conditions: a week can be submitted from its Monday on, a running timer must be stopped first, and a week already submitted or approved stays as it is. It doesn't explicitly name sibling tools to route to (e.g. for rejection or withdrawal), which keeps it from a 5.

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