Skip to main content
Glama

Avvisa eller återställ tidposter

review_time_entries
DestructiveIdempotent

Skicka tillbaka rapporterade tidposter till den anställde eller återställ avvisade. status = avvisad (en rapporterad post skickas tillbaka; den anställde ser note och kan rätta) eller rapporterad (en avvisad post återställs och väntar på attest igen). Attest görs inte här: tidrapporter attesteras, och en attest ändras, av en människa i Kvickd under Lön, Tidrapporter. Attesterade och utbetalda poster kan inte ändras här. Scope payroll. Argument: orgnr, entry_ids, status; valfritt 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>",
      "entry_ids": "<entry_ids>",
      "status": "<status>"
    },
    "name": "review_time_entries"
  }
}

Input Schema

NameRequiredDescriptionDefault
noteNo
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
statusYes
entry_idsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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."
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already declare destructiveHint=true and idempotentHint=true. On top of that, the description adds real context: the employee sees the note, rejected entries get a second review, and attested or paid entries are blocked from modification. A sentence on whether a rejected entry can still be edited, or on whether sending back depends on the entry's current status, would fill the only remaining gap.

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?

The description is compact and puts the status semantics first, where they matter most. The final argument list is close to redundant, since the schema already provides the names, so the description could be slightly tighter.

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?

It is a state-changing payroll tool with no output schema and only partial parameter coverage, but the description covers the important behavioral points: what each status does, what the employee sees, what is blocked, and where attestation happens. The main gap is how to format 'entry_ids' and what the call returns, but the description still gives most of what an agent needs to call the tool correctly.

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?

Schema coverage is only 25%, so the description must compensate. It explains 'status' well, since the schema has no enum, but 'entry_ids' is only listed without a format. The closing 'Argument: orgnr, entry_ids, status; valfritt note' mostly repeats parameter names. The description adds no real semantics for 'entry_ids' or 'note'.

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?

Stated with two specific verbs on a specific resource: send reported entries back to the employee, or restore rejected entries. It also names the boundary of the operation (attestation happens elsewhere, in Kvickd under Lön, Tidrapporter), which separates it from approval-flavored siblings such as approve_voucher_draft or reject_voucher_draft.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The two status modes are explained together with the situation each applies to: 'avvisad' sends a reported entry back and the employee can correct it, while 'rapporterad' restores a rejected entry to pending attest. Clear when-not clauses are included: attestation is done by a human in Kvickd, and attested or paid entries cannot be changed here.

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.