Skip to main content
Glama

knowledge_list_chunks

List all chunks for a datasource by providing the knowledge base ID and datasource ID.

Instructions

List all chunks for a datasource

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": {
      "knowledge_id": "<knowledge_id>",
      "datasource_id": "<datasource_id>"
    },
    "name": "knowledge_list_chunks"
  }
}

Input Schema

NameRequiredDescriptionDefault
knowledge_idYesKnowledge base ID or key
datasource_idYesDatasource ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.0.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It implies a read-only bulk listing via 'all', but says nothing about result size limits, whether large datasources are truncated, permission/auth requirements, or the shape of returned chunks. For a bulk list tool with zero annotation coverage, this leaves meaningful behavior undisclosed.

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?

A single short sentence with no waste, and the resource scope is front-loaded. Its brevity is efficient, though it borders on under-specification rather than tight phrasing.

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

Completeness3/5

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

The tool is simple (2 required string params, full schema coverage, no output schema), so the description is minimally adequate. However, the absence of annotations means the description should at least clarify the read-only nature and bulk/pagination behavior, which it does not.

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 both parameters are documented in the schema, so the baseline is 3. The description adds no meaning beyond the schema, such as whether knowledge_id accepts a key versus an ID or how the two IDs relate.

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 all chunks for a datasource'), so the agent knows exactly what it retrieves. The word 'all' hints at a non-paginated variant without naming the sibling knowledge_list_chunks_paginated, 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 Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no mention of the paginated sibling as an alternative. The agent must infer from the word 'all' whether this returns everything or paginates, and when to prefer knowledge_list_chunks_paginated.

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

Deploy Server

Other Tools