Skip to main content
Glama

Registrera anläggningstillgång

create_fixed_asset

Registrera en anläggningstillgång (K2, linjär helavskrivning). useful_life_months måste vara ≥ 1 utom för mark (asset_type LAND) som inte skrivs av. Med book_acquisition=true bokförs anskaffningen direkt (D tillgångskonto / K funding_account, default 1930). Kräver behörigheten 'book'. Argument: orgnr, name, acquired (YYYY-MM-DD), cost_ore, useful_life_months, gl_account (tillgångskonto 1000-1299, BAS 2026: t.ex. 1220 inventarier, 1224 datorer eller 1226 bilar), accum_depr_account (ackumulerade avskrivningar, kontot i samma grupp som slutar på 9, t.ex. 1229), depr_expense_account (avskrivningskostnad 7800-7899, t.ex. 7832); valfritt residual_ore, asset_type (EQUIPMENT|BUILDING|LAND|OTHER), notes, book_acquisition, funding_account, depreciation_start (YYYY-MM-DD, om avskrivning börjar senare än acquired), opening_accumulated_ore (ingående ack. avskrivning vid import), document_id (kopplat underlag/inköpsfaktura).

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>",
      "name": "<name>",
      "acquired": "<acquired>",
      "cost_ore": "<cost_ore>",
      "useful_life_months": "<useful_life_months>",
      "gl_account": "<gl_account>",
      "accum_depr_account": "<accum_depr_account>",
      "depr_expense_account": "<depr_expense_account>"
    },
    "name": "create_fixed_asset"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
notesNo
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
acquiredYes
cost_oreYes
asset_typeNoEQUIPMENT
gl_accountYes
document_idNo
residual_oreNo
funding_accountNo
book_acquisitionNo
accum_depr_accountYes
depreciation_startNo
useful_life_monthsYes
depr_expense_accountYes
opening_accumulated_oreNo

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

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

Beyond the annotations (readOnly=false, idempotent=false), the description discloses the authorization requirement ('book') and the concrete side effect of book_acquisition (D asset account / K funding_account, default 1930) – exactly the kind of behavior an agent needs before a mutation. It does not warn that non-idempotent re-calls will create duplicate assets or describe failure behavior, so not 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?

Front-loaded with purpose and the critical depreciation rule before the parameter enumeration, with zero filler sentences. The downside is that it is one dense paragraph with the parameter list crammed into a semicolon chain, which is harder to scan than a structured list would be.

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 16-parameter mutation with no output schema, the description covers accounting semantics, account validation rules, permission, defaults and the booking side effect. It is silent on what is returned (asset id? created depreciation plan?) and on how depreciation_start/residual interact with the generated schedule, which leaves a small gap for a bookkeeping tool.

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 6%, so the description must carry the load, and it does: all 16 parameters are addressed, with account ranges and BAS examples for gl_account (1000-1299, e.g. 1220/1224/1226), the 'same group ending in 9' rule for accum_depr_account, the 7800-7899 range for depr_expense_account, and date formats for acquired/depreciation_start. This adds meaning an agent could not derive from the bare integer/string 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?

States a specific verb and resource ('Registrera en anläggningstillgång') plus the accounting model (K2, linjär helavskrivning), which immediately tells an agent this creates a new asset rather than updating, disposing of, or listing one. The sibling names update_fixed_asset, delete_fixed_asset, dispose_fixed_asset and list_fixed_assets are clearly distinguishable from this creation verb.

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 concrete preconditions: the 'book' permission is required, useful_life_months must be ≥ 1 except for LAND, and book_acquisition=true triggers immediate booking. It does not explicitly say when NOT to use it (e.g. use update_fixed_asset for later edits, or import_sie for migrations), so it stops short of full alternative routing.

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.