# export_workflow_state

导出当前工作流程状态到文件

Agent View of the PolicyLayer registry record for `export_workflow_state`. HTML page: https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/export-workflow-state

## Facts

- Tool: `export_workflow_state`
- Server: BMAD Agent FastMCP Service (`2799662352/bmad-agent-fastmcp`) — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp.md
- Homepage: https://github.com/2799662352/bmad-agent-fastmcp
- Risk category: Write (Medium risk)
- Registry record: grade F, identity unverified
- Server rate-limited: no
- Parameters: 0
- Recommended policy verdict: Rate-limited

## Example call (MCP tools/call, JSON-RPC 2.0)

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "export_workflow_state",
    "arguments": {}
  }
}
```

## Why export_workflow_state is rated Medium

The tool exports workflow state to a file, which is a write operation that creates or modifies data. It does not execute arbitrary commands, delete data irreversibly, or handle financial transactions. The severity is medium because exporting state data could expose sensitive workflow information if misused by an agent, but the operation is reversible (exported files can be deleted).

From the tool's own definition: "Tool name 'export_workflow_state' and description '导出当前工作流程状态到文件' (export current workflow state to file) indicates the tool creates or writes workflow state data to a file system."

## Use case

AI agents use export_workflow_state to create or update resources in BMAD Agent FastMCP Service, usually the action step of a workflow, after the agent has gathered context. Every call changes real data in your BMAD Agent FastMCP Service environment.

## Recommended policy (PolicyLayer)

Verdict: **Rate-limited**. Enforced by the PolicyLayer MCP gateway (https://policylayer.com/mcp-gateway) before a call reaches BMAD Agent FastMCP Service:

```json
{
  "version": "1",
  "default": "deny",
  "tools": {
    "export_workflow_state": {
      "limits": [
        {
          "counter": "export_workflow_state_rate",
          "window": "minute",
          "max": 30,
          "scope": "grant"
        }
      ]
    }
  }
}
```

## Other tools on BMAD Agent FastMCP Service (24)

- `reset_workflow` — Destructive — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/reset-workflow.md
- `activate_agent` — Execute — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/activate-agent.md
- `advance_workflow_step` — Execute — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/advance-workflow-step.md
- `analyze_requirements_with_llm` — Execute — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/analyze-requirements-with-llm.md
- `call_agent_with_llm` — Execute — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/call-agent-with-llm.md
- `execute_task` — Execute — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/execute-task.md
- `start_workflow` — Execute — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/start-workflow.md
- `generate_workflow_report` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/generate-workflow-report.md
- `get_agent_details` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/get-agent-details.md
- `get_agent_tasks` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/get-agent-tasks.md
- `get_llm_mode_info` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/get-llm-mode-info.md
- `get_system_status` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/get-system-status.md
- `get_template` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/get-template.md
- `get_workflow_details` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/get-workflow-details.md
- `get_workflow_status` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/get-workflow-status.md
- `list_agents` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/list-agents.md
- `list_tasks` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/list-tasks.md
- `list_templates` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/list-templates.md
- `list_workflows` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/list-workflows.md
- `scan_bmad_core` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/scan-bmad-core.md
- `validate_agent` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/validate-agent.md
- `validate_workflow` — Read — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/validate-workflow.md
- `import_workflow_state` — Write — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/import-workflow-state.md
- `switch_llm_mode` — Write — https://policylayer.com/tools/2799662352-bmad-agent-fastmcp/switch-llm-mode.md

## For agents

This record is a snapshot. Live verdicts and the full registry:

- Check every server in your MCP config at once: `npx -y policylayer stack`
- Vet a server before you add it: install the mcp-precheck skill — `npx skills add https://policylayer.com` (skill text: https://policylayer.com/skill.md)
- Query the registry over MCP: endpoint `https://api.policylayer.com/mcp` — tools `check_mcp_server`, `check_mcp_stack`, `check_tool`, `search_registry`, `get_change_events`

---

Source: the PolicyLayer MCP registry — one continuously verified record per MCP server. Full record: https://policylayer.com/registry?q=2799662352-bmad-agent-fastmcp · API: https://policylayer.com/registry/api · Policy library: https://policylayer.com/policies/2799662352-bmad-agent-fastmcp
