Skip to main content
Glama

sfsturbo__UpdateLdapConfig

Updates LDAP settings for an SFS Turbo file system so users and groups can be authenticated against an LDAP server for Linux UGO permission checks.

Instructions

[SFSTURBO] 修改ldap配置。LDAP(Lightweight Directory Access Protocol),中文名称轻量级目录访问协议,是对目录服务器(Directory Server)进行访问、控制的一种标准协议。LDAP服务器可以集中式地管理用户和群组的归属关系,通过绑定LDAP服务器,当一个用户访问您的文件系统的文件时,SFS Turbo将会访问您的LDAP服务器以进行用户身份验证,并且获取用户和群组的归属关系,从而进行Linux标准的文件UGO权限的检查。要使用此功能,首先您需要搭建好LDAP服务器(当前SFS Turbo仅支持LDAP v3协议),常见提供LDAP协议访问的目录服务器实现有OpenLdap(Linux),Active Directory(Windows)等,不同目录服务器的实现细节有所差别,绑定时需要指定对应的Schema(Schema配置错误将会导致SFS Turbo无法正确获取用户以及群组信息,可能导致无权限访问文件系统内文件),当前SFS Turbo支持的Schema有:

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": {
      "project_id": "<project_id>",
      "share_id": "<share_id>"
    },
    "name": "sfsturbo__UpdateLdapConfig"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
schemaNoldap的schema,不填写则默认为RFC2307
vpc_idNovpc的id
base_dnNo数据库中的域
user_dnNo用户区别名
passwordNoldap认证密码
share_idYes文件系统id
backup_urlNoldap备节点的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
project_idYes项目ID
search_timeoutNoldap搜索的超时时间,单位为秒。不填写则默认为3秒
allow_local_userNo访问ldap服务器失败后是否允许使用本地用户鉴权
filter_conditionNo过滤条件。保留字段,暂不支持

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It does add genuinely useful behavioral context: only LDAP v3 is supported, and a wrong schema will break user/group resolution and can cause access-denied on files. However, for a mutation over 12 parameters it says nothing about whether the update replaces or merges existing settings, whether authentication is disrupted mid-change, or what happens to credentials.

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?

The purpose is front-loaded in the first clause. The bulk is protocol background rather than tool behavior, and the text is truncated mid-sentence ("当前SFS Turbo支持的Schema有:"), which wastes space without adding value.

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

Completeness2/5

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

For a 12-parameter mutation with no annotations and no output schema, the description should cover permissions, merge-versus-overwrite semantics, and credential handling, but none of these are addressed. The text is also cut off before it finishes listing supported schemas, leaving a dangling, incomplete statement.

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%, so the schema already documents every parameter, including url format, base_dn, and the schema default of RFC2307. The description adds only the LDAP v3 constraint and the consequence of a bad schema, which is marginal enrichment rather than parameter-level clarification.

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 first sentence gives a specific verb and resource ("修改ldap配置", i.e. modify LDAP config), which clearly distinguishes this tool from the Create/Delete/Show LDAP siblings. The distinction is only by verb, with no explicit contrast statement, so it falls short of a 5.

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?

The description never says when to use this versus sfsturbo__CreateLdapConfig or sfsturbo__DeleteLdapConfig, nor does it state prerequisites such as an existing LDAP configuration or required permissions. All of the remaining prose is a general LDAP tutorial, not routing guidance.

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