Skip to main content
Glama

Tokenbooks - crypto and fiat accounting and payments

Create Portfolio

create_portfolio

Create an accounting portfolio in an existing workspace, optionally choosing jurisdiction and policies; Canada and US profiles require matching currency, entity type, and timezone. If no jurisdiction is selected, Tokenbooks uses generic accounting defaults. Search help for policy choices; workspace creation remains in the Tokenbooks UI.

Input Schema

NameRequiredDescriptionDefault
nameYesPortfolio name
currencyNoFunctional currency (default USD)
workspaceRefYesWorkspace name or slug. Call list_workspaces to resolve it.
legalEntityTypeNoLegal entity classification for an explicit country profile
jurisdictionCodeNoExact assigned ISO country code, or custom. If omitted, resolves Custom regardless of currency
reportingTimezoneNoCanonical IANA reporting timezone (default UTC)
costBasisLotMethodNoLot-matching method for disposals
costBasisPerWalletNoWhether acquisition lots stay scoped to each wallet
stablecoinTreatmentNoStablecoin valuation treatment; this does not change lot tracking
gasFeeAccountingTreatmentNoAccounting treatment for gas spend
financialReportingFrameworkNoFinancial reporting framework (default TAX_ONLY)

Output Schema

NameRequiredDescriptionDefault
nameYes
slugYes
currencyYes
createdAtYes
updatedAtYes
legalEntityTypeNo
hasPostedActivityYes
reportingTimezoneYes
accountingConfigurationYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedOutput schema / $schema
      Removed value: -"https://json-schema.org/draft/2020-12/schema"
  2. Changed2 schema fields changed
    • addedOutput schema / properties / hasPostedActivity
      Added value: +{
      +  "type": "boolean"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "slug",
      -  "name",
      -  "createdAt",
      -  "updatedAt",
      -  "currency",
      -  "accountingConfiguration",
      -  "reportingTimezone"
      -]New value: +[
      +  "slug",
      +  "name",
      +  "createdAt",
      +  "updatedAt",
      +  "currency",
      +  "accountingConfiguration",
      +  "reportingTimezone",
      +  "hasPostedActivity"
      +]
  3. Changed2 schema fields changed
    • changedInput schema / properties / workspaceRef / description
      Previous value: -"Workspace name or slug. Call list_workspaces, or find_workspaces when the user named one, to resolve it."New value: +"Workspace name or slug. Call list_workspaces to resolve it."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "https://json-schema.org/draft/2020-12/schema",
      +  "additionalProperties": false,
      +  "properties": {
      +    "accountingConfiguration": {
      +      "additionalProperties": false,
      +      "properties": {
      +        "baseCurrency": {
      +          "type": "string"
      +        },
      +        "costBasisLotMethod": {
      +          "enum": [
      +            "FIFO",
      +            "LIFO",
      +            "HIFO",
      +            "ACB"
      +          ],
      +          "type": "string"
      +        },
      +        "costBasisPerWallet": {
      +          "type": "boolean"
      +        },
      +        "defiDepositTreatment": {
      +          "enum": [
      +            "TAXABLE_EXCHANGE",
      +            "NON_TAXABLE_RESERVATION"
      +          ],
      +          "type": "string"
      +        },
      +        "financialReportingFramework": {
      +          "default": "TAX_ONLY",
      +          "enum": [
      +            "TAX_ONLY",
      +            "US_GAAP_PRE_2025",
      +            "US_GAAP_ASC350_60",
      +            "IFRS_IAS38",
      +            "IFRS_IAS38_REVAL",
      +            "IFRS_IAS2_LCNRV",
      +            "IFRS_IAS2_BROKER_TRADER_FVLCTS",
      +            "ASPE",
      +            "FRS_102",
      +            "AASB_138",
      +            "OTHER"
      +          ],
      +          "type": "string"
      +        },
      +        "gasFeeAccountingTreatment": {
      +          "enum": [
      +            "DISPOSAL_AND_COST_BASIS",
      +            "EXPENSE_ONLY"
      +          ],
      +          "type": "string"
      +        },
      +        "isPurchaseTaxable": {
      +          "type": "boolean"
      +        },
      +        "jurisdictionCode": {
      +          "type": "string"
      +        },
      +        "separateIncomeExpenseLines": {
      +          "type": "boolean"
      +        },
      +        "stablecoinTreatment": {
      +          "enum": [
      +            "BASE",
      +            "ASSET"
      +          ],
      +          "type": "string"
      +        }
      +      },
      +      "required": [
      +        "gasFeeAccountingTreatment",
      +        "isPurchaseTaxable",
      +        "costBasisLotMethod",
      +        "baseCurrency",
      +        "jurisdictionCode",
      +        "stablecoinTreatment",
      +        "costBasisPerWallet",
      +        "defiDepositTreatment",
      +        "separateIncomeExpenseLines",
      +        "financialReportingFramework"
      +      ],
      +      "type": "object"
      +    },
      +    "createdAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    },
      +    "currency": {
      +      "type": "string"
      +    },
      +    "legalEntityType": {
      +      "enum": [
      +        "BUSINESS",
      +        "CORPORATION",
      +        "INDIVIDUAL",
      +        "TRUST",
      +        "PARTNERSHIP"
      +      ],
      +      "type": "string"
      +    },
      +    "name": {
      +      "type": "string"
      +    },
      +    "reportingTimezone": {
      +      "type": "string"
      +    },
      +    "slug": {
      +      "type": "string"
      +    },
      +    "updatedAt": {
      +      "format": "date-time",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "slug",
      +    "name",
      +    "createdAt",
      +    "updatedAt",
      +    "currency",
      +    "accountingConfiguration",
      +    "reportingTimezone"
      +  ],
      +  "type": "object"
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / workspaceRef / description
      Added value: +"Workspace name or slug. Call list_workspaces, or find_workspaces when the user named one, to resolve it."
  5. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=false, destructiveHint=false, and openWorldHint=true, so the safety profile is covered. The description adds genuinely new behavioral context: the default-fallback when jurisdiction is omitted and the cross-field validation constraints for Canada/US profiles. It does not describe failure behavior on mismatched inputs, keeping it below a 5.

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?

Four compact sentences, front-loaded with the core action, then constraints, then defaults, then pointers. Every clause carries information. It is dense rather than wasteful, though the final clause about workspace creation is slightly tangential to invocation.

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 an 11-parameter, non-idempotent write tool this covers the crucial invocation context: workspace prerequisite, jurisdictional consistency requirements, default behavior, and where to find policy guidance. An output schema exists, so return values need no explanation, and the remaining gap is minor (no permissions/error details).

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

Parameters4/5

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

Schema coverage is 100%, so parameter-level meaning is already well documented and the baseline would be 3. The description adds real value beyond the schema by stating cross-parameter constraints (jurisdiction-currency-entity-type-timezone must match for Canada/US) and default resolution semantics for jurisdictionCode, which the per-parameter descriptions do not express.

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 ('Create an accounting portfolio in an existing workspace') and scopes it precisely. It also draws a boundary against sibling operations by noting 'workspace creation remains in the Tokenbooks UI', so an agent can distinguish this from workspace-level tools without opening schemas.

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

Usage Guidelines4/5

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

It gives prerequisites (existing workspace), conditional rules (Canada/US profiles require matching currency, entity type, timezone), and a fallback behavior (generic defaults when no jurisdiction is chosen). It also routes the agent to get_help for policy choices and states what is out of scope (workspace creation). No explicit alternative sibling tool is named, but none exists, so this is close to complete.

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