Skip to main content
Glama

Hämta post från koppling

get_integration_record
Read-onlyIdempotent

Hämtar en post från en koppling med all normaliserad data, t.ex. en Shopify-order, en Stripe-betalning eller en utbetalning. Använd innan du bokför posten; för att hitta poster, använd list_integration_data. Belopp är i öre i källans valuta (Stripe: saldots valuta). En order har totalbelopp, moms per sats (tax_lines, och current_tax_lines efter återbetalningar), frakt, rabatter, återbetalt belopp, leveransland, betalväg och transaktioner. En utbetalning har nettobelopp, summering och alla transaktioner (försäljning, återbetalningar, avgifter, justeringar, tvister) med order och avgift. En Stripe-betalning (charge) har belopp, avgift, netto, återbetalt, kundens land och momsen från Stripe-fakturan (invoice) när betalningen hör till en. En Pleo-utgift (expense) har Pleos kontering per rad (konto, netto, moms), motkonto, leverantör och kvittona som dokument i Kvickd (document_ids, bifoga med attach_underlag). suggested_voucher är ett förslag på verifikat (konton och belopp i öre, debet positivt) med anteckningar om sådant att kontrollera; granska det innan du bokför. För Stripe bokförs avgiften med betalningen (6570 mot fordringskontot 1686, eller 1580 i BAS 2025) och utbetalningen flyttar nettot till banken, så att fordran går mot noll även vid manuella utbetalningar. Med include_raw följer källans oförändrade svar med. Läser bara, ändrar inget.

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

Input Schema

NameRequiredDescriptionDefault
orgnrYesBolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies.
record_idYesPostens id (heltal), t.ex. 42. Hämta med list_integration_data.
include_rawNoTa med källans oförändrade svar (stort). Standard false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description reinforces them ('Läser bara, ändrar inget'). Beyond that it discloses substantive behavior the annotations cannot: amounts are in öre in the source currency, Stripe fees are booked with the payment (6570 against 1686, or 1580 in BAS 2025) so receivables net to zero, and include_raw carries a large unmodified source payload.

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?

Purpose and the sibling routing are front-loaded in the first two sentences, and the per-record-type detail that follows is dense rather than padded. It is long, and the Stripe booking-rule passage arguably exceeds a read tool's remit, but almost every clause adds decision-relevant 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 read tool with three simple parameters and no output schema, the description carries the full burden of explaining what comes back, and it does so per record type (order tax_lines, payout net, charge fee, Pleo expense posting). Nothing an agent needs to call or interpret it is missing.

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 coverage is 100%, so all three parameters are already documented in the schema. The description only restates include_raw's behavior and adds no syntax or format detail beyond what the schema provides, which is the baseline for a fully covered 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 ('Hämtar en post från en koppling') and immediately enumerates the record types it covers (Shopify-order, Stripe-betalning, utbetalning, Pleo-utgift). It also explicitly distinguishes itself from the sibling list_integration_data, so an agent can select it without opening the 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 when-to-use ('Använd innan du bokför posten') and names the alternative for discovery ('för att hitta poster, använd list_integration_data'). It further routes the agent to attach_underlag for receipts and warns to review suggested_voucher before booking, covering both context and exclusions.

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.