MCP server that integrates Dify applications as tools
The server exposes a single dynamically-generated tool ('dynamic') whose schema and parameters are constructed at runtime from Dify app configurations. The tool definition is incomplete: the input schema properties and required fields are marked as 'dynamic - derived from dify_app_params[i]['user_input_form']' and 'dynamic - based on param_info['required']', meaning the actual parameter details are not visible in the source code. The description is generic and does not explain WHAT the tool does, WHEN to use it, or what it returns. No output schema is documented. The tool appears to wrap Dify workflow execution but does not provide the clarity LLMs need for safe selection and invocation. Per HARD SCORING RULES: because the input schema is not explicitly visible (only inferred/dynamic), the schema score is capped at 0; because the description is minimal and lacks actionable detail, the description score is capped at 20. The naming 'dynamic' violates verb-noun convention (should be something like 'run_dify_app' or 'execute_workflow'). Error handling is absent, no recovery guidance, no categorization of failures, no actionable error messages.
Dynamically generated tools from configured Dify applications. Each tool wraps a Dify workflow/app and exposes its inputs as MCP tool parameters.
Input schema is not explicitly defined in source code, schema properties and required fields are marked 'dynamic' and derived at runtime from Dify config. Per HARD SCORING RULES, this tool's schema score MUST be 0. The LLM cannot determine valid parameters at tool-selection time.
Tool name 'dynamic' does not follow verb_noun convention and is ambiguous. Does it run a workflow? Query data? Classify text? Rename to reflect the actual action, e.g., 'run_dify_workflow', 'execute_dify_app', or 'call_dify_agent'.
Tool description is minimal and lacks actionable context. It does not explain what the tool does operationally, when the LLM should call it instead of alternatives, what inputs it requires, or what output it produces.
No output schema is documented. The LLM cannot reason about what fields will be returned or plan downstream tool calls. Document the structure of the response (e.g., status, result, message, conversation_id, etc.).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 23 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 17 | - | v1 |
No error handling or recovery guidance. If a Dify API call fails, there is no categorization (retryable vs. user-fixable vs. fatal) and no actionable error message to guide the LLM's next step.
Parameter descriptions are absent. Each Dify input parameter should have a human-readable description explaining its purpose, valid values, format, and any constraints. Without descriptions, LLMs cannot reason about parameter selection.
No enumeration of valid values for parameters. If a Dify app accepts a 'mode' parameter with fixed options, declare it as an enum in the schema and describe the options. Free-form strings invite hallucinated invalid values.
No pagination or result-limiting guidance documented. If Dify responses can be large, the tool should accept limit/offset parameters and the description should state any capping (e.g., 'Returns up to 100 results').
Tool does not advertise whether it performs write operations. Per the rubric, write/destructive tools should state 'This tool modifies state' in the description so agents know it is not safe to call without confirmation. Risk is marked as WRITE but not communicated in the description.