Skip to main content
Glama

sfsturbo__CreateLdapConfig

Creates and binds an LDAP configuration to an SFS Turbo file system, enabling user and group authentication and Linux UGO permission checks via your directory server.

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

Input Schema

NameRequiredDescriptionDefault
urlYesldap服务器的url,固定格式为 ldap://{ip_address}:{port_number} 或 ldaps://{ip_address}:{port_number},例如ldap://192.168.xx.xx:60000
schemaNoldap的schema,不填写则默认为RFC2307
vpc_idNo一般不涉及。仅在SFSTurbo支持多VPC的场景下,需要指定LDAP服务器可连通的VPC的id。
base_dnYes数据库中的域
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/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose one meaningful risk — a wrong Schema causes SFS Turbo to fail to resolve users/groups and may block file access — but it omits authentication/permission requirements, whether the call is idempotent or what happens on an already-bound share, and the sentence listing supported Schemas is truncated mid-thought, so the promised detail never arrives.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core action is front-loaded, but the bulk of the text is generic LDAP protocol education that does not help an agent invoke the tool, and the description terminates mid-sentence at '当前SFS Turbo支持的Schema有:' without the list. Verbose filler plus an unfinished sentence is a structural defect.

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?

For a 12-parameter mutation tool with no annotations and no output schema, the description covers the purpose and the key Schema prerequisite but leaves significant gaps: the truncated Schema list, no mention of credential requirements, no conflict/idempotency behavior, and no indication of what is returned after binding.

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%, so the baseline is 3. The description adds only marginal meaning beyond the schema — the LDAP v3 restriction and the importance of matching Schema — while the schema already documents url format, base_dn, user_dn, password, vpc_id, search_timeout, and the allow_local_user enum.

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 opening sentence states a specific verb and resource: create and bind an LDAP configuration for SFS Turbo. The purpose is unambiguous, though the description never explicitly distinguishes this from the sibling UpdateLdapConfig or ShowLdapConfig, leaving the create-vs-update distinction to be inferred from the name.

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?

It gives real prerequisites: an LDAP server must already exist, only LDAP v3 is supported, and the Schema must match the directory server implementation or user/group resolution will fail. However, it never says when to use this rather than UpdateLdapConfig or what to do if a configuration already exists, so the alternative-selection guidance is only implied.

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