Skip to main content
Glama

List agents

list_agents
Read-onlyIdempotent

List the workspace's saved agents and their settings.

    Agent records contain IDs, names, instructions, greetings, disclosure settings,
    voice settings, enabled channels, status, duration limits and handover contacts.
    Returns ``items`` or an error.

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
llm_modelNoThe calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / $defs / AgentResponse / properties / integration_tools
      Added value: +{
      +  "description": "Integration tools turned on for this agent.",
      +  "items": {
      +    "type": "string"
      +  },
      +  "title": "Integration Tools",
      +  "type": "array"
      +}
    • changedOutput schema / $defs / AgentResponse / required
      Previous value: -[
      -  "id",
      -  "organization_id",
      -  "name",
      -  "system_prompt",
      -  "first_message",
      -  "recording_enabled",
      -  "ai_disclosure",
      -  "ai_disclosure_line",
      -  "voice_config",
      -  "tools",
      -  "max_duration_seconds",
      -  "handover_max_duration_seconds",
      -  "voice_enabled",
      -  "sms_enabled",
      -  "email_enabled",
      -  "knowledge",
      -  "status",
      -  "handover_contacts",
      -  "http_tools",
      -  "http_tool_secret",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "id",
      +  "organization_id",
      +  "name",
      +  "system_prompt",
      +  "first_message",
      +  "recording_enabled",
      +  "ai_disclosure",
      +  "ai_disclosure_line",
      +  "voice_config",
      +  "tools",
      +  "max_duration_seconds",
      +  "handover_max_duration_seconds",
      +  "voice_enabled",
      +  "sms_enabled",
      +  "email_enabled",
      +  "knowledge",
      +  "integration_tools",
      +  "status",
      +  "handover_contacts",
      +  "http_tools",
      +  "http_tool_secret",
      +  "created_at",
      +  "updated_at"
      +]
  2. Changed2 schema fields changed
    • addedOutput schema / $defs / AgentResponse / properties / knowledge
      Added value: +{
      +  "default": false,
      +  "description": "Whether the agent answers from the workspace's knowledge base.",
      +  "title": "Knowledge",
      +  "type": "boolean"
      +}
    • changedOutput schema / $defs / AgentResponse / required
      Previous value: -[
      -  "id",
      -  "organization_id",
      -  "name",
      -  "system_prompt",
      -  "first_message",
      -  "recording_enabled",
      -  "ai_disclosure",
      -  "ai_disclosure_line",
      -  "voice_config",
      -  "tools",
      -  "max_duration_seconds",
      -  "handover_max_duration_seconds",
      -  "voice_enabled",
      -  "sms_enabled",
      -  "email_enabled",
      -  "status",
      -  "handover_contacts",
      -  "http_tools",
      -  "http_tool_secret",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "id",
      +  "organization_id",
      +  "name",
      +  "system_prompt",
      +  "first_message",
      +  "recording_enabled",
      +  "ai_disclosure",
      +  "ai_disclosure_line",
      +  "voice_config",
      +  "tools",
      +  "max_duration_seconds",
      +  "handover_max_duration_seconds",
      +  "voice_enabled",
      +  "sms_enabled",
      +  "email_enabled",
      +  "knowledge",
      +  "status",
      +  "handover_contacts",
      +  "http_tools",
      +  "http_tool_secret",
      +  "created_at",
      +  "updated_at"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / llm_model / description
      Previous value: -"Model ID of the calling agent. Optional. Recorded for analytics only."New value: +"The calling agent's provider model ID, as shown in the client's model configuration when available. Recorded for analytics."
  4. Changed4 schema fields changed
    • addedOutput schema / $defs
      Added value: +{
      +  "AgentResponse": {
      +    "properties": {
      +      "ai_disclosure": {
      +        "description": "Whether the AI line is spoken first.",
      +        "title": "Ai Disclosure",
      +        "type": "boolean"
      +      },
      +      "ai_disclosure_line": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "This agent's AI line template, or null for the workspace line.",
      +        "title": "Ai Disclosure Line"
      +      },
      +      "created_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Created At",
      +        "type": "string"
      +      },
      +      "email_enabled": {
      +        "default": true,
      +        "description": "Whether the agent answers email.",
      +        "title": "Email Enabled",
      +        "type": "boolean"
      +      },
      +      "first_message": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Opening line, or null to wait.",
      +        "title": "First Message"
      +      },
      +      "handover_contacts": {
      +        "description": "People the agent may hand a live call to.",
      +        "items": {
      +          "$ref": "#/$defs/HandoverContactOut"
      +        },
      +        "title": "Handover Contacts",
      +        "type": "array"
      +      },
      +      "handover_max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Call limit after a handover contact answers; null means 1800 (30 minutes).",
      +        "title": "Handover Max Duration Seconds"
      +      },
      +      "http_tool_secret": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Secret that signs this agent's HTTP tool requests (X-Hail-Signature). Returned only when Hail creates it (the first save with HTTP tools) or rotates it (POST /agents/{id}/rotate-tool-secret). Store it then.",
      +        "title": "Http Tool Secret"
      +      },
      +      "http_tools": {
      +        "description": "Your APIs the agent may call.",
      +        "items": {
      +          "$ref": "#/$defs/HttpToolOut"
      +        },
      +        "title": "Http Tools",
      +        "type": "array"
      +      },
      +      "id": {
      +        "description": "Unique identifier for this agent.",
      +        "format": "uuid",
      +        "title": "Id",
      +        "type": "string"
      +      },
      +      "max_duration_seconds": {
      +        "anyOf": [
      +          {
      +            "type": "integer"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Soft cap per call; null means the workspace limit.",
      +        "title": "Max Duration Seconds"
      +      },
      +      "name": {
      +        "description": "Display name, unique per organization.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "organization_id": {
      +        "description": "Organization that owns this agent.",
      +        "format": "uuid",
      +        "title": "Organization Id",
      +        "type": "string"
      +      },
      +      "recording_enabled": {
      +        "anyOf": [
      +          {
      +            "type": "boolean"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "default": null,
      +        "description": "Null inherits the workspace recording choice; true or false sets recording for this agent's calls, whatever the workspace setting.",
      +        "title": "Recording Enabled"
      +      },
      +      "sms_enabled": {
      +        "description": "Whether the agent answers texts.",
      +        "title": "Sms Enabled",
      +        "type": "boolean"
      +      },
      +      "status": {
      +        "description": "'live' or 'paused'.",
      +        "enum": [
      +          "live",
      +          "paused"
      +        ],
      +        "title": "Status",
      +        "type": "string"
      +      },
      +      "system_prompt": {
      +        "description": "Task instructions.",
      +        "title": "System Prompt",
      +        "type": "string"
      +      },
      +      "tools": {
      +        "anyOf": [
      +          {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Allowed tools; null means all.",
      +        "title": "Tools"
      +      },
      +      "updated_at": {
      +        "description": "ISO 8601 timestamp.",
      +        "format": "date-time",
      +        "title": "Updated At",
      +        "type": "string"
      +      },
      +      "voice_config": {
      +        "additionalProperties": true,
      +        "description": "TTS voice and language settings.",
      +        "title": "Voice Config",
      +        "type": "object"
      +      },
      +      "voice_enabled": {
      +        "description": "Whether the agent answers calls.",
      +        "title": "Voice Enabled",
      +        "type": "boolean"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "organization_id",
      +      "name",
      +      "system_prompt",
      +      "first_message",
      +      "recording_enabled",
      +      "ai_disclosure",
      +      "ai_disclosure_line",
      +      "voice_config",
      +      "tools",
      +      "max_duration_seconds",
      +      "handover_max_duration_seconds",
      +      "voice_enabled",
      +      "sms_enabled",
      +      "email_enabled",
      +      "status",
      +      "handover_contacts",
      +      "http_tools",
      +      "http_tool_secret",
      +      "created_at",
      +      "updated_at"
      +    ],
      +    "title": "AgentResponse",
      +    "type": "object"
      +  },
      +  "HandoverContactOut": {
      +    "properties": {
      +      "contact_id": {
      +        "description": "The person: a contact's id, or `member:<user id>` for a team member.",
      +        "title": "Contact Id",
      +        "type": "string"
      +      },
      +      "name": {
      +        "description": "Name, as the agent says it.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "note": {
      +        "description": "When the agent hands over to this person.",
      +        "title": "Note",
      +        "type": "string"
      +      },
      +      "phone_e164": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Number Hail dials. Null when the contact lost its number; it is then skipped.",
      +        "title": "Phone E164"
      +      }
      +    },
      +    "required": [
      +      "contact_id",
      +      "name",
      +      "phone_e164",
      +      "note"
      +    ],
      +    "title": "HandoverContactOut",
      +    "type": "object"
      +  },
      +  "HttpToolOut": {
      +    "properties": {
      +      "description": {
      +        "description": "What the tool does. Read by the model.",
      +        "title": "Description",
      +        "type": "string"
      +      },
      +      "header_names": {
      +        "description": "Names of the saved static headers. Values are never returned.",
      +        "items": {
      +          "type": "string"
      +        },
      +        "title": "Header Names",
      +        "type": "array"
      +      },
      +      "name": {
      +        "description": "Function name the model calls.",
      +        "title": "Name",
      +        "type": "string"
      +      },
      +      "parameters": {
      +        "additionalProperties": true,
      +        "description": "JSON Schema of the arguments.",
      +        "title": "Parameters",
      +        "type": "object"
      +      },
      +      "timeout_seconds": {
      +        "description": "Seconds Hail waits for the answer.",
      +        "title": "Timeout Seconds",
      +        "type": "integer"
      +      },
      +      "url": {
      +        "description": "HTTPS endpoint Hail POSTs to.",
      +        "title": "Url",
      +        "type": "string"
      +      },
      +      "wait_message": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Sentence said on a call while waiting, or null.",
      +        "title": "Wait Message"
      +      }
      +    },
      +    "required": [
      +      "name",
      +      "description",
      +      "url",
      +      "parameters",
      +      "header_names",
      +      "timeout_seconds",
      +      "wait_message"
      +    ],
      +    "title": "HttpToolOut",
      +    "type": "object"
      +  }
      +}
    • removedOutput schema / additionalProperties
      Removed value: -true
    • addedOutput schema / anyOf
      Added value: +[
      +  {
      +    "properties": {
      +      "items": {
      +        "description": "Agents, newest first.",
      +        "items": {
      +          "$ref": "#/$defs/AgentResponse"
      +        },
      +        "title": "Items",
      +        "type": "array"
      +      }
      +    },
      +    "required": [
      +      "items"
      +    ],
      +    "title": "AgentListResponse",
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "type": "string"
      +      }
      +    },
      +    "required": [
      +      "error"
      +    ],
      +    "type": "object"
      +  }
      +]
    • removedOutput schema / title
      Removed value: -"list_agents_toolDictOutput"
  5. Changed1 schema field changed
    • addedInput schema / properties / llm_model
      Added value: +{
      +  "description": "Model ID of the calling agent. Optional. Recorded for analytics only.",
      +  "type": "string"
      +}
  6. First observed

TDQS

A3.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, non-destructive and closed-world, so the safety profile is covered. The description adds a useful inventory of what an agent record contains and notes the result shape (items or an error), but nothing about pagination, ordering, or volume limits.

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?

Two compact sentences, front-loaded with the core action and followed by the payload inventory. The field enumeration is slightly long but each item tells the agent what it will receive.

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

Completeness4/5

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

For a simple read-only list tool with an output schema and one optional parameter, the description covers what it returns and its scope. Listing record fields is mildly redundant with the output schema but harmless, and no critical behavior is 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?

There is a single optional parameter with 100% schema description coverage, so the schema already explains llm_model and its analytics purpose. The description adds no additional parameter meaning, which is acceptable at full coverage.

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?

The description states a specific verb and resource ("List the workspace's saved agents") and scopes it to the workspace, which is enough to separate it from create_agent/delete_agent. It does not explicitly contrast with get_agent, so sibling differentiation is only implicit.

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

Usage Guidelines3/5

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

Usage is implied by the name and the workspace scope, but there is no explicit statement of when to use this over get_agent (single record) or how to narrow results. No prerequisites or exclusions are given.

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.