Skip to main content
Glama

List targets

list_targets
Read-onlyIdempotent

List the targets registered in your workspace, agents and MCP servers (model_type 'MCP Server'), each with its latest run status and endpoint_host. Use a target's model_id with trigger_assessment or list_runs. Also the duplicate check before create_target: same name + endpoint_host in the same environment = the same target (reuse its model_id); if only one of name/host matches, ask your user before creating. Results are capped (default 50, max 200); check the 'truncated' flag. Requires the read scope.

Input Schema

NameRequiredDescriptionDefault
limitNo

Output Schema

NameRequiredDescriptionDefault
countYesNumber of targets returned (after the cap).
targetsNo
truncatedYesTrue when more targets exist than were returned; raise the limit.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / $defs / ApiModelItem / properties / endpoint_host / description
      Previous value: -"Hostname of the configured endpoint — host only, never the full URL (URLs can embed credentials in query strings or paths). None when the target has no agent config or its stored URL has no parseable hostname, so treat a null host as no-match rather than equal to another null. With name and environment, this is the duplicate-check key before registering a new target."New value: +"Hostname of the configured endpoint, an agent's or an MCP server's — host only, never the full URL (URLs can embed credentials in query strings or paths). None when the target has no endpoint or its stored URL has no parseable hostname, so treat a null host as no-match rather than equal to another null. With name and environment, this is the duplicate-check key before registering a new target."
  2. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/closed-world, and the description adds context those cannot convey: a result cap (default 50, max 200), the need to check the 'truncated' flag, and the required read scope. That is exactly the kind of value-add the dimension rewards.

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?

Front-loaded with purpose, then chained use-case and duplicate-check guidance in two dense sentences. Every clause earns its place, though the duplicate-check rule packs three conditions into one long sentence that could be split for readability.

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?

Output schema exists so return values need no explanation, and the description still covers the cap, the truncation flag, auth scope, and downstream tool usage. Nothing an agent needs to call this correctly is missing.

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 0% and the single 'limit' parameter has no description, so the description compensates by stating the default (50) and the maximum (200). It does not explain whether 'truncated' responds to limit specifically, but the essential meaning is conveyed.

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 + resource ('List the targets registered in your workspace') with clarifying scope: agents and MCP servers, including what each row carries (latest run status, endpoint_host). It is immediately distinguishable from create_target, list_runs, and the profile tools in the sibling list.

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?

Explicitly routes to alternatives: use the returned model_id with trigger_assessment or list_runs, and use this as the duplicate check before create_target. It even specifies the matching rule (same name + endpoint_host in same environment = same target; partial match = ask the user), leaving nothing to inference.

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