Skip to main content
Glama

Ta bort löneutkast

delete_payroll_draft
DestructiveIdempotent

Ta bort ett väntande utkast till lönekörning (sparat med run_payroll draft=true). Inget är bokfört, så inget behöver vändas. En bokförd körning backas i stället med reverse_payroll_run. Vill du byta ut utkastets rader och behålla run_id, använd run_payroll med replace_run_id. Kräver scope payroll. Argument: orgnr, run_id.

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>",
      "run_id": "<run_id>"
    },
    "name": "delete_payroll_draft"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true, idempotentHint=true and readOnlyHint=false, so the destructive profile is covered. The description adds value beyond that: nothing is booked so no accounting reversal is needed, and a payroll scope is required. It stops short of saying what exactly is removed (the draft header and its rows) or whether the deletion is recoverable, which keeps it off a 5.

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 front-loaded with the core action, then the accounting reassurance, then the two alternatives. Every sentence carries routing or safety information, though the trailing "Argument: orgnr, run_id" list merely echoes the schema and could be dropped.

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 two-parameter, no-output-schema tool whose annotations already declare destructiveness and idempotency, this covers purpose, safety, auth scope and alternatives. The only meaningful gap is run_id's expected format/source, which is left to the bare schema.

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 50%: orgnr carries a rich description (format, example, list_companies pointer) while run_id is bare. The description only restates "Argument: orgnr, run_id" plus the incidental fact that run_id can be preserved via replace_run_id, so it adds little meaning for the undocumented run_id parameter.

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?

"Ta bort ett väntande utkast till lönekörning" names a specific verb, a specific resource state (pending draft payroll run), and even explains how such a draft originates (run_payroll draft=true). An agent can distinguish this immediately from reverse_payroll_run or run_payroll 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 Guidelines5/5

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

Two explicit alternative routes are given with their selecting conditions: a booked run must go through reverse_payroll_run, and replacing draft rows while keeping run_id must go through run_payroll with replace_run_id. This is exactly the when-to-use / when-not-to-use guidance the dimension asks for.

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.