Skip to main content
Glama

Set an allocation

set_allocation
Destructive

Saves one allocation pick of the customer: keep an item as separate property after the wedding, or share it (allocation_labels of get_alignment give the words of the app). kind asset is an own premarital asset that is not shared (get_alignment step premarital-property). kind marital_property is a category of postmarital property (get_alignment step postmarital-property). After the financial philosophy quiz closed, a pick of kind marital_property needs the step postmarital-property. An allocation question of the financial philosophy quiz gives the items of both kinds. A pick of a postmarital category asks the partner to review it again. Read module_state before the pick. When it is edit_restarts_alignment, tell the customer that the pick restarts the alignment of the couple and can email the partner, and get a yes. Send the module_state that you read as expected_module_state, also when it is open. After an asset, family, or allocation write, tell the customer that the alignment restarted when alignment_restarted is true. Tell the customer that the partner got an email when partner_emailed is true. When a value is false, say nothing about it. When the customer asks about these values, answer from the results of all the writes in this conversation.

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": {
      "kind": "<kind>",
      "id": "<id>",
      "separate_property": "<separate_property>"
    },
    "name": "set_allocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe id of the asset or of the postmarital category.
kindYes
separate_propertyYesTrue to keep the item separate. False to share it.
expected_module_stateNoThe module_state that you read for this kind. When the state is now different, the tool saves nothing and gives the new state.

Output Schema

NameRequiredDescriptionDefault
idYes
kindYes
nameYes
statusYes
app_urlYes
partner_emailedYesTrue when the partner got an email that the alignment restarted.
separate_propertyYes
alignment_restartedYesTrue when the write restarted the alignment of the couple.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag a destructive, non-idempotent write, and the description adds substantial behavior on top: a stale expected_module_state causes nothing to be saved and returns the new state, a pick can restart the couple's alignment and email the partner, and the customer must confirm. It also explains which result flags to surface and which to stay silent about — behavior not derivable from the annotations.

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

Conciseness3/5

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

Purpose is front-loaded, but the body is a dense run-on mixing tool semantics with conversational coaching ('tell the customer...', 'say nothing about it'). Those lines carry behavioral value yet several sentences restate the same conditional-reporting rule, and the final sentence about answering from all writes in the conversation is padding for a tool-selection definition.

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?

It covers the risky paths an agent needs: state mismatch, alignment restart, partner email, and the post-quiz gating. An output schema exists, so the description need not explain return values in full, though it still names the two result flags. Only the exact state-change failure payload and confirm flow mechanics are left implicit.

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 75%, and the description adds real meaning to the kind enum by defining asset as an unshared premarital asset and marital_property as a postmarital property category, plus the rule that expected_module_state must be the state actually read. The separate_property boolean is left to the schema, which already documents it adequately.

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?

The description opens with a concrete verb and resource ('Saves one allocation pick of the customer') and immediately disambiguates the two kinds (asset vs marital_property) with their alignment-step counterparts. It is distinguishable from siblings like add_asset because it is about the allocation answer, not creating the asset itself. The jargon ('allocation pick', 'premarital-property') is domain-laden, but it is explained in situ.

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 explicit preconditions and sequencing: 'Read module_state before the pick', and it must be sent as expected_module_state even when open. It also states a conditional gate — after the quiz closes, a marital_property pick needs the postmarital-property step. It does not name the sibling tools that read state (get_alignment is only cited for label wording), so the routing is clear but not fully enumerated.

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