Skip to main content
Glama

Lägg in transaktioner från en tjänst via AI:n

add_integration_records
Idempotent

Lägger in transaktioner som du hämtat från en tjänst du är kopplad till i Claude eller ChatGPT (t.ex. PayPal, Shopify, Wix, Squarespace, Pleo eller TikTok Ads) i Kvickds integrationshubb, så att de syns under Integrationer och kan bokföras eller kopplas till verifikat, precis som data från Stripe eller Google Ads. Använd för transaktioner, inte för fakturor och kvitton (lägg dem som underlag med upload_underlag) och inte för en tjänst som bolaget redan har kopplat direkt i Kvickd (se list_integration_data), så att samma transaktion inte kommer in två gånger. Inget bokförs: posterna väntar som ohanterade (se list_integration_data) och märks med tjänsten och AI:n de kom via. Lägg bara in det du faktiskt läst hos tjänsten, med tjänstens egna id och belopp; gissa aldrig. Samma external_id igen uppdaterar posten i stället för att skapa en dubblett. Argument: orgnr, source (tjänstens namn, t.ex. PayPal), records: lista (högst 200) av {external_id, date (ÅÅÅÅ-MM-DD), amount_ore (heltal i öre, positivt för pengar in och negativt för pengar ut), kind (sale, expense, payout, fee, spend eller transaction), currency (standard SEK), counterparty, description, vat_ore, vat_rate, reference}; valfritt via (din AI, t.ex. Claude eller ChatGPT). Returnerar antal nya, ändrade och oförändrade poster. Kräver behörigheten upload.

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>",
      "source": "<source>",
      "records": "<records>"
    },
    "name": "add_integration_records"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, idempotentHint=true and destructiveHint=false; the description goes well beyond them by explaining that nothing is booked, that entries land as unhandled and tagged with the source service and AI, that the 'upload' permission is required, that a repeated external_id updates rather than duplicates, and that it returns counts of new/changed/unchanged records. It also warns not to guess and caps records at 200.

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?

Content is front-loaded and essentially every sentence carries unique information; there is no filler. However, it is delivered as one long run-on paragraph that mixes purpose, exclusions, behavior, parameters and return values, which makes the critical exclusions and the amount sign convention harder to scan than a short bulleted structure would.

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 4-parameter mutation tool with a mostly undocumented schema and no output schema, the description covers purpose, exclusions, side effects (unbooked, tagged), idempotency mechanics, permission requirement, nested record fields and return value. There is no output schema, so explicitly stating the returned counts is exactly the right compensation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 25% (only orgnr is documented), so the description must carry the load — and it does, spelling out source, via, the 200-record cap, and every record field: external_id, date format ÅÅÅÅ-MM-DD, amount_ore as an integer in öre with sign convention (positive = money in, negative = money out), the full kind enum (sale, expense, payout, fee, spend, transaction), currency default SEK, counterpary/description/vat_ore/vat_rate/reference. This supplies semantics the schema entirely lacks, notably the undocumented kind enum and the sign convention for amounts.

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 concrete verb and resource ('Lägger in transaktioner... i Kvickds integrationshubb') plus the exact input provenance (data fetched from a connected service via Claude/ChatGPT, with named examples like PayPal, Shopify, Pleo). It immediately distinguishes itself from upload_underlag and list_integration_data in the same breath, so an agent can route 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 explicit when-to-use ('transaktioner'), explicit when-not ('inte för fakturor och kvitton' → use upload_underlag; 'inte för en tjänst som bolaget redan har kopplat direkt' → see list_integration_data) and even states the reason (avoiding duplicate transactions). This is the strongest form of routing guidance: alternatives are named together with the condition that selects them.

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.