Skip to main content
Glama

Ladda upp SIE-fil

upload_sie

Laddar upp en SIE-fil (SIE4) till utkastet och läser in den i steg 1, som när användaren väljer filen.

Filen ska skickas oförändrad, byte för byte. Bäst: hämta en länk med create_sie_upload, skicka filen dit (curl --upload-file) och anropa sedan upload_sie med upload_id. Små filer kan också skickas som content_base64 av filens exakta innehåll. Skriv aldrig av eller redigera filen: rader som #PROGRAM (bokföringsprogrammet) och #ORGNR måste vara kvar.

Kräver att utkastet är öppet i AI-läge och står på steg 1 (go_to_step 1 annars). Filen läses in med samma kod som vid manuell uppladdning: bolag, räkenskapsår, resultat- och balansräkning, noter och periodiseringsfonder fylls i. Hämta sedan företagsuppgifterna och svara på frågan om första årsredovisningen med press_button, och gå vidare med next_step.

Returnerar snapshot efter inläsningen.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
draft_idYesUtkastets id (draft_id), t.ex. från list_drafts. Utkastet måste tillhöra det anslutna kontot.
filenameNoFilnamn, t.ex. 'bokslut2025.se'.
upload_idNoId från create_sie_upload när filen redan har laddats upp via länken (rekommenderas för filer över cirka 30 kB).
content_textNoBara när användaren själv har klistrat in hela filens text i samtalet. Skriv aldrig av eller återskapa en fil; skicka filen oförändrad via create_sie_upload eller content_base64.
content_base64NoSIE-filens innehåll base64-kodat (rekommenderas, bevarar teckenkodningen). Max 5 MB.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only give the generic safety profile (readOnlyHint=false, destructiveHint=false, non-idempotent), while the description adds real operational context: the file must be transmitted byte-for-byte unmodified, #PROGRAM and #ORGNR lines must survive, and the ingestion fills company, fiscal year, income/balance statements, notes and periodiseringsfonder using the same code path as manual upload. It also states the return ('snapshot efter inläsningen'), which no output schema covers.

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, then transport guidance, then prerequisites/workflow. The 'skriv aldrig av eller redigera filen' warning is repeated in the description and again in the content_text schema field, which is mild redundancy, but every paragraph otherwise carries unique 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?

For a five-parameter, state-dependent ingestion tool with no output schema, the description covers transport method, size limits, encoding, prerequisite draft state, side effects on draft data, and the return value. Nothing an agent needs in order to invoke it correctly is missing.

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 100%, so the baseline is 3, but the description adds selection logic the schema does not: upload_id is recommended for files over ~30 kB, content_text only when the user pasted the text themselves, and content_base64 preserves the character encoding. That is genuine decision support beyond the field descriptions.

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 ('Laddar upp en SIE-fil (SIE4) till utkastet och läser in den i steg 1') and explicitly contrasts itself with the sibling create_sie_upload, which only stages the file. An agent can distinguish it from create_sie_upload and read_draft without opening any schema.

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?

Gives an explicit preferred path (create_sie_upload → curl --upload-file → upload_sie with upload_id) plus a fallback (content_base64 for small files), and names the prerequisite state (draft open in AI mode, on step 1, otherwise go_to_step 1). It also routes the next actions (get company data, press_button, next_step), so the agent knows both when to call it and what to do after.

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.