Skip to main content
Glama

Build timesheet

build_timesheet
Idempotent

Create or refresh the DRAFT monthly timesheet of one person in one project from their time entries (category 'work'; hours per day and work package, tickets without work_package count as 'ohne AP'). Fails if the month was already sent or signed — such months are corrected as a new version in the app (Korrektur). Internal staff only. Next step: send_timesheet.

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": {
      "project_id": "<project_id>",
      "user_id": "<user_id>",
      "month": "<month>"
    },
    "name": "build_timesheet"
  }
}

Input Schema

NameRequiredDescriptionDefault
monthYesMonth, YYYY-MM
user_idYesEmployee (support user UUID)
project_idYesProject UUID (should have funding data)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Adds real context beyond the annotations: the output is a DRAFT (mutable), it is a create-or-refresh operation (consistent with idempotentHint=true), it fails on sent/signed months, and it is restricted to internal staff. The data-derivation rules (category 'work', hours per day and work package, tickets without work_package become 'ohne AP') are useful behavior disclosure. It does not say what the call returns or whether a refresh overwrites manual edits, so it stays at a solid 3 rather than higher.

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?

Three dense sentences, all front-loaded with the operation and its constraints before the next-step hint. Parenthetical derivation rules earn their place, though the 'ohne AP' detail is slightly incidental to selecting the tool.

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 3-parameter, fully-described-schema mutation with annotations covering safety and idempotency, the description supplies everything needed: preconditions, failure modes, output nature (draft), and the downstream step. No output schema exists, but the DRAFT framing and send_timesheet pointer cover the return-value question adequately.

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; the description adds genuine meaning by framing the three parameters as a single person/project/month triple and by attaching a hard constraint to the month (already-sent or signed months fail). It still leaves 'funding data' implications of project_id to the schema alone.

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 pair ('Create or refresh'), a precise resource ('DRAFT monthly timesheet'), and a tight scope ('one person in one project from their time entries'). The DRAFT qualifier and the explicit 'Next step: send_timesheet' separate it cleanly from the sibling of the same name stem.

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 clear preconditions ('Internal staff only'), a when-not condition ('Fails if the month was already sent or signed — such months are corrected as a new version in the app'), and names the follow-on tool. It stops short of stating explicit alternatives for building a timesheet another way, but the routing guidance is strong.

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