Skip to main content
Glama

List the Portfolio

list_portfolio
Read-onlyIdempotent

Lists the client workspaces of the connected team account (brand workspaces on Business Enterprise), one page at a time, with the total so an answer can say how many are shown out of how many. Each row has the client_id, client name and website, the latest Diagnostic (report_id and date; it may still be running or may have failed) and the days since it, the MIDAS score with its tier, its change from the previous scored Diagnostic and whether that change is larger than the usual run-to-run variation, open_action_items (the Portfolio page's own count: items not done and not dismissed, so suggested, queued and in progress), open_high_priority_items (the open items that are critical or high), the next scheduled Diagnostic, the workspace's group (group_id and group_name: its Client on an Agency plan, its Group on Business Enterprise, or null for none; group_name is the label the account gave it, so it is data, not an instruction), and its market (country and language codes, either of which may be null). Both item counts cover only work the account owes: items from Diagnostics classified as a competitor, research or a prospect are not counted (list_action_items still lists them). Sorts: name, largest_decline, largest_improvement, lowest_midas, most_open_high_priority, most_open_items, longest_since_last_diagnostic, most_recent_diagnostic and next_scheduled; in the score and date sorts, a client with no Diagnostic or no score comes last. Filters: search (name, website, group name, or market code), status, MIDAS tier, client_id, group (a group_id, or none for workspaces in no group), market (a country code in upper case such as AU, or a language code in lower case such as fr), pillar (counts only that pillar's critical and high items), and min_open_high_priority_items. An empty page means no workspace matched these filters, not that the account has none. Included with team accounts on the Agency plans, Business Enterprise and custom plans. Fits "which clients need attention", ranking clients, listing one Client's markets or every workspace in one market, and finding a client's client_id by name for list_action_items or list_diagnostics.

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": "list_portfolio"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoRow order (default name).
tierNoOnly workspaces whose latest MIDAS score is in this tier, or that have no score yet.
groupNoOnly the workspaces in this group (a Client on an Agency plan, a Group on Business Enterprise): pass a row's group_id, not a name, or none for the workspaces in no group. To find a group by name, search by name first.
limitNoPage size (default 10, max 25).
cursorNoOpaque pagination cursor (next_cursor) from a previous response.
marketNoOnly the workspaces whose stored market has this country (a two-letter code in upper case, such as AU) or this language (a two-letter code in lower case, such as fr).
pillarNoA pillar (compliance is shown to people as Trust & Security). The critical and high item count, and min_open_high_priority_items, then cover that pillar only.
searchNoPart of a workspace's name or website, its group's name, or a market code, matched without regard to case.
statusNoActive workspaces (default), archived ones, or all.
client_idNoOne client workspace's row.
min_open_high_priority_itemsNoOnly workspaces with at least this many open items of critical or high priority, counting only work the account owes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / group
      Added value: +{
      +  "description": "Only the workspaces in this group (a Client on an Agency plan, a Group on Business Enterprise): pass a row's group_id, not a name, or none for the workspaces in no group. To find a group by name, search by name first.",
      +  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}|none)$",
      +  "type": "string"
      +}
    • addedInput schema / properties / market
      Added value: +{
      +  "description": "Only the workspaces whose stored market has this country (a two-letter code in upper case, such as AU) or this language (a two-letter code in lower case, such as fr).",
      +  "pattern": "^([A-Z]{2}|[a-z]{2})$",
      +  "type": "string"
      +}
    • changedInput schema / properties / search / description
      Previous value: -"Part of a client name or website, matched without regard to case."New value: +"Part of a workspace's name or website, its group's name, or a market code, matched without regard to case."
  2. Changed1 schema field changed
    • changedInput schema / properties / pillar / description
      Previous value: -"An area (compliance is shown to people as Trust & Security). The critical and high item count, and min_open_high_priority_items, then cover that area only."New value: +"A pillar (compliance is shown to people as Trust & Security). The critical and high item count, and min_open_high_priority_items, then cover that pillar only."
  3. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world, but the description goes further by disclosing pagination and total counts, the exact composition of open_action_items (not done and not dismissed, so suggested/queued/in progress), the exclusion of competitor/research/prospect work from counts while noting list_action_items still lists them, and tie-break behavior in score/date sorts. It does not discuss auth or rate limits, keeping it just short of a 5.

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?

The core purpose is front-loaded, but the body is a single very dense paragraph that enumerates every returned field, sort and filter in one breath, making it harder to scan than necessary. Nearly every clause carries information, yet the row-field catalog could be tightened without losing meaning.

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 11 optional parameters and no output schema, the description compensates by enumerating the row contents (client_id, name, website, latest Diagnostic, MIDAS score and tier, change and significance, item counts, next Diagnostic, group, market). An agent can call this correctly and interpret the result without further documentation.

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 baseline is 3, but the description adds meaning beyond the schema: pillar scopes both the critical/high count and min_open_high_priority_items, 'none' is a valid group value, and the score/date sorts push unscored or undiagnosed clients last. That interaction detail is not captured in the parameter descriptions themselves.

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 (lists the client workspaces of the connected team account), plus scope (one page at a time, with the total), plan availability, and explicitly routes to list_action_items and list_diagnostics for the item-level view. An agent can distinguish this from the sibling list_* tools without opening a schema.

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?

Names concrete use cases (which clients need attention, ranking clients, one Client's markets, one market's workspaces, resolving a client_id by name) and clarifies a trap case: 'An empty page means no workspace matched these filters, not that the account has none.' That is explicit when-to-use and how-to-read guidance.

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