Skip to main content
Glama

Importera SIE

import_sie
DestructiveIdempotent

Importera en SIE-fil till huvudboken (kontoplan + IB + alla verifikat). KODEN tolkar och postar; kräver scope book. Argument: orgnr, content_base64; valfritt filename, replace. Filen importeras till angivet bolag även om filens #ORGNR skiljer sig; då följer en upplysning med i orgnr_note (allow_orgnr_mismatch behövs inte längre och ignoreras). Skydd mot dataförlust: finns redan importerad bokföring för årens filen rör avbryts importen (inget raderas) om inte replace=true skickas — då ersätts årets importerade verifikat. Native (appbokförda) verifikat rörs aldrig.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
replaceNo
filenameNoimport.sie
content_base64Yes
allow_orgnr_mismatchNo

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

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

Annotations only say destructiveHint=true/idempotentHint=true; the description goes well beyond them by explaining exactly what is destroyed (the year's imported verifikat replaced under replace=true), that nothing is deleted otherwise, and that native app-booked vouchers are never touched. It also discloses the org-number mismatch behavior and the redundant allow_orgnr_mismatch flag.

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?

Dense but front-loaded: purpose, requirements, arguments, then safety semantics in descending priority. Every sentence carries information, though the argument recap is partly redundant with the schema and the parenthetical about allow_orgnr_mismatch could be tightened.

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 destructive, no-output-schema mutation tool this covers the essentials: auth scope, required inputs, data-loss protection, overwrite semantics, and the orgnr_note follow-up. An agent can call it correctly and safely without further context.

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?

With only 20% schema coverage the description must carry the load, and it does: it names orgnr, content_base64, filename and replace, defines replace's effect, and explicitly states allow_orgnr_mismatch is deprecated and ignored. It does not explain the expected encoding/format of content_base64, but the schema supplies the orgnr format hint.

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 (Importera) and resource (SIE-fil) with precise scope: it populates the general ledger with kontoplan, IB and all vouchers. No sibling tool performs an SIE import, so it is unambiguously distinguishable from the create_/book_/upload_ family.

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 clear prerequisites ('kräver scope book') and the condition that selects the destructive path (import aborts unless replace=true). It does not name an alternative tool, but no sibling offers an equivalent import, so there is nothing to route against. Not quite a 5 because no explicit when-not guidance beyond the replace switch.

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