Skip to main content
Glama

Create investment

create_investment

Create a manual investment holding (max 1000 per group; resource_limit when full). Name/code/isin ≤100 chars; money 0…1e6. Bank holdings cannot be created.

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": {
      "budgetId": "<budgetId>",
      "groupId": "<groupId>",
      "name": "<name>",
      "balance": "<balance>",
      "idempotencyKey": "<idempotencyKey>"
    },
    "name": "create_investment"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeNo
isinNo
nameYes
typeNo
balanceYes
groupIdYes
subtypeNo
budgetIdYes
currencyNo
quantityNo
unitValueNo
idempotencyKeyYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.3/5.0
Behavior4/5

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

Annotations already state this is a non-read-only, non-destructive, closed-world write, and the description adds substantive behavior: the hard cap of 1000 per group and the resource_limit failure mode, plus field length and money bounds. Gaps remain around idempotencyKey semantics (replay/conflict behavior) and what the response returns, which matter for a create call.

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?

Three compact clauses, front-loaded with the core purpose and limits, with no filler. The telegraphic style ("money 0…1e6", "resource_limit") is efficient but slightly cryptic for a first read.

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?

A 12-parameter, 5-required mutation with no schema descriptions and no output schema needs far more: required-vs-optional intent, currency/quantity/unitValue relationship, and idempotency behavior are all unaddressed. The limits it does state are helpful but cover a small fraction of what an agent must know.

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 coverage is 0% across 12 parameters, so the description must carry the load. It only constrains name/code/isin length and the money range for balance, leaving budgetId, groupId, type, subtype, currency, quantity, unitValue and idempotencyKey completely unexplained.

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?

Specific verb+resource ("Create a manual investment holding") with the qualifier "manual" that scopes it away from bank-synced holdings. It never names which sibling to use for the plural/batch case (create_investments) or for grouped containers, so sibling differentiation is only partial.

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?

Gives one explicit exclusion ("Bank holdings cannot be created"), which is real when-not guidance, but offers no positive context on when to pick this over create_investments or create_investment_group, and no prerequisites about the group existing first.

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