Skip to main content
Glama

Get AnythingLLM Workspace

get_workspace
Read-onlyIdempotent

Retrieves a workspace's metadata, embedded documents, and threads by slug to inspect its contents in AnythingLLM.

Instructions

Fetch metadata, embedded documents, and threads for a workspace by slug (GET /api/v1/workspace/:slug).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "slug": "<slug>"
    },
    "name": "get_workspace"
  }
}

Input Schema

NameRequiredDescriptionDefault
slugYesUnique workspace slug in AnythingLLM.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, openWorld, and non-destructive, so the safety profile is covered. The description does add useful scope by naming the three things returned (metadata, documents, threads), but says nothing about size limits, pagination of threads/documents, or behavior on an unknown slug.

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?

One sentence, front-loaded with the action and payload description, with the endpoint reference appended as optional detail. Nothing is redundant or padded.

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?

With no output schema, the enumeration of returned content is the only return-value signal and it is present, so an agent knows what a call yields. Minor gaps remain around paging/volume for documents and threads and error behavior, but nothing essential is missing for correct invocation.

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 single parameter is fully documented as 'Unique workspace slug in AnythingLLM'. The description's 'by slug' adds only confirmation that the slug identifies the workspace, providing no syntax or format detail beyond the schema, so the baseline 3 applies.

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?

States a specific verb ('fetch') and resource ('workspace') with the scoping key ('by slug'), and enumerates the payload (metadata, embedded documents, threads), which separates it from list_workspaces and list_documents. It stops short of naming a sibling or stating the contrast explicitly.

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 only implied: the singular 'a workspace by slug' signals a single-record lookup versus the sibling listing tools, and implies the caller must already know the slug. There is no explicit when-to-use/when-not-to-use guidance or mention of an alternative such as list_workspaces for discovery.

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