MCP server for API7 Gateway management, providing tools for IAM policy, role, user, permission policy, monitoring, and risk assessment operations
API7 MCP server has 16 tools with mixed quality. Naming is generally verb-first and clear (get_*, create_*, update_*, delete_*). However, descriptions vary significantly in quality and completeness. Most tools have basic descriptions (50-150 chars), but several lack actionable context. Input schemas are present for all tools but vary in detail, many parameters lack type constraints (enums, ranges). The get_resource tool is particularly problematic: it accepts 16 different resource types via a union of object schemas, making it difficult for LLMs to understand which parameters apply to which resource type. Error handling is minimal, most tools return raw API responses without recovery guidance. No tool annotations (readOnlyHint, destructiveHint) are present despite clear risk classifications in the metadata.
Attach permission policy to role
Scan API7 resources configurations for security, performance, and compliance risks, then generates a structured report with actionable fixes.
Create a permission policy 1. Please read the mcp resource text://policy-resources-actions.json before using this tool 2. Condition resource is only used for label matching, other field matching is not supported 3. Supports using regular expressions in angle brackets. For example:`gateway:<.*>CustomPlugin<.*>` represents all operations related to custom plugins.`<.*>Get<.*>· matches all actions containing 'Get'.
Create a role
Delete a permission policy
Delete a role
get_resource tool uses a union of 16 object schemas (publishedService, serviceTemplate, upstream, etc.) without clear guidance on which parameters apply to which resource type. LLMs cannot easily determine valid parameter combinations.
Many tool descriptions are under 50 characters and lack actionable context. Examples: 'Create a role' (12 chars), 'Delete a role' (13 chars), 'Get user id by username' (23 chars). These do not explain WHEN to use the tool or what it returns.
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) are present in tool definitions, despite clear risk classifications (READ_ONLY, WRITE, DESTRUCTIVE). This prevents LLMs from understanding operation safety and retry semantics.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 49 | 2026-07-28+ | v2 |
Detach permission policy from role
Get permission policy details by ID or list permission policies based on filters
Get permission policy details by role id
Get Prometheus metrics from API7 Gateway, including status code distribution, request failures, total requests, bandwidth usage, latency, connections, and QPS. When providing a resource ID, verify that the resource exists.
Get resource details by ID or list resources based on filters, support resources: publishedService, serviceTemplate, upstream, route, streamRoute, secretProvider, certificate, consumer, credential, gatewayGroup, caCertificate, sni, globalRules, pluginMetadata, gatewayInstance, serviceRegistry, customPlugin
Get role details by ID or list roles based on filters
Get role details by user id
Get user id by username
Update assigned roles for a user
Update a permission policy 1. Please read the mcp resource text://policy-resources-actions.json before using this tool 2. Condition resource is only used for label matching, other field matching is not supported 3. Supports using regular expressions in angle brackets. For example:`gateway:<.*>CustomPlugin<.*>` represents all operations related to custom plugins.`<.*>Get<.*>· matches all actions containing 'Get'.
check_risk tool has empty input schema ({}). LLMs cannot determine what parameters it accepts or whether it requires context (e.g., which gateway group to scan).
Error handling is minimal. The request.ts handler returns raw API error responses without recovery guidance. LLMs receive 'Status: 400, Error: ...' with no hint about what to do next (retry, ask user, call a different tool).