Skip to main content
Glama
KlausFreiberufler

DevFlow MCP Server

devflow_token_emit

Emit an HMAC-signed discipline-token to prove a skill ran successfully. Use at skill completion to authorize flow state transitions under disciplined policies.

Instructions

Emit a discipline-token for a flow + skill (DF-289 backend, DF-292 gate-check).

A discipline-token is an HMAC-signed proof that a discipline-skill ran successfully. The signed token is returned ONLY once — the backend stores only the hash. Keep the signed token in session memory.

Use this at the END of a discipline-skill run (devflow-tdd, devflow-verification-gate, devflow-adr-compliance, devflow-collision-acknowledged, ...) once all iron-laws of the skill are satisfied.

Pass the token later to flow_update when transitioning under agent_with_discipline policy: flow_update({ flowId, currentState: 'done', selfApproved: true, disciplineTokens: [token] })

The backend verifies all required tokens before allowing the transition. Without an opt-in project (project_configs.allow_agent_self_approval=1) and matching pipeline_steps.required_skills, the gate-check rejects.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
flowIdYesFlow id this token belongs to
evidenceNoStructured evidence, validated against the per-skill schema (DF-417/DF-438; warn-mode today, hard 400 under DEVFLOW_EVIDENCE_STRICT). Required shapes: devflow-verification-gate: { acVerification: [{acId, command, output}] } devflow-plan-reconciliation: { perAcStatus: [{acId, status: done|partial|missing|extra}] } devflow-tdd: { testFirstPerPackage: [{package, redCommit, greenCommit}] } ODER plan-level { testStrategy, checkedAt } devflow-collision-acknowledged: { totals, checkedAt } devflow-knowledge-completer: { gapsResolved: [], checkedAt } (leeres Array ist gültig) devflow-pattern-reuse: { patternsReferenced: [≥1] } devflow-adr-compliance: { filesChanged: [≥1], compliant: true }
skillNameYesDiscipline-skill name (e.g. "devflow-verification-gate")
Behavior5/5

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

Discloses that the signed token is returned only once, backend stores only the hash, and advises to keep it in session memory. Explains verification and rejection conditions. No annotations provided, so description carries full burden and meets it.

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?

Every sentence adds unique value. Starts with the core action, then defines terms, then usage context, then integration steps. No redundant phrases. Appropriately sized for the complexity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers the entire lifecycle: when to emit, what the token is, how to pass it later, and conditions for acceptance. Without output schema, description adequately explains return behavior (returned once). Complete for a tool with this complexity.

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

Parameters5/5

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

Adds significant meaning beyond the 100% schema coverage. Explains evidence shapes per skill in detail, clarifies required fields, and ties parameters to the overall workflow. Schema alone would not convey this level of domain-specific context.

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?

Clearly states the tool emits a discipline-token for a flow and skill, differentiating it from sibling tools like devflow_tokens_list or discipline_tokens_auto_emit. Provides specific details about the token being an HMAC-signed proof and its purpose.

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

Usage Guidelines5/5

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

Explicitly says 'Use this at the END of a discipline-skill run' and lists applicable skills. Describes the subsequent use in flow_update with conditions. Gives clear when-to-use and how-to-use guidance, including prerequisites for the gate-check.

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/KlausFreiberufler/devflow-mcp'

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