Skip to main content
Glama
ragflow-kb-mcp
by feci

ragflow_get_commit

Read-only

Retrieves a specific commit along with the list of file changes it introduced, so you can inspect what was modified in a dataset or workspace folder.

Instructions

Get one commit with the list of file changes it made.

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": {
      "commit_id": "<commit_id>"
    },
    "name": "ragflow_get_commit"
  }
}

Input Schema

NameRequiredDescriptionDefault
commit_idYesCommit ID
dataset_idNoDataset ID; resolves to the dataset's folder. Use instead of workspace_id.
workspace_idNoWorkspace = a folder in the file manager; pass its folder ID. Use dataset_id instead to address the folder that holds a dataset's files.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is fully covered. The description contributes only that the response includes the file changes made by the commit; it says nothing about permissions, error behavior for unknown commit IDs, or dataset/workspace resolution semantics, though the output schema removes the need to describe return shape.

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?

A single front-loaded sentence with no filler. The key content — one commit plus its file changes — is delivered immediately, and nothing is wasted.

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 low-complexity read-only lookup with an output schema and fully documented parameters, the description covers what the tool returns at a high level. The only meaningful gap is the absence of routing guidance versus sibling commit tools, which is a usage concern rather than a completeness one.

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 description coverage is 100% and every parameter carries its own description, including the dataset_id vs workspace_id disambiguation, so the structured data does the heavy lifting. The tool description itself adds no parameter meaning beyond the schema, making the baseline 3 appropriate.

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 opens with a specific verb and resource ('Get one commit') and adds scope ('with the list of file changes it made'), which separates it from ragflow_list_commits. It does not explicitly name the sibling it differs from, but the singular 'one commit' framing is clear enough to distinguish it.

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: an agent can infer this is the single-commit lookup when it already has a commit_id. There is no explicit when-to-use / when-not-to-use guidance against ragflow_list_commits, ragflow_list_commit_files, or ragflow_get_commit_tree, which are the closest alternatives.

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