Skip to main content
Glama

List AnythingLLM Workspaces

list_workspaces
Read-onlyIdempotent

Retrieves available AnythingLLM workspaces, filtering results to the configured allowlist so assistants can identify valid workspace targets.

Instructions

List workspaces available on the AnythingLLM instance (GET /api/v1/workspaces). When ANYTHINGLLM_ALLOWED_WORKSPACES is set, results are filtered strictly to the configured allowlist.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false, and openWorldHint, so the safety profile is covered. The description adds genuinely non-obvious behavior: when ANYTHINGLLM_ALLOWED_WORKSPACES is configured, results are strictly filtered to that allowlist, which explains otherwise confusing missing workspaces. It stops short of describing return shape or ordering, keeping it 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 sentences, zero filler, and the primary purpose with its endpoint is front-loaded before the conditional filtering caveat. Every clause carries information an agent can act on.

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 zero-parameter read tool with rich annotations, the description covers the essential unknowns: what it returns (workspaces) and how the result set can be silently narrowed by configuration. With no output schema present, a brief note on the returned item shape or on ordering/pagination would make it fully self-sufficient.

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 tool takes zero parameters and schema coverage is 100%, so there is nothing for the description to clarify and the baseline of 4 for parameterless tools is diluted only by the absence of any mention of the (nonexistent) inputs. The description neither adds nor omits parameter meaning because no parameters exist.

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 names a specific verb and resource ('List workspaces available on the AnythingLLM instance') and even pins the underlying endpoint (GET /api/v1/workspaces), which leaves no ambiguity about what the tool returns. It does not explicitly contrast itself with get_workspace (singular lookup) or the other siblings, so sibling differentiation is left to the plural-vs-singular inference rather than stated.

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 guidance on when to call this versus get_workspace for a single workspace, nor any stated prerequisites such as required API keys or connection setup. The allowlist sentence describes a result-filtering condition, not a decision rule for tool selection, so the agent gets no when-to-use/when-not-to-use framing.

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