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. 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. Med include_raw följer källans oförändrade svar med. Läser bara, ändrar inget.

Input Schema

TableJSON 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.4/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive), so 'Läser bara, ändrar inget' is largely redundant. Against that lower bar the description still adds real value: the öre currency convention, the tax_lines/current_tax_lines distinction after refunds, what suggested_voucher contains and that it must be reviewed before booking, and that include_raw pulls in the source's untouched response.

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?

One dense paragraph, but the purpose and the routing rule are front-loaded and every subsequent sentence carries domain payload (field inventories per record type, currency semantics, voucher-review caveat). It is long, yet with no output schema almost nothing here reads as filler.

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?

There is no output schema and no nested objects, so the description rightly carries the full burden of describing return shape, and it does so per record type (order, payout, charge) plus the suggested_voucher structure and sign convention. An agent has enough to call it and interpret the result correctly.

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%, including how to obtain orgnr and record_id, so the schema does the heavy lifting and a baseline 3 applies. The description restates include_raw ('Med include_raw följer källans oförändrade svar med') without adding parameter-level syntax or format detail beyond the 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 then enumerates the concrete record kinds it returns (Shopify-order, Stripe-betalning, utbetalning). It also explicitly disambiguates from the sibling list_integration_data, so an agent can pick between them without opening either 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?

'Använd innan du bokför posten' gives the precise point in the workflow where this tool belongs, and 'för att hitta poster, använd list_integration_data' names the alternative plus the condition that selects it. Nothing about when-to-use is left to inference.

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