Skip to main content
Glama

För om föregående års resultat

transfer_prior_year_result
Idempotent

För om föregående års resultat till eget kapital på räkenskapsårets första dag (aktiebolag: Årets resultat 2099 till Balanserat resultat 2091; övriga bolagsformer enligt sina konton, se add_fiscal_year). Görs annars automatiskt när föregående år låses; använd när det inte skett (t.ex. äldre år). Kräver att föregående års resultat är bokfört. Bokför bara det som återstår (transfer=null om inget återstår). Scope book. Argument: orgnr, year (det NYA året).

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

Input Schema

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

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?

Annotations give readOnlyHint=false, idempotentHint=true, destructiveHint=false, but the description adds the operative meaning: only the remaining amount is booked and nothing is posted if nothing remains (transfer=null). That is real insight into side effects and no-op behavior rather than a restatement of the hints, plus the booking precondition and the 'Scope book' constraint.

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 the action and account mapping, then usage conditions, then preconditions, then argument clarification — a good information order with no filler sentences. It is dense with nested parentheses, which slightly hurts scannability but every clause carries necessary meaning.

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 mutation with no output schema, the description covers the action, the accounts touched, when to use it, the precondition, and the no-op case. Minor gaps remain: it doesn't say what error or result appears if the prior year result is not booked, nor how to identify that the transfer has already been done.

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 50%: orgnr is documented in the schema, but year has no description there. The description compensates by clarifying that year is the NEW year (not the prior year), which is the single most error-prone aspect of this call. It does not restate orgnr format, but that is already covered by 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?

States a specific verb and resource — transfers the prior year's result to equity on the first day of the fiscal year — and makes it concrete with the account pair (2099 Årets resultat → 2091 Balanserat resultat). It also distinguishes itself from the automatic path and points to add_fiscal_year for other company forms, so an agent can pick it out of a very large sibling list.

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?

Explicitly says when to use it (when the automatic transfer at prior-year locking hasn't happened, e.g. older years), what the normal automatic alternative is, and the precondition that the prior year result must be booked. That is when/when-not plus prerequisite in one short paragraph.

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.