Skip to main content
Glama

mcp_add

Register a protocol endpoint dynamically to expose its operations as namespaced MCP tools (protocol.name.operation).

Instructions

Dynamically register a protocol endpoint. Tools appear immediately as namespaced MCP tools (protocol.name.operation).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesLogical name used in tool prefixes and registration id
configYesProtocol-specific config. openapi: { spec, baseUrl?, allowWrite? }. mqtt: { url, allowWrite? }. soap: { wsdl, endpoint?, soapVersion?, allowWrite? }. grpc: { proto | protoInline | reflection:true, target, allowWrite?, ca?|caFile?, cert?|certFile?, key?|keyFile? }. asyncapi: { spec, brokerUrl?, bind?, allowWrite? }. sparkplug: { url, groupId?, edgeNode?, hostId?, encoding?, allowWrite? }. websocket: { url, allowWrite? }. graphql: { url? | simulator:true | wsUrl?, allowWrite? } (subscribe_once = graphql-ws; HTTP is query/mutate). amqp: { url? | simulator:true, queue?, allowWrite? } (publish/rpc 写闸; get/ack/nack). kafka: { brokers, topic?, groupId?, groupInstanceId?, idempotent?, transactionalId? (recorded, unused), allowWrite? }. fix: { sender?, target?, allowWrite? (logon/logout/NOS are writes; encode/decode/status are not) }. opcua: { endpoint, simulator?, allowWrite? } (wait_data_change = memory monitored-item; subscribe_once 仍一次性). modbus: { host, port?, mode?: tcp|rtu, unitId?, simulator?, allowWrite? }. coap: { host, port?, allowWrite? }. nats: { servers | url | simulator:true, allowWrite? } (JetStream consumer/ack/interest 子集). xmlrpc: { url, allowWrite? }. jsonrpc: { url, allowWrite? }. redis: { url, allowWrite? }. smtp: { host, from?, raw?, starttls?, allowWrite? } (send_mail 写闸; noop 只读; raw:true 走 EHLO/MAIL/DATA; 不是 IMAP/POP3). ldap: { url, base?, tls?, starttls?, allowWrite? }. bacnet: { host?, port?, deviceId?, devices?, udp?, allowWrite? }. ethernetip: { host?, port?, tcp?, tags?, allowWrite? } (alias enip; CIP List Identity + local tags). s7: { host?, port?, rack?, slot?, tcp?, allowWrite? } (ISO-TCP/S7comm Read Var subset). mtconnect: { url | fixture | xml }. sql: { driver: sqlite|postgres|mysql|sqlserver|duckdb, filename? | url?, allowWrite? } (prefer specific protocol ids). sqlite: { filename?, native?:true (optional better-sqlite3), allowWrite? }. postgres: { url? | simulator:true | native:true + url (optional pg), allowWrite? }. mysql: { url? | simulator:true | native:true + url (optional mysql2), allowWrite? } (MariaDB compatible; alias mariadb). sqlserver: { url? | simulator:true, allowWrite? }. duckdb: { filename? | simulator:true, allowWrite? }. mongodb: { url? | simulator:true, allowWrite? } (无 url 内存; url 走 OP_MSG hello/find/insert/listCollections; 无 aggregation). elasticsearch: { url? | simulator:true, allowWrite? } (url 走 HTTP _cat/_search/_doc; 写闸). opensearch: { url? | simulator:true, allowWrite? } (ES 兼容 HTTP). clickhouse: { url? | simulator:true, allowWrite? } (HTTP POST query FORMAT JSONEachRow; INSERT/DDL 需 allowWrite). neo4j: { url? | simulator:true, allowWrite? } (http(s) /db/{db}/tx/commit; bolt 仍需注入 connectFn). qdrant: { url? | simulator:true, allowWrite? }. s3: { bucket, endpoint?, allowWrite?, unsigned?, accessKey?, secretKey?, region?, simulator? }. gcs: { bucket, endpoint?, allowWrite?, unsigned?, token?, simulator? }. oss: { bucket, endpoint?, allowWrite?, unsigned?, accessKey?, secretKey?, simulator? }. influx: { bucket, url?, org?, token?, allowWrite? } (alias influxdb; Flux + /api/v2/delete; not InfluxQL). prometheus: { url? | simulator:true, timeoutMs?, allowWrite? } (query/query_range; remote_write protobuf+snappy 需 allowWrite). sqs: { queue, endpoint?, unsigned?, allowWrite? }. pulsar: { topic, serviceUrl? (memory:// | http + unsigned | pulsar:// official LOOKUP | pulsar:// + dialect=e2p1 | pulsar+ssl://), tenant?, namespace?, subscription?, unsigned?, dialect?, allowWrite? }. snmp: { host?, port?, community?, simulator?, allowWrite? } (SNMPv2c Get/GetNext/walk/Set; not v3/USM). webdav: { url?, simulator?, allowWrite? } (PROPFIND/GET/PUT/DELETE/MKCOL). ftp: { host?, port?, user?, password?, simulator?, allowWrite? } (LIST/RETR/STOR/DELE; not SFTP/FTPS). etcd: { url?, simulator?, allowWrite? } (v3 HTTP KV range/put/delete; not watch/lease). imap: { host?, port?, user?, password?, simulator?, allowWrite? } (IMAP4rev1 LIST/SELECT/FETCH/SEARCH; APPEND/STORE/EXPUNGE 需 allowWrite; 不是 SMTP). pop3: { host?, port?, user?, password?, simulator?, allowWrite? } (STAT/LIST/RETR; DELE/RSET 需 allowWrite; 不是 SMTP). consul: { url?, token?, simulator?, allowWrite? } (HTTP KV + catalog/health; 写需 allowWrite; 无 Connect). azureblob: { container, endpoint?, unsigned?, sasToken?, account?, accountKey?, simulator?, allowWrite? } (SharedKey 子集或 SAS 查询串; 写需 allowWrite). sftp: { host?, port?, user?, password?, simulator?, allowWrite? } (SSH-2 SFTP; 不是 FTP). memcached: { host?, port?, simulator?, allowWrite? } (text GET/SET/DELETE/STATS). tftp: { host?, port?, simulator?, allowWrite? } (RFC1350 RRQ/WRQ; 不是 FTP/SFTP). caldav: { url?, simulator?, allowWrite? } (PROPFIND/REPORT time-range + freebusy; iTIP schedule E_UNSUPPORTED). carddav: { url?, simulator?, allowWrite? } (PROPFIND/REPORT addressbook-query/GET/PUT). beanstalkd: { host?, port?, tube?, simulator?, allowWrite? } (put/reserve/delete/stats). zookeeper: { host?, port?, simulator?, allowWrite? } (ruok + get/create + watch_once + multi; ACL/SASL E_UNSUPPORTED). dns: { host?, port?, simulator?, timeoutMs? } (unicast A/AAAA/TXT/PTR; 无 AXFR / 无组播). cassandra: { host? | url? | simulator:true, port?, allowWrite? } (CQL 子集; native v4 STARTUP/QUERY; 写闸). couchdb: { url? | simulator:true, allowWrite? } (_all_dbs / _all_docs / GET / PUT; 写闸). whois: { host? | url? | simulator:true, port? } (TCP 43 只读 query). solr: { url? | simulator:true, allowWrite? } (select/update HTTP; 写闸; 不是 SolrCloud admin). rabbitmq: { url? | simulator:true, vhost?, allowWrite? } (management HTTP 15672; 不是 AMQP 0-9-1). kubernetes: { url? | simulator:true, namespace?, token? } (只读 list/get/logs pods; exec/apply E_UNSUPPORTED). os_info: { } (本机 OS/arch 只读; 热加载,不在 boot 强制挂载). platform_fs: { roots?, maxBytes? } (gated list/read; 默认拒绝 / ; 不可 allowWrite). platform_process: { allowShell?, listFn? } (process_list; shell_exec 闸+stub). platform_service: { allowShell? } (systemd/sc/launchctl best-effort; 缺工具 E_UNSUPPORTED). docker: { url? | simulator:true, allowWrite? } (Engine API 只读 list/inspect/logs; run E_UNSUPPORTED). podman: { url? | simulator:true, allowWrite? } (docker-compat API; 同 docker). journal: { path? | simulator:true, format?: syslog|journal-export|evtx-xml, allowShell? }. smb: { host? | simulator:true, port? } (别名 cifs; 模拟 list/get; live 仅 SMB2 NEGOTIATE). nfs: { host? | simulator:true, port? } (NFSv3 NULL ping; live SHOWMOUNT E_UNSUPPORTED). vault: { url? | simulator:true, token?, allowReadSecrets? } (health/list keys; 读 secret 默认关; 别名 openbao). aws_iam: { simulator:true } (永不打 IMDS; live STS E_UNSUPPORTED). alertmanager: { url? | simulator:true, allowWrite? } (alerts/status 只读; create_silence 写闸). pubsub: { url? | simulator:true, project?, allowWrite? } (GCP Pub/Sub emulator HTTP; publish 写闸). jira: { url? | simulator:true, token? } (myself/search/get_issue 只读). browser: { allowDesktop? } (默认关; 即使打开也不启动 Chrome). partner: { capability_id, operations[], invoke:{kind:http,url} | simulator:true, heartbeatTtlMs?, allowWrite? } (E2MCP Partner; 应用不实现 MCP). feishu: { url? | simulator:true, token?, allowWrite? } (list_chats/search 只读; send_message 写闸). dingtalk: { url? | simulator:true, token?, allowWrite? } (probe 只读; work notice / robot 写闸). wecom: { url? | simulator:true, token?, allowWrite? } (dept/user 只读; send_app_message 写闸; 不是个人微信). slack: { url? | simulator:true, token?, allowWrite? } (conversations.list 只读; post_message 写闸). notion: { url? | simulator:true, token?, allowWrite? } (search/get_page 只读; create_page 写闸). github: { url? | simulator:true, token?, owner?, repo?, allowWrite? } (issues/PRs 只读; create_issue 写闸). mcp_bridge: { mcpServers | path, simulator? } (兜底导入 mcpServers JSON; live spawn E_UNSUPPORTED)
protocolYesAdapter protocol. Built-in: alertmanager, amqp, asyncapi, aws_iam, azureblob, bacnet, beanstalkd, browser, caldav, carddav, cassandra, cifs, clickhouse, coap, consul, couchdb, dingtalk, dns, docker, duckdb, elasticsearch, enip, etcd, ethernetip, feishu, fix, ftp, gcs, github, graphql, grpc, http, imap, influx, influxdb, jira, journal, jsonrpc, k8s, kafka, kubernetes, lark, ldap, mariadb, mcp_bridge, memcached, modbus, mongodb, mqtt, mtconnect, mysql, nats, neo4j, nfs, notion, opcua, openapi, openbao, opensearch, os_info, oss, partner, pg, platform_fs, platform_process, platform_service, podman, pop3, postgres, postgresql, prometheus, pubsub, pulsar, qdrant, rabbitmq, redis, s3, s7, sftp, slack, smb, smtp, snmp, soap, solr, sparkplug, sql, sqlite, sqlserver, sqs, tftp, vault, webdav, websocket, wecom, whois, ws, xmlrpc, zookeeper

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior3/5

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

Annotations provide only readOnlyHint=false, so the description carries most of the burden, and it does add one genuinely useful behavior: registration is dynamic and tools become available immediately under a protocol.name.operation prefix. It omits durability (persisted or session-only), the allowWrite gating model, and what happens for unsupported protocols or configs, which matters for an additive management operation.

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?

Two short sentences, front-loaded with the action and then the observable consequence. Nothing is padding; the naming pattern is the one detail an agent could not get from the schema.

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 enormous config schema is fully self-documenting and there is no output schema, so return values need no explanation. Still, for a state-changing registration tool with minimal annotations, the description leaves out whether registrations survive restarts, default permission posture for writes, and failure modes for unknown protocols.

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 the config property already enumerates every protocol's required shape in exhaustive detail, so the schema does the heavy lifting. The description adds no parameter-level meaning beyond that 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: 'Dynamically register a protocol endpoint', and explains the observable effect (namespaced tools appear as protocol.name.operation). It does not, however, distinguish itself from close siblings like mcp_add_from_discovery or capability_register, which an agent must choose between.

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?

There is no when-to-use guidance and no exclusion of alternatives, despite the sibling list containing mcp_add_from_discovery (adds from discovery), mcp_plan_bridge, and capability_register, all plausible confusions. The agent must infer the selection rule from the names alone.

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