Skip to main content
Glama

manage_dividend_reinvestment

Destructive

Change how one equity holding's dividends are reinvested and taxed. 'create_period', 'update_period' and 'delete_period' manage its DRP/DSSP reinvestment periods (ids from get_dividend_reinvestment): dividends whose eligibility date falls in a period are reinvested into new shares under that plan; dividends outside every period are paid in cash. Periods for one holding must not overlap. update_period is a patch: send only the fields to change, and endDate: null reopens a closed period. create_period is refused when the user has no transactions in that currency, when the issuer does not offer DRP and the holding has no periods yet, or when it asks for DSSP and the issuer does not offer DSSP. 'set_withholding_rate' sets the holding's default foreign withholding tax rate (percent). It cannot reset the holding to the treaty default. Each change recalculates the report. Confirm the holding, dates and plan with the user before calling. New to this session? Call the read_me_first tool for wider context on terminology and tool-usage patterns.

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": {
      "action": "<action>",
      "currencyId": "<currencyId>",
      "context": "<context>",
      "llm_model": "<llm_model>"
    },
    "name": "manage_dividend_reinvestment"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesDividend reinvestment change
schemeNoDRP (dividend reinvestment plan) or DSSP (dividend substitution share plan) (required for create_period; optional for update_period)
contextYesWrite one short, abstract, third-person sentence about the task. Refer to the requester only as "the user". Refer to any selected customer, client profile, business, portfolio, account, or data source only as "the client". Never copy, abbreviate, initialize, quote, or paraphrase a user or client name from the conversation, request, or tool data. Never put a name, initials, label, possessive name, business name, email, account name, or identifier before or after "the user" or "the client". Rewrite every named reference to exactly "the user" or "the client". For example, rewrite "User wants to know the inventory method for the client Alex R" as "The user wants to know the inventory method for the client." Do not include wallet names, wallet addresses, transaction hashes, amounts, balances, prices, dates, tax identifiers, account identifiers, or other personal or financial values. Use only generic data categories such as "transactions", "accounts", "wallets", or "tax settings". If a safe abstract summary is not possible, write exactly "the request contains sensitive details".
endDateNoLast dividend eligibility date the period covers, YYYY-MM-DD. Omit for an open period that is still running. update_period keeps the stored endDate when you omit this; send null to reopen a closed period so later dividends are reinvested
clientIdNoThe client this call acts for — its ID comes from list_clients. Accountants and collaborators: set it on every client-scoped call to operate on that client's data. Only accountant/collaborator accounts have clients; individual accounts omit it.
periodIdNoReinvestment period id from get_dividend_reinvestment (required for update_period and delete_period)
llm_modelYesThe exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess.
startDateNoFirst dividend eligibility date the period covers, YYYY-MM-DD (required for create_period; optional for update_period)
currencyIdYesCurrency id of the equity holding, e.g. "equity:asx:wes" — from search_currencies or get_portfolio
roundingStrategyNoHow the plan rounds allotted shares: ROUND_DOWN, ROUND_NEAREST or ROUND_UP discard leftover cash; ROUND_DOWN_TRACK_BALANCE carries it into the next allotment (required for create_period; optional for update_period)
foreignTaxWithholdingRateNoForeign withholding tax rate as a percentage, 0-100 (required for set_withholding_rate)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already flag openWorldHint=false and destructiveHint=true, so the agent knows this mutates data. The description still adds real behavior the annotations don't: periods for one holding must not overlap, endDate null reopens a closed period, set_withholding_rate cannot reset to the treaty default, and each change recalculates the report. However, it never says what delete_period destroys or whether it is reversible, which matters for a destructive tool.

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?

Purpose is front-loaded, then behavior is grouped per action, so it reads as a structured spec rather than prose. Several sentences are long but all carry actionable constraints; only the closing read_me_first pointer is marginal boilerplate.

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

Completeness5/5

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

For an 11-parameter, four-action mutation tool with no output schema, the description covers eligibility semantics, refusal conditions, patch semantics, recalculation side effects, and a pre-call confirmation step. An agent has what it needs to choose an action and invoke it safely.

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 description coverage is 100%, so scheme, roundingStrategy, startDate/endDate, periodId and foreignTaxWithholdingRate are all documented in the schema itself. The description largely restates those semantics (patch behavior, endDate null reopening) rather than adding syntax or edge-case detail, so the baseline 3 applies.

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?

Opens with a specific verb+resource: 'Change how one equity holding's dividends are reinvested and taxed', then enumerates the four actions the single tool multiplexes (create/update/delete_period, set_withholding_rate). It also names the sibling that supplies period ids (get_dividend_reinvestment), so an agent can distinguish it from the read-side tool without opening the schema.

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

Usage Guidelines5/5

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

Gives explicit conditions and exclusions: create_period is refused when there are no transactions in the currency, when the issuer offers no DRP and no periods exist, or when DSSP is requested but unsupported. It also states update_period is a patch (send only changed fields) and that ids come from get_dividend_reinvestment, plus a pre-call confirmation step.

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