Skip to main content
Glama

Bokför avskrivning

post_depreciation
Idempotent

Bokför månadens linjära avskrivning (D avskrivningskostnad / K ackumulerad avskrivning), i bokslutsserien. Utan asset_id bokförs alla tillgångar; med asset_id bara den. Idempotent per period. Bara för en månad som har varit (sista dagen senast i dag), i ett befintligt räkenskapsår och en olåst period. Avyttrade tillgångar skrivs inte av. Förhandsgranska först med preview_depreciation. Kräver behörigheten 'book'. Argument: orgnr, year, month; valfritt asset_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>",
      "year": "<year>",
      "month": "<month>"
    },
    "name": "post_depreciation"
  }
}

Input Schema

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

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.9/5.0
Behavior5/5

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

Beyond the annotations (which only say non-read-only, idempotent, non-destructive), the description discloses the required 'book' permission, period-lock and fiscal-year preconditions, that disposed assets are excluded, and that idempotency is scoped per period. These are real operational facts an agent cannot derive from the annotation block.

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?

A single dense paragraph, front-loaded with the core action and ledger effect, followed by scope, idempotency, preconditions, the preview pointer, and permissions. No filler sentences; each clause carries distinct information.

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?

There is no output schema, yet the description specifies what gets posted (which accounts), what happens on repeat calls, what is skipped (disposed assets), and what access is needed. For a 4-parameter mutation tool this covers everything an agent needs to invoke it correctly.

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 only 25% (only orgnr is documented), so the description must compensate. It does add genuine meaning for asset_id (omitted = all assets, present = single asset) and for month (must be a completed month, last day no later than today), but year is only vaguely covered by 'i ett befintligt räkenskapsår' and the trailing argument list merely repeats parameter names.

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?

The description states a specific verb and resource ('Bokför månadens linjära avskrivning') and even names the exact ledger effect (D avskrivningskostnad / K ackumulerad avskrivning) plus the journal series (bokslutsserien). This is clearly distinguishable from neighbours like preview_depreciation, create_fixed_asset, or dispose_fixed_asset.

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?

It explicitly routes the agent to preview_depreciation first, and it distinguishes the two calling modes: without asset_id all assets are booked, with asset_id only that one. Preconditions (past month, existing fiscal year, unlocked period, no disposed assets) further constrain when the call is valid.

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.