Skip to main content
Glama

Get transactions

mofi_transactions_get
Read-onlyIdempotent

Find an owned transaction by transactionId, list all, or AND untagged where predicates. Legacy id lookups and tagged selectors remain accepted; continue legacy cursors with the same selector. Search matches description or merchant substrings. Periods require startDate, endDate and timezone. Pages contain 1-1000 rows (default 500); totalCount counts all matches. Money uses { amount, currency }: exact decimal magnitude plus CREDIT/DEBIT direction. operationType is raw; category carries provider and normalized values. counterparty is the Pix or TED recipient or payer parsed from the description; ownTransfer marks money moved to or from an account in the owner's own name. Unknown/generic PURCHASE codes add no classification; known category labels can. Conflicting signals have no economic type; mixed vehicle tax/fee labels are not guessed. statementId links are included. Mofi stores POSTED when status is missing. For the same user, connection, and account, reimports with the same provider ID update the existing row; no prior versions are retained. Distinct IDs are not linked or deduplicated as pending-to-posted transitions. Pass page.nextCursor unchanged.

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": {
      "mode": "<mode>"
    },
    "name": "mofi_transactions_get"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoLegacy alias for transactionId.
modeYesfindOne requires transactionId (legacy id accepted instead); query requires where; findAll accepts page.
pageNoKeyset page.
whereNoRequired for query. Untagged AND predicates or legacy tagged selectors.
transactionIdNofindOne UUID; replaces legacy id.

Output Schema

NameRequiredDescriptionDefault
dataNo
metaNo
modeNo
pageNo
errorNoTyped error (code, message, retryable, details); set when isError is true.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / where / anyOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "accountId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "category": {
      -        "description": "Imported provider category label, exact match.",
      -        "maxLength": 120,
      -        "type": "string"
      -      },
      -      "connectionId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "currencyCode": {
      -        "pattern": "^[A-Z]{3}$",
      -        "type": "string"
      -      },
      -      "direction": {
      -        "enum": [
      -          "CREDIT",
      -          "DEBIT"
      -        ],
      -        "type": "string"
      -      },
      -      "endDate": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "merchantName": {
      -        "maxLength": 120,
      -        "type": "string"
      -      },
      -      "normalizedCode": {
      -        "description": "Normalized category code from mofi_classifications_get. For spending-summary override:<code> keys use normalizedCode; for value:<label> use category.",
      -        "enum": [
      -          "accommodation",
      -          "bank_fee",
      -          "card_payment",
      -          "card_purchase",
      -          "digital_services",
      -          "expense",
      -          "fine",
      -          "food_delivery",
      -          "fuel",
      -          "groceries",
      -          "investment",
      -          "refund",
      -          "tax",
      -          "transfer",
      -          "travel",
      -          "uncategorized"
      -        ],
      -        "type": "string"
      -      },
      -      "search": {
      -        "description": "Case-insensitive substring of the description or merchant name.",
      -        "maxLength": 80,
      -        "minLength": 2,
      -        "type": "string"
      -      },
      -      "startDate": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "statementId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "status": {
      -        "enum": [
      -          "PENDING",
      -          "POSTED",
      -          "CANCELLED"
      -        ],
      -        "type": "string"
      -      },
      -      "timezone": {
      -        "description": "IANA timezone used as reporting context for the supplied offset timestamps",
      -        "maxLength": 100,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "filters",
      -        "type": "string"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter transactions by accountId.",
      -    "properties": {
      -      "accountId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "account",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "accountId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter transactions by connectionId.",
      -    "properties": {
      -      "connectionId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "connection",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "connectionId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter transactions linked to statementId.",
      -    "properties": {
      -      "statementId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "statement",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "statementId"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter by an inclusive timestamp range.",
      -    "properties": {
      -      "endDate": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "startDate": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "timezone": {
      -        "description": "IANA timezone used as reporting context for the supplied offset timestamps",
      -        "maxLength": 100,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "period",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "startDate",
      -      "endDate",
      -      "timezone"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter one account by an inclusive range.",
      -    "properties": {
      -      "accountId": {
      -        "format": "uuid",
      -        "type": "string"
      -      },
      -      "endDate": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "startDate": {
      -        "format": "date-time",
      -        "type": "string"
      -      },
      -      "timezone": {
      -        "description": "IANA timezone used as reporting context for the supplied offset timestamps",
      -        "maxLength": 100,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "accountPeriod",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "accountId",
      -      "startDate",
      -      "endDate",
      -      "timezone"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Match the imported merchant name exactly.",
      -    "properties": {
      -      "merchantName": {
      -        "maxLength": 120,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "merchant",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "merchantName"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Match the imported category label exactly.",
      -    "properties": {
      -      "category": {
      -        "maxLength": 120,
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "category",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "category"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter by the public transaction status.",
      -    "properties": {
      -      "status": {
      -        "enum": [
      -          "PENDING",
      -          "POSTED",
      -          "CANCELLED"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "status",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "status"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter by credit or debit direction.",
      -    "properties": {
      -      "direction": {
      -        "enum": [
      -          "CREDIT",
      -          "DEBIT"
      -        ],
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "direction",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "direction"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "description": "Filter by an ISO 4217 currency code.",
      -    "properties": {
      -      "currencyCode": {
      -        "pattern": "^[A-Z]{3}$",
      -        "type": "string"
      -      },
      -      "type": {
      -        "const": "currency",
      -        "type": "string"
      -      }
      -    },
      -    "required": [
      -      "type",
      -      "currencyCode"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "accountId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "category": {
      +        "description": "Imported provider category label, exact match.",
      +        "maxLength": 120,
      +        "type": "string"
      +      },
      +      "connectionId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "counterparty": {
      +        "description": "Pix or TED recipient or payer name; every word of 3+ letters must appear in the description.",
      +        "maxLength": 120,
      +        "minLength": 2,
      +        "type": "string"
      +      },
      +      "currencyCode": {
      +        "pattern": "^[A-Z]{3}$",
      +        "type": "string"
      +      },
      +      "direction": {
      +        "enum": [
      +          "CREDIT",
      +          "DEBIT"
      +        ],
      +        "type": "string"
      +      },
      +      "endDate": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "merchantName": {
      +        "maxLength": 120,
      +        "type": "string"
      +      },
      +      "normalizedCode": {
      +        "description": "Normalized category code from mofi_classifications_get. For spending-summary override:<code> keys use normalizedCode; for value:<label> use category.",
      +        "enum": [
      +          "accommodation",
      +          "bank_fee",
      +          "card_payment",
      +          "card_purchase",
      +          "digital_services",
      +          "expense",
      +          "fine",
      +          "food_delivery",
      +          "fuel",
      +          "groceries",
      +          "investment",
      +          "refund",
      +          "tax",
      +          "transfer",
      +          "travel",
      +          "uncategorized"
      +        ],
      +        "type": "string"
      +      },
      +      "search": {
      +        "description": "Case-insensitive substring of the description or merchant name.",
      +        "maxLength": 80,
      +        "minLength": 2,
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "statementId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "status": {
      +        "enum": [
      +          "PENDING",
      +          "POSTED",
      +          "CANCELLED"
      +        ],
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "description": "IANA timezone used as reporting context for the supplied offset timestamps",
      +        "maxLength": 100,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "filters",
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter transactions by accountId.",
      +    "properties": {
      +      "accountId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "account",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "accountId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter transactions by connectionId.",
      +    "properties": {
      +      "connectionId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "connection",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "connectionId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter transactions linked to statementId.",
      +    "properties": {
      +      "statementId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "statement",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "statementId"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter by an inclusive timestamp range.",
      +    "properties": {
      +      "endDate": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "description": "IANA timezone used as reporting context for the supplied offset timestamps",
      +        "maxLength": 100,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "period",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "startDate",
      +      "endDate",
      +      "timezone"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter one account by an inclusive range.",
      +    "properties": {
      +      "accountId": {
      +        "format": "uuid",
      +        "type": "string"
      +      },
      +      "endDate": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "startDate": {
      +        "format": "date-time",
      +        "type": "string"
      +      },
      +      "timezone": {
      +        "description": "IANA timezone used as reporting context for the supplied offset timestamps",
      +        "maxLength": 100,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "accountPeriod",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "accountId",
      +      "startDate",
      +      "endDate",
      +      "timezone"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Match the imported merchant name exactly.",
      +    "properties": {
      +      "merchantName": {
      +        "maxLength": 120,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "merchant",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "merchantName"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Match the imported category label exactly.",
      +    "properties": {
      +      "category": {
      +        "maxLength": 120,
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "category",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "category"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter by the public transaction status.",
      +    "properties": {
      +      "status": {
      +        "enum": [
      +          "PENDING",
      +          "POSTED",
      +          "CANCELLED"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "status",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "status"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter by credit or debit direction.",
      +    "properties": {
      +      "direction": {
      +        "enum": [
      +          "CREDIT",
      +          "DEBIT"
      +        ],
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "direction",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "direction"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "description": "Filter by an ISO 4217 currency code.",
      +    "properties": {
      +      "currencyCode": {
      +        "pattern": "^[A-Z]{3}$",
      +        "type": "string"
      +      },
      +      "type": {
      +        "const": "currency",
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "type",
      +      "currencyCode"
      +    ],
      +    "type": "object"
      +  }
      +]
    • addedOutput schema / $defs / Record / properties / counterparty
      Added value: +{
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / $defs / Record / properties / ownTransfer
      Added value: +{
      +  "type": "boolean"
      +}
  2. Changed4 schema fields changed
    • removedOutput schema / $defs / Record / properties / category / properties / providerCode
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / $defs / Record / properties / providerCode
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / $defs / Record / properties / providerId
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / $defs / Record / properties / providerTransactionId
      Removed value: -{
      -  "type": "string"
      -}
  3. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, yet the description adds substantial context: reimports with the same provider ID overwrite the row with no prior versions, distinct IDs are not linked as pending-to-posted transitions, Mofi stores POSTED when status is absent, and unknown/generic PURCHASE codes add no classification. These are non-obvious data-lifecycle facts an agent could not infer from annotations alone.

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

Conciseness3/5

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

The mode enumeration is front-loaded, which is good, but the rest is a long undifferentiated run of short sentences covering pagination, money shape, classification rules, and dedup behavior with no grouping or headings. Several clauses merely repeat the schema (page size 1-1000, cursor handling), diluting the genuinely new content.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a multi-mode tool with a nested union 'where' schema and an output schema, the description covers the operational essentials: mode selection, period requirements, pagination and cursor continuation, and the meaning of key fields like counterparty and ownTransfer. Gaps are minor, mostly the absence of routing guidance to related summary/reporting tools.

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 every parameter already carries its own description and the baseline of 3 applies. The description reinforces a few semantics ('Search matches description or merchant substrings', 'Periods require startDate, endDate and timezone', 'Pass page.nextCursor unchanged'), but these largely restate schema text rather than adding new meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The opening clause gives specific verbs and the resource: find one owned transaction by transactionId, list all, or query with AND-ed 'where' predicates, matching the three mode enum values. It stops short of naming any sibling (e.g. mofi_spending_get) as an alternative, and phrasing like 'AND untagged where predicates' is jargon-heavy, but the core operation is identifiable.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies which mode to pick ('Find an owned transaction by transactionId, list all...') and covers legacy compatibility ('Legacy id lookups and tagged selectors remain accepted'), but the binding constraint (findOne requires transactionId, query requires where, findAll accepts page) lives only in the schema. There is no explicit when-to-use guidance versus aggregation siblings like mofi_spending_get or mofi_statements_get.

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.