Skip to main content
Glama

Get Portfolio Health

get_portfolio_health
Read-only

The 3PL portfolio page: inventory value and overstock across clients, each client's health (score, at-risk SKUs, overstock), the largest overstocked positions, upcoming purchase-order arrivals and predicted reorders, and suppliers where several clients' reorders could ship as one run. Optionally narrow to some clients (ids from list_clients). 3PL accounts only; needs an admin.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_portfolio_health"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientIdsNoOptional client ids (GUIDs) to include; omit for every active client.

Output Schema

NameRequiredDescriptionDefault
clientsNo
summaryNo
overstockNo
overstockTotalNo
upcomingEventsNo
upcomingEventsTotalNo
batchingOpportunitiesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already establish that this is a read-only, non-destructive, closed-world operation. The description adds important behavioral context beyond that: admin requirement, 3PL-only applicability, and optional client narrowing. It does not discuss rate limits or response shape, but the output schema covers the latter.

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 description is dense but front-loaded around the portfolio page and its contents, then follows with scope and access constraints. The long enumeration is justified by the breadth of the tool, though it could be slightly more compact.

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?

With annotations covering safety, a fully described single parameter, and an output schema, the description provides enough scope, access, and filtering context for correct invocation. No critical behavioral or parameter information is missing.

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 the clientIds parameter is already documented, including that omitting it means every active client. The description reinforces optional narrowing and points to list_clients for ids, but does not add substantial meaning beyond the schema.

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?

The description states a specific aggregated resource: the 3PL portfolio page, and enumerates exactly what it covers, including client health, overstock, arrivals, reorders, and supplier consolidation. This is clear enough to distinguish it from narrower sibling tools like get_inventory_value or get_stock_health.

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 clear usage constraints: the tool is for 3PL accounts only and requires admin access, and it explains that clientIds can optionally narrow scope using ids from list_clients. It does not explicitly contrast other health or inventory tools, but the conditional scope guidance is strong.

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