Skip to main content
Glama
Beankeeper

Beankeeper

Official

project_split

Attribute posted revenue or expense lines to projects in full or by exact decimal splits. Select lines by transaction, reference, or entry; ambiguous accounts use entry IDs.

Instructions

Attribute a posted revenue or expense line to projects. Select the line by transaction_id or reference plus account, or by entry. Pass project for the full line amount, or splits with decimal major-unit amounts. If the account occurs more than once, AMBIGUOUS_ENTRY lists the entry IDs to choose from. Proposal-only access queues the change for approval.

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": {
      "company": "<company>",
      "date": "<date>"
    },
    "name": "project_split"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYes
entryNoJournal entry ID. With account, it chooses among repeated lines of the account.
splitsNoExact shares with a decimal amount in major units. The deprecated `amount_minor` is still accepted.
accountNoAccount of the line. If it occurs more than once, also supply entry.
companyYes
projectNoAttribute the full line amount to this project. Use instead of splits.
billableNoBillable state of the project share. Defaults to internal.
referenceNoReference of the transaction containing the line.
transaction_idNoTransaction containing the line. Supply at most one of `transaction_id` or reference, with account.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed16 schema fields changedv1.2.0
    • addedInput schema / properties / account
      Added value: +{
      +  "description": "Account of the line. If it occurs more than once, also supply entry.",
      +  "pattern": "^[0-9.-]+$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / billable
      Added value: +{
      +  "anyOf": [
      +    {
      +      "description": "Whether this cost or work is intended for a customer invoice.",
      +      "oneOf": [
      +        {
      +          "const": "internal",
      +          "description": "Counts as work or cost without entering a customer invoice.",
      +          "type": "string"
      +        },
      +        {
      +          "const": "billable",
      +          "description": "May be included in an invoice to the project customer.",
      +          "type": "string"
      +        }
      +      ]
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Billable state of the project share. Defaults to internal."
      +}
    • addedInput schema / properties / entry / description
      Added value: +"Journal entry ID. With account, it chooses among repeated lines of the account."
    • changedInput schema / properties / entry / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • addedInput schema / properties / project
      Added value: +{
      +  "description": "Attribute the full line amount to this project. Use instead of splits.",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / reference
      Added value: +{
      +  "description": "Reference of the transaction containing the line.",
      +  "pattern": "\\S",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedInput schema / properties / splits / default
      Added value: +null
    • addedInput schema / properties / splits / description
      Added value: +"Exact shares with a decimal amount in major units. The deprecated `amount_minor` is still accepted."
    • changedInput schema / properties / splits / items / description
      Previous value: -"Requested portion of an expense or revenue entry."New value: +"One requested project share of a posted line."
    • addedInput schema / properties / splits / items / properties / amount
      Added value: +{
      +  "description": "Exact share in decimal major units of the journal currency, such as \"12.50\".",
      +  "pattern": "^[+]?[0-9]+(\\.[0-9]*)?$",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • changedInput schema / properties / splits / items / properties / amount_minor / description
      Previous value: -"Exact amount in the journal currency's minor units."New value: +"Deprecated: exact share in minor units. Use amount instead."
    • changedInput schema / properties / splits / items / properties / amount_minor / type
      Previous value: -"integer"New value: +[
      +  "integer",
      +  "null"
      +]
    • changedInput schema / properties / splits / items / required
      Previous value: -[
      -  "project",
      -  "amount_minor"
      -]New value: +[
      +  "project"
      +]
    • changedInput schema / properties / splits / type
      Previous value: -"array"New value: +[
      +  "array",
      +  "null"
      +]
    • addedInput schema / properties / transaction_id
      Added value: +{
      +  "description": "Transaction containing the line. Supply at most one of `transaction_id` or reference, with account.",
      +  "format": "int64",
      +  "minimum": 1,
      +  "type": [
      +    "integer",
      +    "null"
      +  ]
      +}
    • changedInput schema / required
      Previous value: -[
      -  "company",
      -  "entry",
      -  "date",
      -  "splits"
      -]New value: +[
      +  "company",
      +  "date"
      +]
  2. First observedv1.1.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations only say readOnlyHint=false; the description adds substantive behavior beyond that: the AMBIGUOUS_ENTRY failure mode lists entry IDs to choose from, and proposal-only access queues the change for approval rather than applying it. It does not say whether an existing attribution is replaced or how splits must reconcile to the line amount, so some mutation semantics remain undisclosed.

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

Conciseness5/5

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

Four sentences, each carrying distinct information: what it does, how to select the line, how to size the attribution, and what happens on ambiguity or restricted access. The key selection constraint is front-loaded with no filler.

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 9-parameter mutation tool with no output schema, the description covers selection, amount format, the ambiguous-entry error, and the approval-queue path, which is most of what an agent needs. Remaining gaps are edge-case semantics such as re-attribution behavior and whether split totals must equal the line amount.

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 already 78%, yet the description still adds meaning: project and splits are mutually exclusive alternatives, split amounts are decimal major units, and account must be paired with entry when the account repeats. It does not clarify how the deprecated amount_minor interacts with amount in practice.

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?

The description opens with a specific verb and resource: 'Attribute a posted revenue or expense line to projects.' It scopes the operation to already-posted lines, which separates it from siblings like project_create or project_list that operate on projects rather than journal lines.

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 concrete selection paths (transaction_id or reference plus account, or entry) and the two attribution modes (single project for the full amount vs splits for partial shares), which is real operational guidance. It does not name a sibling tool or state when not to use this one, keeping it short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools