Skip to main content
Glama
NingFlos

cloudflare-workspace-mcp

by NingFlos

cloudflare_api

Call Cloudflare API directly with method, path, and body. Auto-injects token and account_id; {account_id} placeholders are replaced automatically.

Instructions

Cloudflare REST API 通用网关:用 method/path/body 直接调用 Cloudflare API(自动注入 token/account_id)。path 里可用 {account_id} 占位符(自动替换)。常用路径见工作区 CF_API.md。示例:GET /zones、GET /accounts/{account_id}/workers/scripts、GET /accounts/{account_id}/kv/namespaces、POST /zones。⚠️ 全权限直通,删除类操作需用户明确授权。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bodyNo请求体(POST/PATCH/PUT 时传),如 {"type":"full"}
pathYesAPI 路径,如 /zones、/accounts/{account_id}/workers/scripts、/accounts/{account_id}/dns
methodNoHTTP 方法:GET/POST/PATCH/PUT/DELETE,默认 GET
Behavior4/5

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

With no annotations, the description takes on the full burden of safety disclosure. It warns '全权限直通' (full-permission passthrough) and that delete operations require explicit user authorization, which is critical risk information. It also explains auto-injection of token/account_id and placeholder replacement, adding valuable behavior context beyond a simple call.

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 description is three sentences long, front-loaded with the primary purpose, and includes examples and a safety warning without unnecessary fluff. Every sentence earns its place, making it efficient and scannable.

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 complex raw API gateway, the description covers purpose, usage, parameter semantics, and safety. It lacks explicit mention of the response format or error behavior, which could be inferred from 'REST API', but for an agent to invoke correctly, the provided info is largely sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description goes beyond the schema by explaining that {account_id} placeholders are automatically replaced, and provides concrete path examples for each parameter context. This adds meaningful semantics that the schema alone does not convey.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states it is a 'Cloudflare REST API 通用网关' (universal gateway) that directly calls Cloudflare API via method/path/body, with explicit examples like GET /zones and POST /zones. This distinguishes it from specialized siblings like d1_query and cloudflare_deploy by positioning it as a general-purpose API passthrough.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

The description provides clear context for usage: it is a universal gateway for direct API calls, auto-injects credentials, and points to CF_API.md for common paths. However, it does not explicitly name alternatives or state when not to use this tool, so it falls short of a 5.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NingFlos/cloudflare-workspace-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server