Skip to main content
Glama

list_agents

Read-onlyIdempotent

Retrieve tenant agents with filters for status, type, archived, and unpublished state to find and manage AI agents.

Instructions

List tenant agents (filters: status, type, include_archived)

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

Input Schema

NameRequiredDescriptionDefault
typeNoFilter by agent type, such as assistant or chatbot
statusNoFilter by status
include_archivedNoInclude archived agents
include_unpublishedNoInclude agents whose publication is inactive in this tenant. Use this to find and republish an agent removed from the list after unpublishing.

Output Schema

NameRequiredDescriptionDefault
countNo
agentsNo
successNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv2.2.4
    • changedInput schema / properties / include_archived / description
      Previous value: -"Incluir agentes arquivados"New value: +"Include archived agents"
    • changedInput schema / properties / include_unpublished / description
      Previous value: -"Incluir agentes despublicados (publicação inativa no tenant). Use para encontrar um agente que sumiu da lista após unpublish e republicá-lo."New value: +"Include agents whose publication is inactive in this tenant. Use this to find and republish an agent removed from the list after unpublishing."
    • changedInput schema / properties / status / description
      Previous value: -"Filtrar por status"New value: +"Filter by status"
    • changedInput schema / properties / type / description
      Previous value: -"Filtrar por tipo (ex: assistant, chatbot)"New value: +"Filter by agent type, such as assistant or chatbot"
  2. Changed1 schema field changedv2.2.3
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "anyOf": [
      +    {
      +      "required": [
      +        "success",
      +        "agents"
      +      ]
      +    },
      +    {
      +      "properties": {
      +        "error": {
      +          "additionalProperties": true,
      +          "properties": {
      +            "code": {
      +              "type": "string"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "success": {
      +          "const": false
      +        }
      +      },
      +      "required": [
      +        "success",
      +        "error"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "properties": {
      +    "agents": {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "count": {
      +      "type": "integer"
      +    },
      +    "success": {
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  3. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered without the description. The description adds only a tenant-scoping note and filter names, and says nothing about default exclusions (archived/unpublished) or pagination behavior, which are the behaviors that would actually matter here.

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?

A single front-loaded clause with no filler, which is appropriately sized for a simple list operation. It is terse to the point of dropping one parameter and any behavioral note, so it trades completeness for brevity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema and rich read-only annotations carry much of the burden, so the short description is defensible. However, for a tool whose main subtlety is what is excluded by default versus surfaced via include_archived and include_unpublished, the description leaves that unaddressed.

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 baseline is 3. The description restates three of the four parameters (status, type, include_archived) with no added semantics and omits include_unpublished, whose meaning lives entirely in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

"List tenant agents" names a specific verb and resource with a tenant scope, so the agent knows this enumerates agents. It does not distinguish itself from the close sibling list_published_agents, leaving the distinction between all agents and published-only agents unstated.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance, no mention of prerequisites, and no routing to alternatives such as list_published_agents. The parenthetical only names filters, which is usage mechanics rather than guidance, so the agent must infer the context entirely.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools