Skip to main content
Glama

Förhandsgranska avskrivning

preview_depreciation
Read-onlyIdempotent

Förhandsgranska månadens avskrivning UTAN att bokföra: rader per tillgång (debit-/kreditkonto + belopp), summa, om perioden redan är bokförd (already_posted) och om den går att bokföra nu (can_post, blocked_reason: perioden har inte inträffat, räkenskapsåret finns inte eller perioden är låst). Med asset_id förhandsgranskas bara den tillgången. Kräver 'view'. 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": "preview_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.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/destructiveHint=false, but the description adds valuable response-level context: already_posted, can_post, and the exact blocked_reason cases (period not occurred, fiscal year missing, period locked) plus the 'view' permission requirement. That is real behavioral value beyond the annotations.

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?

A single dense paragraph, front-loaded with the core 'preview without posting' intent followed by return fields, asset_id scoping, permission, and argument list. Slightly packed but every clause carries 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?

No output schema exists, yet the description explains the return shape (rows per asset with debit/credit account and amount, sum, already_posted, can_post, blocked_reason), the permission needed, and the optional scoping param. An agent has everything required to call and interpret it.

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 names all four arguments and gives asset_id meaningful semantics (scopes preview to one asset). However year and month get no format/semantic detail (e.g. month numbering), leaving some parameters documented by name only.

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 (förhandsgranska/preview) plus resource (avskrivning/depreciation) and scope, and the constraint 'UTAN att bokföra' clearly distinguishes it from the sibling post_depreciation. An agent can tell this is a read-only dry-run of depreciation.

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?

Explicitly frames it as a preview without posting and explains the asset_id narrowing case, which implicitly routes the agent away from post_depreciation for a dry run. It does not explicitly name the alternative sibling, so it stops short of a 5.

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.