Skip to main content
Glama

Avyttra anläggningstillgång

dispose_fixed_asset

Sälj eller utrangera en anläggningstillgång: bokför bort anskaffningsvärde och ackumulerad avskrivning, tar in ev. köpeskilling och redovisar vinst/förlust mot bokfört värde. Tillgången slutar skrivas av. Bokför avskrivning t.o.m. avyttringsmånaden FÖRST för rätt resultat. Kräver behörigheten 'book'. Argument: orgnr, asset_id, disposal_date (YYYY-MM-DD); valfritt proceeds_ore (köpeskilling, 0 = utrangering), proceeds_account (default 1930), gain_account (default 3973), loss_account (default 7973), note, book (default true, sätt false för att bara registrera avyttringen utan verifikat).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bookNo
noteNo
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
asset_idYes
gain_accountNo
loss_accountNo
proceeds_oreNo
disposal_dateYes
proceeds_accountNo

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

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

Beyond the annotations (readOnly false, destructive false, non-idempotent), the description discloses the side effects (writes off acquisition value and accumulated depreciation, computes gain/loss, the asset stops depreciating), the auth requirement ('book' permission), and the book=false escape hatch that registers the disposal without creating a voucher. That is substantial behavioral context the schema does not carry.

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?

Purpose is front-loaded, then prerequisites, then the argument list — appropriate ordering. It is a dense, run-on string, and the argument enumeration is list-like, but for a 9-parameter accounting tool nearly every clause earns its place.

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 complex, non-idempotent mutation with 11% schema coverage and no output schema, the description covers purpose, side effects, mandatory ordering, required permission, and all parameter meanings/defaults. Nothing an agent needs to call it correctly is missing.

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?

Schema coverage is only 11%, so the description must compensate and it does: it enumerates every argument, gives the date format (YYYY-MM-DD), explains proceeds_ore semantics (0 = retirement), and assigns the roles/defaults of proceeds_account (1930), gain_account (3973), loss_account (7973) and book (true, false = register without voucher). Most parameters gain meaning not present in the schema.

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 names a specific verb+resource ('Sälj eller utrangera en anläggningstillgång') and defines the accounting action precisely: writing off acquisition value and accumulated depreciation and reporting gain/loss against book value. This is unmistakably an accounting disposal, clearly distinguishable from the nearby delete_fixed_asset / update_fixed_asset siblings.

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?

It gives a real workflow condition: book depreciation up to and including the disposal month FIRST to get the correct result, and it states the required 'book' permission. It does not explicitly contrast with delete_fixed_asset or spell out when-not to use it, so it stops short of the 5 tier.

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