Skip to main content
Glama

List companies

list_companies
Read-onlyIdempotent

List the companies this connection can work in, each with its company value, tenant and device counts (total, by status, and ACTIVE devices with no check-in for 7 days or more), plus totals across every listed company. Use it to answer questions about the whole fleet across companies, or to find a company, then pass its company value as the company argument of any other tool to work in it. A connection made for one company (or an API key) lists only that company.

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_companies"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageNoZero-based page of the list, sorted by device count (most devices first). Default 0.
sizeNoCompanies per page, 1-200. Default 50.
queryNoOptional. Only companies whose name, company value or tenant contains this text (case-insensitive).

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 declare readOnly, idempotent, non-destructive and closed-world, so the safety profile needs no restating. The description adds genuinely new behavioral context the annotations cannot convey: scope is bounded by the connection's authorization ('a connection made for one company (or an API key) lists only that company') and totals are computed across every listed company.

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?

Three sentences, front-loaded with purpose, then return shape, then usage and scope caveat. Every clause carries information, though the parenthetical on device-count breakdowns is dense enough to slow a first read.

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 no output schema, the description takes on the job of describing the return payload and does so concretely (company value, tenant and device counts, 7-day stale ACTIVE count, totals). Pagination and filtering are covered by the schema, and the connection-scope limitation is disclosed, leaving nothing material 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 coverage is 100%, with page, size and query all documented including sort order and bounds, so the schema carries the parameter burden. The description contributes the higher-level meaning of the `company` identifier as the argument other tools consume, but adds nothing about paging or filter syntax 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?

States a specific verb and resource ('List the companies this connection can work in') and immediately enumerates the payload: `company` value, tenant and device counts by status, stale-ACTIVE count, and cross-company totals. That is enough to distinguish it from siblings like list_policies, count_devices or search_devices 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 Guidelines4/5

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

Gives explicit usage conditions: answer fleet-wide questions across companies, or locate a company and then pass its `company` value as the company argument of any other tool. It does not name a specific alternative for narrower single-company questions, so there is clear context but no explicit exclusion.

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