Skip to main content
Glama

List knowledge documents

list_knowledge_documents
Read-onlyIdempotent

List the workspace's knowledge documents, newest first, with their status, size and piece count. Returns items and next_cursor.

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

Input Schema

NameRequiredDescriptionDefault
limitNoDocuments per page, 1 to 100.
cursorNo``next_cursor`` from the previous page.
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. Changed4 schema fields changed
    • changedOutput schema / $defs / KnowledgeDocumentResponse / properties / tags / description
      Previous value: -"Assigned tags, ordered by type."New value: +"Assigned tags, ordered by type, then value. A document can have several values of one type."
    • addedOutput schema / $defs / KnowledgeDocumentTagResponse / properties / source
      Added value: +{
      +  "description": "`auto`: found by Hail. `manual`: this type was set in the console or through the API. Hail never changes a type set that way.",
      +  "enum": [
      +    "auto",
      +    "manual"
      +  ],
      +  "title": "Source",
      +  "type": "string"
      +}
    • changedOutput schema / $defs / KnowledgeDocumentTagResponse / properties / type / description
      Previous value: -"Type of tag, for example `brand`."New value: +"Type of tag: `brand` or `serial_id`."
    • changedOutput schema / $defs / KnowledgeDocumentTagResponse / required
      Previous value: -[
      -  "type",
      -  "value"
      -]New value: +[
      +  "type",
      +  "value",
      +  "source"
      +]
  2. Changed2 schema fields changed
    • changedOutput schema / $defs / KnowledgeDocumentResponse / properties / piece_count / description
      Previous value: -"Searchable pieces made from the file (0 until indexed, always 0 for XLSX)."New value: +"Searchable pieces made from the file (0 until indexed)."
    • changedOutput schema / $defs / KnowledgeDocumentResponse / properties / status / description
      Previous value: -"`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. XLSX is ready for viewing only. `failed`: see `error`."New value: +"`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. `failed`: see `error`."
  3. Changed2 schema fields changed
    • changedOutput schema / $defs / KnowledgeDocumentResponse / properties / piece_count / description
      Previous value: -"Searchable pieces made from the file (0 until ready)."New value: +"Searchable pieces made from the file (0 until indexed, always 0 for XLSX)."
    • changedOutput schema / $defs / KnowledgeDocumentResponse / properties / status / description
      Previous value: -"`pending`: waiting to be read. `processing`: being read and indexed. `ready`: agents answer from it. `failed`: see `error`."New value: +"`pending`: waiting to be read. `processing`: being read and indexed. `ready`: available to open, and searchable if indexed. XLSX is ready for viewing only. `failed`: see `error`."
  4. Changed3 schema fields changed
    • addedOutput schema / $defs / KnowledgeDocumentResponse / properties / tags
      Added value: +{
      +  "description": "Assigned tags, ordered by type.",
      +  "items": {
      +    "$ref": "#/$defs/KnowledgeDocumentTagResponse"
      +  },
      +  "title": "Tags",
      +  "type": "array"
      +}
    • changedOutput schema / $defs / KnowledgeDocumentResponse / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "content_type",
      -  "size_bytes",
      -  "status",
      -  "error",
      -  "piece_count",
      -  "created_at",
      -  "updated_at"
      -]New value: +[
      +  "id",
      +  "name",
      +  "content_type",
      +  "size_bytes",
      +  "status",
      +  "error",
      +  "piece_count",
      +  "created_at",
      +  "updated_at",
      +  "tags"
      +]
    • addedOutput schema / $defs / KnowledgeDocumentTagResponse
      Added value: +{
      +  "properties": {
      +    "type": {
      +      "description": "Type of tag, for example `brand`.",
      +      "title": "Type",
      +      "type": "string"
      +    },
      +    "value": {
      +      "description": "The workspace's display spelling of the tag.",
      +      "title": "Value",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "type",
      +    "value"
      +  ],
      +  "title": "KnowledgeDocumentTagResponse",
      +  "type": "object"
      +}
  5. Added

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 and destructiveHint=false, so the safety profile is covered. The description adds the useful ordering trait ('newest first') and the returned keys, but says nothing about permissions, workspace scoping, or pagination termination beyond the cursor name.

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 short sentences, front-loaded with the core action and ordering, and no filler. The stray indentation/line breaks from source formatting make it slightly less clean, but nothing is wasteful.

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 full schema coverage and an output schema that documents the return shape, the description covers the essentials. It could note workspace scoping or pagination termination, but nothing critical 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?

Schema coverage is 100%: limit, cursor and llm_model are all documented, so the baseline is 3. The description adds only the ordering guarantee, not extra meaning for limit bounds or cursor semantics, so it does not exceed the baseline.

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 and resource ('List the workspace's knowledge documents') plus ordering and the fields returned, so it is clearly distinguishable from get_knowledge_document and search_knowledge. It stops short of naming a sibling or scope exclusions, so it lands at 4 rather than 5.

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: 'newest first' and the mention of next_cursor suggest a browsable, paginated listing. There is no explicit when-to-use or when-to-prefer-search_knowledge guidance, so an agent must infer the choice between listing and searching.

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.