Skip to main content
Glama

Withdraw a submitted week

withdraw_timesheet
Destructive

Takes back a week the user submitted that is still waiting for approval: its hours can be changed again and the week can be submitted again later. An approved week can only be reopened by the project owner.

Input Schema

NameRequiredDescriptionDefault
timesheetIdYesA week handed in for approval (the user's own, or one handed to the user).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

The annotations mark this as destructive and not read-only, and the description adds important behavior beyond that: withdrawal makes hours editable and the week resubmittable later. It also discloses the restriction that approved weeks cannot be reopened through this path. It doesn't cover error behavior or return values, but the core mutation semantics are well explained.

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 with no waste. The key precondition and consequence are front-loaded, and the approved-week caveat follows naturally.

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?

For a single-parameter mutation tool with no output schema, the description covers the important state constraints, reversibility, and approval boundary. It is nearly complete, though it could mention what happens on failure or whether the caller must own the timesheet.

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?

There is only one parameter, timesheetId, and the schema already provides a full description ('A week handed in for approval...'). The description adds state context but no syntax or format details beyond the schema, so baseline 3 is appropriate.

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 ('takes back') and resource ('a week the user submitted'), and clarifies the state precondition: it must still be waiting for approval. It implicitly separates this from approve_timesheet and reject_timesheet by describing the pending-only scope, though it does not name those siblings explicitly.

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?

Clearly says to use this when a submitted week is still awaiting approval and notes that approved weeks require the project owner to reopen. It gives a clear condition for use and an effective exclusion, though it doesn't name alternative tools like reject_timesheet.

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