Skip to main content
Glama

Set holding categories

set_category
Destructive

Set the investing category (the Holdings Category column, separate from market sector) of one or many holdings in one call — broker-imported or hand-added alike. Empty or Other clears it. Each name resolves exactly, else as a unique partial match; an unknown or ambiguous name, or a category already bound to another market sector, refuses the whole call with nothing changed. The result lists changed (from → to) and unchanged holdings.

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": {
      "symbols": "<symbols>",
      "category": "<category>"
    },
    "name": "set_category"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbolsYesThe holdings to recategorise, each by its ticker or name as the holdings list shows it — every one of them in ONE call.
categoryYes
dashboardIdNoWhich live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected.
idempotencyKeyNo
expectedRevisionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the destructive/not-idempotent annotations by disclosing the all-or-nothing failure model ('refuses the whole call with nothing changed'), the resolution fallback that can reject a call, the clearing behavior, and the shape of the result (changed from → to, plus unchanged). That is exactly the context needed to invoke a destructive mutation safely.

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

Conciseness5/5

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

Four dense sentences with zero filler: purpose first, then clearing semantics, then resolution and failure behavior, then the return summary. Every clause carries operational information.

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?

Strong coverage for a destructive mutation with no output schema: input semantics, failure atomicity, and result contents are all described. The only notable gap is that the live-dashboard control/approval prerequisite lives solely in the dashboardId schema text rather than the description.

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 only 40%, so the description must compensate, and it does for the two hardest parameters: the meaning of an empty/Other category (clears it) and how names resolve (exact, else unique partial; ambiguous or sector-conflicting names refuse). It says nothing about idempotencyKey or expectedRevision, which remain undocumented in both schema and description.

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 verb and resource ('Set the investing category ... of one or many holdings') and immediately scopes it against a confusable concept ('the Holdings Category column, separate from market sector'), which is exactly the distinction needed given siblings like set_sector_target and set_asset_target. An agent can distinguish this from sector-target tools 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 Guidelines4/5

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

Clear usage context: works for 'broker-imported or hand-added alike' and instructs batching ('in one call'), and the sector distinction helps an agent pick the right tool. It does not name a sibling alternative or state when-not-to-use, so it stops short of a 5.

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.