Skip to main content
Glama

catalog_list_devices

Read-only

List the @Preview(device = ...) ids this server's render lane recognises, with each one's dp size and density. The device override takes one of these ids; an unrecognised name renders the default frame rather than failing, so check here instead of guessing.

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

Input Schema

NameRequiredDescriptionDefault
tokenNoA grant token from poll_access, when you cannot set the X-Compose-Preview-Token header yourself — an MCP client fixes its headers at connect time, so this is how a token approved during this session is used in it. Prefer the header where you control it.

Output Schema

NameRequiredDescriptionDefault
schemaNo
devicesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties
      Added value: +{
      +  "devices": {
      +    "items": {
      +      "properties": {
      +        "density": {
      +          "type": "number"
      +        },
      +        "heightDp": {
      +          "type": "integer"
      +        },
      +        "id": {
      +          "type": "string"
      +        },
      +        "widthDp": {
      +          "type": "integer"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "type": "array"
      +  },
      +  "schema": {
      +    "type": "string"
      +  }
      +}
  2. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true; the description adds substantive behavior beyond that — the listing includes dp size and density, and critically, an unrecognised device name falls back to the default frame rather than erroring, which is a silent-failure trait an agent must know. It does not mention rate limits or caching, keeping it just below 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.

Conciseness5/5

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

Two tight sentences, front-loaded with the resource and its payload, followed by the actionable warning. Nothing is repeated from the schema and no sentence is filler.

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?

For a single-parameter read-only tool with a full output schema and full schema coverage, this covers everything an agent needs: what is listed, what each entry carries, how the values are consumed, and the fallback behavior when they are not used. No gaps remain relative to the tool's complexity.

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?

The single `token` parameter has 100% schema description coverage, which already explains the header-vs-parameter tradeoff in full, so the baseline of 3 applies. The description adds meaning about how the returned ids feed the `device` override elsewhere, but nothing about the token parameter itself.

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?

Specific verb plus resource: 'List the `@Preview(device = ...)` ids this server's render lane recognises, with each one's dp size and density.' It also states what each entry contains, so an agent can distinguish it from sibling catalog_list_* tools and from catalog_render_* 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 Guidelines4/5

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

It gives a clear trigger — call this before setting a `device` override, 'check here instead of guessing' — and explains the cost of skipping it (an unrecognised name silently renders the default frame). It stops short of naming an explicit alternative tool, but the usage context is unambiguous.

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.