Skip to main content
Glama

list_models

List all xAI models available to your account, including IDs and capabilities. Filter by chat or image to find the right model.

Instructions

List all xAI models available to your account, including their IDs and capabilities. Use this to discover which models you can pass to ask_grok or generate_image. You can also filter by type: 'chat' for language models or 'image' for image generation.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filterNoFilter models by capability. 'chat' returns language/reasoning models, 'image' returns image generation models, 'all' returns everything (default).
Behavior3/5

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

No annotations provided, so description carries the burden. It discloses listing with IDs and capabilities and filtering, but does not mention permissions, rate limits, or side effects. For a read-only listing, this is adequate but not exceptional.

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 sentences, front-loaded with main purpose, no redundant information. Efficient and clear.

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?

Given the simple tool (one optional parameter, no output schema, siblings that are consumers), the description fully covers what an agent needs: purpose, filter usage, and integration with other tools.

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% and the description adds context by linking filter values to model types ('chat' for language models, 'image' for image generation). This adds value beyond the schema description but is minor, so baseline 3 is appropriate.

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?

The description clearly states the tool 'List all xAI models available to your account', specifying the verb 'List' and the resource 'xAI models'. It distinguishes from siblings by mentioning they consume the model IDs (ask_grok, generate_image).

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?

Explicitly states when to use: 'to discover which models you can pass to ask_grok or generate_image'. Provides filter options but does not explicitly state when not to use, though context is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/entropyvortex/askgrokmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server