dingdawg-governance

v2.1.6
io.github.dingdawg/dingdawg-governance Checked 4 days ago Published 6 months ago

Universal governance layer for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

govern_action

Govern any AI agent action. Performs capability check + policy evaluation + generates a governance receipt. Returns a receipt proving the action was governed. When API key is set, uses cloud API with local fallback.

ParameterTypeDescription
action_description *stringHuman-readable description of what the agent is about to do
action_type *stringType of action (e.g., 'send_email', 'make_purchase', 'modify_data', 'api_call')
agent_id *stringIdentifier for the AI agent performing the action
contextobjectAdditional context key-value pairs for policy evaluation
risk_tierstringSelf-assessed risk level of this action
target_resourcestringThe resource being acted upon (e.g., 'user_database', 'email_server', 'payment_api')

get_verified_badge

Returns the 'Powered by DingDawg Verified' badge payload for a governed action receipt. Creators can opt-in to emit this badge in agent output — every governed action receipt includes a verifiable badge URL, turning governed agents into DingDawg marketing channels. Pass the receipt_id returned by govern_action.

ParameterTypeDescription
receipt_id *stringReceipt ID returned by a govern_action call (e.g. 'gov_abc123_def456')

audit_trail

Get the governance audit trail. Returns governance receipts from local storage or cloud API. Free to use.

ParameterTypeDescription
agent_idstringAgent ID to get all governed actions for
limitnumberMaximum number of records to return (default 10)
receipt_idstringReceipt ID from a govern_action call
time_rangestringTime range for audit trail lookup

compliance_check

Quick compliance check against common AI governance frameworks. Free tier: 10 checks per day. Evaluates against EU AI Act, Colorado AI Act — Revised (SB26-189 / ADMT, eff. Jan 1 2027), NIST AI RMF, and ISO 42001.

ParameterTypeDescription
system_description *stringDescribe your AI system: what it does, data sources, decision scope
deployment_stagestringCurrent deployment stage
frameworkstringFramework to check against (default: all)

meter_llm_call

Track the cost of an LLM API call and enforce budget limits. Call this after every LLM API response. Returns real-time cost, cumulative spend, and budget status. Free to use — no API key required.

ParameterTypeDescription
agent_id *stringUnique identifier for the agent making the LLM call
completion_tokens *integerNumber of output/completion tokens generated
model *stringModel name (e.g. 'gpt-4o', 'claude-sonnet-4-6', 'gemini-2.0-flash')
prompt_tokens *integerNumber of input/prompt tokens used
provider *stringLLM provider
task_idstringOptional task identifier for grouping related calls

set_llm_budget

Set a USD spend limit for an agent. The meter will return budget_status: 'warning' at the threshold and 'exceeded' when the limit is hit. Limits reset daily or monthly.

ParameterTypeDescription
agent_id *stringAgent ID to set budget for
limit_usd *numberMaximum USD spend allowed in the period (e.g. 10.00 for $10/day)
period *stringReset cadence
warning_thresholdnumberFraction of limit that triggers 'warning' status (default: 0.8 = 80%)

get_spend_report

Get LLM spend breakdown by agent, model, and provider. Filter by agent and date range. Returns total cost, call count, and per-model breakdown.

ParameterTypeDescription
agent_idstringFilter by agent ID (omit for all agents)
from_datestringISO 8601 start date (e.g. '2026-04-01T00:00:00Z')
to_datestringISO 8601 end date (e.g. '2026-04-30T23:59:59Z')