List credit transactions

veryfront__list_credit_transactions

Requires account.billing.read.

Access

No external-service connection is required. Use a Veryfront credential with access to the requested resources.

Call type: Read-only.

Arguments

FieldTypeRequiredDescription and constraints
limitintegerNoMaximum number of transactions to return. Default 50. Default: 50. Minimum: 1. Maximum: 100.
cursorstringNoOpaque pagination cursor returned by a previous response.
activity_typestringNoProvide the activity type. Values: "ai_usage", "run_runtime", "sandbox_runtime", "credit_purchase", "coupon_redemption", "tier_grant"; see schema for the complete list.
sort_bystringNoProvide the sort by. Default: "date". Values: "date", "amount", "activity".
sort_orderstringNoProvide the sort order. Default: "desc". Values: "asc", "desc".

Example request

Send this JSON-RPC request through an initialized MCP client. Replace sample identifiers and values before calling the tool. See MCP client setup.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "veryfront__list_credit_transactions",
    "arguments": {}
  }
}

Result

The published output shape is summarized below. Inspect both the MCP response content and isError when handling a call.

FieldTypeRequiredDescription and constraints
dataobject[]YesPrimary result records returned by the tool.
page_infoobjectYesPagination cursor values for traversing the result set.

Full schemas

json
{
  "type": "object",
  "properties": {
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 100,
      "default": 50,
      "description": "Maximum number of transactions to return. Default 50."
    },
    "cursor": {
      "type": "string",
      "description": "Opaque pagination cursor returned by a previous response."
    },
    "activity_type": {
      "type": "string",
      "enum": [
        "ai_usage",
        "run_runtime",
        "sandbox_runtime",
        "credit_purchase",
        "coupon_redemption",
        "tier_grant",
        "refund",
        "other_usage"
      ],
      "description": "Provide the activity type."
    },
    "sort_by": {
      "type": "string",
      "enum": [
        "date",
        "amount",
        "activity"
      ],
      "default": "date",
      "description": "Provide the sort by."
    },
    "sort_order": {
      "type": "string",
      "enum": [
        "asc",
        "desc"
      ],
      "default": "desc",
      "description": "Provide the sort order."
    }
  },
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Arguments for the list_credit_transactions tool."
}
json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Unique identifier for the returned record."
          },
          "user_id": {
            "type": "string",
            "description": "The user id returned by the tool."
          },
          "type": {
            "type": "string",
            "enum": [
              "tier_grant",
              "purchase",
              "spend",
              "refund"
            ],
            "description": "The type returned by the tool."
          },
          "pool": {
            "type": "string",
            "enum": [
              "tier",
              "purchased"
            ],
            "description": "The pool returned by the tool."
          },
          "amount": {
            "type": "number",
            "description": "The amount returned by the tool."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Human-readable description returned by the tool."
          },
          "metadata": {
            "anyOf": [
              {
                "type": "object",
                "additionalProperties": {
                  "description": "Additional structured values returned by the tool."
                },
                "description": "Additional structured metadata returned by the tool."
              },
              {
                "type": "null",
                "description": "Additional structured metadata returned by the tool."
              }
            ],
            "description": "Additional structured metadata returned by the tool."
          },
          "activity_type": {
            "type": "string",
            "enum": [
              "ai_usage",
              "run_runtime",
              "sandbox_runtime",
              "credit_purchase",
              "coupon_redemption",
              "tier_grant",
              "refund",
              "other_usage"
            ],
            "description": "The activity type returned by the tool."
          },
          "project_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Project identifier associated with this result."
          },
          "project_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The project name returned by the tool."
          },
          "project_slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "The project slug returned by the tool."
          },
          "created_at": {
            "type": "string",
            "description": "Creation timestamp in ISO 8601 format."
          }
        },
        "required": [
          "id",
          "user_id",
          "type",
          "pool",
          "amount",
          "description",
          "metadata",
          "activity_type",
          "created_at"
        ],
        "additionalProperties": false,
        "description": "One data item returned by the tool."
      },
      "description": "Primary result records returned by the tool."
    },
    "page_info": {
      "type": "object",
      "properties": {
        "self": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor that refers to the current page."
        },
        "first": {
          "type": "null",
          "description": "The first returned by the tool."
        },
        "next": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the next page when pagination is available."
        },
        "prev": {
          "type": [
            "string",
            "null"
          ],
          "description": "Cursor for the previous page when pagination is available."
        }
      },
      "required": [
        "self",
        "first",
        "next",
        "prev"
      ],
      "additionalProperties": false,
      "description": "Pagination cursor values for traversing the result set."
    }
  },
  "required": [
    "data",
    "page_info"
  ],
  "additionalProperties": false,
  "$schema": "http://json-schema.org/draft-07/schema#",
  "description": "Structured result returned by the list_credit_transactions tool."
}