Skip to main content
Glama

Lägg in tidpost

add_time_entry

Lägg in en tidpost åt en anställd (t.ex. från en tidlapp). Högst 24 timmar per dag. Posten väntar alltid på attest: tidrapporter attesteras av en människa i Kvickd under Lön, Tidrapporter, aldrig via den här kopplingen. Scope payroll. Argument: orgnr, employee_id, work_date (YYYY-MM-DD), hours (t.ex. 7.5); valfritt kind (arbete|overtid|ob|sjuk|semester|vab|ledig, default arbete), project (kund eller projekt), note.

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": {
      "orgnr": "<orgnr>",
      "employee_id": "<employee_id>",
      "work_date": "<work_date>",
      "hours": "<hours>"
    },
    "name": "add_time_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindNoarbete
noteNo
hoursYes
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
projectNo
work_dateYes
employee_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / properties / approve
      Removed value: -{
      -  "default": false,
      -  "title": "Approve",
      -  "type": "boolean"
      -}
  2. Changed1 schema field changed
    • addedInput schema / properties / orgnr / description
      Added value: +"Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the annotations: the 24-hour-per-day cap, the fact that the entry always enters a pending-attestation state, the payroll scope, and that approval is impossible via this integration. Annotations only declare non-readOnly/non-destructive/non-idempotent, so this added workflow context is genuinely valuable. Minor gaps: nothing about duplicate handling or what happens if the day already has entries.

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-loads the action and the two most consequential facts (24-hour cap, mandatory attestation) before the argument list. Information-dense with almost no filler, though the trailing argument run-on is dense to parse and could have been bulleted.

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 non-idempotent mutation with no output schema and sparse schema documentation, it covers formats, workflow state, scope and constraints. Remaining gaps are where employee_id comes from (list_employees) and what the created entry returns, neither of which the description or schema supplies.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With only 14% schema description coverage, the description compensates fully: it enumerates all seven arguments, gives the date format (YYYY-MM-DD), an example value for hours (7.5), and the complete kind vocabulary (arbete|overtid|ob|sjuk|semester|vab|ledig) with its default — enum values that exist nowhere in the schema. It also clarifies that project means 'kund eller projekt' and flags which arguments are optional.

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 ('Lägg in en tidpost') plus the target ('åt en anställd') and a concrete origin example ('från en tidlapp'). An agent can instantly separate this from delete_time_entry, list_time_entries or review_time_entries without opening a 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?

Gives clear context for when to call it (registering an employee's time from a time slip) and a strong exclusion: approval never happens through this connector, it is done manually in Kvickd under Lön, Tidrapporter. It does not name the sibling tools that handle listing or reviewing time entries, so routing to alternatives is implied rather than explicit.

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.