Skip to main content
Glama

Arkivera inkorgspost

attach_inbox_item
Idempotent

Arkiverar en post i inkorgen: bilagorna sparas i dokumentarkivet med vald kategori och posten markeras som hanterad. Använd för avtal, policyer, protokoll och liknande som ska sparas; ska en leverantörsfaktura registreras, använd create_supplier_invoice, och ska ett kvitto kopplas till ett verifikat, använd attach_underlag. Returnerar posten med ny status (filed) och dess bilagor. Bieffekt: posten flyttas från väntande till hanterade. Kräver behörigheten manage_documents.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
categoryNoValfritt: avtal, policy, protokoll, attestordning, leverantorsfaktura eller ovrigt.
inbox_idYesInkorgspostens id (heltal), t.ex. 18. Hämta med list_inbox.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedInput schema / properties / category / description
      Added value: +"Valfritt: avtal, policy, protokoll, attestordning, leverantorsfaktura eller ovrigt."
    • addedInput schema / properties / inbox_id / description
      Added value: +"Inkorgspostens id (heltal), t.ex. 18. Hämta med list_inbox."
  2. 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."
  3. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), and the description still adds substantial extra context: the state side effect (posten flyttas från väntande till hanterade), the required permission (manage_documents), and the returned payload with new status 'filed'. These go well beyond what the annotations disclose.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads the action and its effect, then usage/exclusions, then return, side effect, and permission requirement. Every sentence carries information an agent needs; no filler or repetition.

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 3-parameter mutation with no output schema, the description supplies the missing pieces: the return value shape, the state transition, and the authorization requirement. Combined with complete schema coverage and informative annotations, nothing essential is left unstated.

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 description coverage is 100%, with orgnr, inbox_id, and category all documented, including examples and the list_companies/list_inbox lookup hints. The description reinforces that a category is stored with the attachments but adds no syntax or format detail beyond the schema, so baseline 3 is appropriate.

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 ('Arkiverar en post i inkorgen') plus the concrete effects (bilagorna sparas i dokumentarkivet, posten markeras som hanterad). It explicitly distinguishes itself from close siblings create_supplier_invoice and attach_underlag, so an agent can route correctly without opening schemas.

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 explicit when-to-use ('avtal, policyer, protokoll och liknande som ska sparas') and names two alternatives together with the conditions that select them ('ska en leverantörsfaktura registreras, använd create_supplier_invoice'; 'ska ett kvitto kopplas till ett verifikat, använd attach_underlag'). This is textbook routing guidance.

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