Skip to main content
Glama
iflytek

dolphin-mcp-pilot

Official
by iflytek

ds_get_latest_failure_log

Fetch all failed task logs from the last failed workflow instance, combining instance listing, task lookup, and log retrieval with partial diagnostic fallback.

Instructions

One-click fetch of all failed task logs from the latest failed instance.

Combines 3 common troubleshooting steps (list instances → list tasks → fetch logs).

v2.0.10: Added per-step error handling — returns partial diagnostic info even if some steps fail.

Args: project_name: Project name workflow_code: Process-definition code log_limit: Lines of log to fetch per failed task (default 500)

Returns: { "workflow_code": int, "instance_id": int, # Latest failed instance ID "instance_state": "FAILURE", "start_time": str, "failed_tasks": [ # All failed tasks { "task_instance_id": int, "task_name": str, "task_type": str, "start_time": str, "end_time": str, "log_tail": str # Last log_limit lines } ], "errors": [...] # v2.0.10: Per-step error messages "hint": ... }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
log_limitNo
project_nameYes
workflow_codeYes
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses the tool's behavior: it fetches from the latest failed instance, combines three operational steps, and includes per-step error handling ('v2.0.10: Added per-step error handling — returns partial diagnostic info even if some steps fail'). While it does not explicitly state read-only status or discuss limits, the fetch intent and detailed return structure provide strong transparency.

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

Conciseness4/5

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

The description is well-structured with an opening summary, a version note, an Args block, and a Returns block. Every part serves a purpose, though the return schema makes it somewhat lengthy. The layout is front-loaded with the primary function, which aids quick comprehension.

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?

Given no annotations and no output schema, the description is remarkably complete: it states the purpose, the composed steps, error behavior, all parameter meanings, and a detailed return structure. The only minor gap is the lack of explicit guidance on when not to use it, but overall it provides a thorough context for an AI agent.

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?

With schema description coverage at 0%, the description compensates by providing an Args section: 'project_name: Project name', 'workflow_code: Process-definition code', and 'log_limit: Lines of log to fetch per failed task (default 500)'. This adds meaningful semantics beyond the empty schema titles, especially clarifying log_limit's purpose and default value.

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 the tool fetches all failed task logs from the latest failed instance ('One-click fetch of all failed task logs from the latest failed instance.'). This specific verb+resource differentiates it from sibling tools like ds_get_task_log and ds_list_task_instances by combining multiple steps and targeting the latest failure.

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 explains the tool is a shortcut for common troubleshooting ('Combines 3 common troubleshooting steps'), clearly indicating when it is useful. However, it does not explicitly mention when not to use it or suggest alternatives, though the combination of steps implies a quick-retrieval scenario.

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/iflytek/dolphin-mcp-pilot'

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