Skip to main content
Glama
Beankeeper

Beankeeper

Official

investment_sell

Sell shares by FIFO (default), LIFO, or a specific lot and atomically post proceeds, cost-basis relief, and realized gain or loss to the books.

Instructions

Sell shares with FIFO by default, LIFO, or one specific lot; post proceeds, basis relief and realized gain or loss atomically.

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>",
      "symbol": "<symbol>",
      "quantity": "<quantity>",
      "proceeds": "<proceeds>",
      "date": "<date>",
      "asset": "<asset>",
      "cash": "<cash>",
      "gain": "<gain>"
    },
    "name": "investment_sell"
  }
}

Input Schema

NameRequiredDescriptionDefault
lotNo
cashYes
dateYes
gainYes
assetYes
methodNo
symbolYes
companyYes
proceedsYes
quantityYesPositive quantity with up to eight decimal places.
referenceNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, so the description carries real weight and delivers it: it discloses that proceeds, basis relief, and realized gain/loss are posted atomically, which tells the agent the write is all-or-nothing. It omits reversibility (is there an undo?), idempotency of 'reference', and any failure behavior, so it is strong but not complete.

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?

A single front-loaded sentence with the verb first and zero filler; the semicolon cleanly splits selection strategy from posting behavior. Slightly dense jargon ('basis relief') but nothing is wasted.

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

Completeness2/5

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

For a mutation with 11 parameters, 8 required, near-zero schema documentation, and no output schema, one sentence is thin. The agent still cannot tell what the required account-like fields should contain or what the call returns, which is a material gap for a write tool.

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

Parameters2/5

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

Schema description coverage is only 9% across 11 parameters, so the description must compensate and largely fails to. It clarifies 'method' and 'lot' semantics, but 'asset', 'cash', 'gain', 'proceeds', 'date', and 'reference' — several of them required — are left with pattern-only schemas and no explanation of whether they are account handles or amounts.

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?

States a specific verb and resource ('Sell shares') plus the three cost-basis strategies it supports, which cleanly separates it from investment_buy and investment_lots. It stops short of naming or contrasting any sibling explicitly, so the differentiation is inferable rather than stated.

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?

'FIFO by default, LIFO, or one specific lot' gives implicit guidance on which method to choose and implies the 'specific' path needs a lot identifier. However, it never states prerequisites (must lots exist first?), what happens when quantity exceeds holdings, or when to reach for investment_lots instead.

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