Skip to main content
Glama

Propose a target allocation change (user approves)

set_target_allocation
Destructive

Propose a change to the user's target allocation - the plan they mean to hold. This REPLACES the whole plan: send every target you want to keep, not just the ones you are changing, because any subject you omit is deleted. Send an empty rows to delete the plan entirely. dim must be "asset" (subjects are tickers) or "sector" (subjects are our sector names - call get_target_allocation first if you are unsure which axis their plan uses). This does NOT take effect when you call it: it returns a link the user has to open and approve themselves, so tell them to open it. Read get_target_allocation first so you are editing their real plan rather than guessing at it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dimYesWhich axis the plan is on. Every subject must belong to this axis.
rowsYesThe COMPLETE plan. Anything omitted is removed.
profileNoWhich portfolio to read, for accounts with more than one: its id, or its name (exact, case-insensitive, e.g. "Trading"). Omit to read this connection's default portfolio; every answer names the portfolio it read in `profile`. An unknown or shared name returns profile_not_found or profile_ambiguous listing the real ones, and list_profiles shows them up front.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / profile / description
      Previous value: -"Which portfolio to read, by name or id, for accounts that have more than one. Omit to use this connection's default. Call list_profiles first if the user names a portfolio you have not seen."New value: +"Which portfolio to read, for accounts with more than one: its id, or its name (exact, case-insensitive, e.g. \"Trading\"). Omit to read this connection's default portfolio; every answer names the portfolio it read in `profile`. An unknown or shared name returns profile_not_found or profile_ambiguous listing the real ones, and list_profiles shows them up front."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description earns full credit by going far beyond them: it discloses that this is a full replacement where omitted subjects are deleted, that an empty array wipes the plan, and — critically — that the call does not take effect but returns a link requiring user approval. That approval gate is a behavioral trait no annotation can express.

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?

The most consequential constraint (full replacement, omissions deleted) is front-loaded in the second sentence, which is the right call for a destructive tool. It loses a point for repetition: the instruction to read get_target_allocation first appears twice, once parenthetically under `dim` and again as the closing sentence.

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?

There is no output schema, and the description compensates by explaining exactly what the call returns (a user-approval link). Safety, replacement semantics, axis selection, deletion behavior, and the follow-up instruction to the user are all covered for a three-parameter destructive mutation.

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 100%, so the baseline is 3; the description earns a bump by adding the empty-`rows` deletion convention, which the schema does not state, and by framing `dim` as an axis decision to verify via get_target_allocation. It leaves the `profile` parameter entirely to the schema, so it doesn't fully compensate on every field.

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?

States a specific action on a specific resource ('propose a change to the user's target allocation') and immediately clarifies the mental model: the plan they mean to hold. It also distinguishes itself from every sibling by explaining the read/write pair with get_target_allocation and by naming the approval-link workflow that no sibling shares.

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 when-to-use guidance ('Read get_target_allocation first'), explains how to choose between the two axes, covers the edge case (empty `rows` deletes the plan entirely), and tells the agent what to do afterwards ('tell them to open it'). Nothing about invocation is left to inference.

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.