promptspeak-mcp-server
v0.3.0Pre-execution governance for AI agents.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
ps_validate
Validate a PromptSpeak frame. Returns validation report with errors, warnings, and suggestions.
| Parameter | Type | Description |
|---|---|---|
frame * | string | The PromptSpeak frame to validate (e.g., "⊕◊▶β") |
parentFrame | string | Optional parent frame for chain validation |
strict | boolean | If true, warnings also cause validation failure |
validationLevel | string | Level of validation to perform |
ps_validate_batch
Validate multiple frames at once. Useful for validating delegation chains.
| Parameter | Type | Description |
|---|---|---|
frames * | array | |
stopOnFirstError | boolean | |
strict | boolean | |
validationLevel | string |
ps_execute
Execute an action under PromptSpeak frame governance. The gatekeeper validates and enforces constraints.
| Parameter | Type | Description |
|---|---|---|
action * | object | |
agentId * | string | Unique identifier for the executing agent |
frame * | string | The governing PromptSpeak frame |
parentFrame | string | Parent frame if part of delegation chain |
ps_execute_dry_run
Check if an action would succeed without executing. Returns decision and coverage analysis.
| Parameter | Type | Description |
|---|---|---|
action * | object | |
agentId * | string | |
frame * | string | |
parentFrame | string |
ps_execute_batch
Execute multiple actions under a single frame. Supports sequential or parallel execution with optional stop-on-failure.
| Parameter | Type | Description |
|---|---|---|
actions * | array | Array of actions to execute under the frame |
agentId * | string | Unique identifier for the executing agent |
frame * | string | The governing PromptSpeak frame for all actions |
parallel | boolean | Execute all actions in parallel instead of sequentially |
parentFrame | string | Parent frame if part of delegation chain |
stopOnFirstFailure | boolean | Stop executing remaining actions on first failure (sequential only) |
ps_delegate
Delegate a task from parent agent to child agent. Enforces inheritance rules and constraint propagation.
| Parameter | Type | Description |
|---|---|---|
childAgentId * | string | |
childFrame * | string | |
parentAgentId * | string | |
parentFrame * | string | |
inheritanceMode | string | |
task | object |
ps_delegate_revoke
Revoke an active delegation.
| Parameter | Type | Description |
|---|---|---|
delegationId * | string | |
parentAgentId * | string | |
reason | string |
ps_delegate_list
List delegations for an agent.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | |
role | string | |
status | string |
ps_state_get
Get current state of an agent including drift metrics and circuit breaker status.
| Parameter | Type | Description |
|---|---|---|
agentId * | string |
ps_state_system
Get overall system state including all agents, operations, and drift alerts.
ps_state_reset
Reset agent state. Can reset circuit breaker, drift metrics, and/or baseline.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | |
reason * | string | |
resetBaseline | boolean | |
resetCircuitBreaker | boolean | |
resetDriftMetrics | boolean |
ps_state_recalibrate
Recalibrate agent drift baseline. Optionally provide a new baseline configuration.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | Agent to recalibrate |
newBaseline | object | Optional new baseline configuration. If omitted, recalibrates from current state. |
ps_state_halt
Immediately halt an agent by opening its circuit breaker.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | |
reason * | string |
ps_state_resume
Resume a halted agent.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | |
reason * | string | |
resetMetrics | boolean |
ps_state_drift_history
Get drift history for an agent.
| Parameter | Type | Description |
|---|---|---|
agentId * | string | |
limit | number | |
since | number | Unix timestamp |
ps_config_set
Register a new policy overlay.
| Parameter | Type | Description |
|---|---|---|
overlay * | object | |
overlayId * | string |
ps_config_activate
Activate a registered policy overlay.
| Parameter | Type | Description |
|---|---|---|
overlayId * | string |
ps_config_get
Get current configuration including active overlay and thresholds.
ps_config_export
Export current configuration for backup.
ps_config_import
Import configuration from backup.
| Parameter | Type | Description |
|---|---|---|
data * | string | |
expectedChecksum | string |
ps_confidence_set
Set a confidence threshold. This is the hidden knob for operators.
| Parameter | Type | Description |
|---|---|---|
threshold * | string | |
value * | number |
ps_confidence_get
Get all confidence thresholds.
ps_confidence_bulk_set
Set multiple confidence thresholds at once.
| Parameter | Type | Description |
|---|---|---|
thresholds * | object |
ps_feature_set
Set a feature flag.
| Parameter | Type | Description |
|---|---|---|
enabled * | boolean | |
flag * | string |
ps_feature_get
Get all feature flags.
ps_audit_get
Get audit log entries.
| Parameter | Type | Description |
|---|---|---|
action | string | |
limit | number | |
since | number |
ps_hold_list
List all pending holds awaiting human approval. Returns holds for risky operations that were blocked pending review.
| Parameter | Type | Description |
|---|---|---|
agentId | string | Optional: Filter holds by agent ID |
includeExpired | boolean | Include expired holds in the list (default: false) |
ps_hold_approve
Approve a held execution request. The operation will proceed with optional modifications.
| Parameter | Type | Description |
|---|---|---|
holdId * | string | The hold ID to approve |
executeNow | boolean | Execute immediately after approval (default: true) |
modifiedArgs | object | Optional: Modified arguments to use instead of original |
modifiedFrame | string | Optional: Modified frame to use instead of original |
reason | string | Reason for approval (for audit trail) |
ps_hold_reject
Reject a held execution request. The operation will not proceed.
| Parameter | Type | Description |
|---|---|---|
holdId * | string | The hold ID to reject |
haltAgent | boolean | Also halt the agent that made the request (default: false) |
reason | string | Reason for rejection (for audit trail) |
ps_hold_config
Configure hold behavior and thresholds. Controls when operations are held for human review.
| Parameter | Type | Description |
|---|---|---|
action * | string | Get current config or set new config |
config | object | Configuration to set (only for action=set) |
ps_hold_stats
Get hold statistics and history.
| Parameter | Type | Description |
|---|---|---|
historyLimit | number | Number of historical decisions to return (default: 10) |
ps_security_scan
Scan code content for security vulnerabilities. Returns findings classified by severity (critical, high, medium, low, info).
| Parameter | Type | Description |
|---|---|---|
content * | string | Code content to scan |
patterns | array | Optional: Only run these specific pattern IDs |
ps_security_gate
Scan code and enforce security policy. Blocks on critical findings, holds high-severity for review, warns on medium, logs low/info.
| Parameter | Type | Description |
|---|---|---|
action * | string | The action being gated (e.g., "write_file", "edit_file") |
content * | string | Code content to scan |
ps_security_config
Configure security detection patterns. List, enable, disable, or change severity of patterns.
| Parameter | Type | Description |
|---|---|---|
action * | string | Configuration action to perform |
patternId | string | Pattern ID to modify (required for enable, disable, set_severity) |
severity | string | New severity level (required for set_severity) |
ps_symbol_create
Create a new directive symbol in the registry. Symbol IDs follow the pattern: - Public companies: Ξ.{TICKER}.{PERIOD} (e.g., Ξ.NVDA.Q3FY25) - People: Ξ.I.{NAME}.{CONTEXT} (e.g., Ξ.I.JENSEN_HUANG.BIO) - Events: Ξ.E.{TYPE}.{ID} (e.g., Ξ.E.EARNINGS.NVDA.20241120) - Sectors: Ξ.S.{SECTOR}.{CONTEXT} (e.g., Ξ.S.SEMICONDUCTORS.2024) - Tasks: Ξ.T.{PROJECT}.{ID} (e.g., Ξ.T.PORTFOLIO_REVIEW.001) - Knowledge: Ξ.K.{DOMAIN}.{TOPIC} (e.g., Ξ.K.CHEMISTRY.WATER) - Queries: Ξ.Q.{DATASET}.{ID} (e.g., Ξ.Q.DEEPSEARCHQA.001)
| Parameter | Type | Description |
|---|---|---|
commanders_intent * | string | Ultimate goal in one sentence - the north star |
how * | object | |
requirements * | array | MUST include these elements |
symbolId * | string | Unique symbol ID following namespace rules (e.g., Ξ.NVDA.Q3FY25) |
what * | string | What is being analyzed or done |
when * | string | Time context |
where * | string | Scope (company, market, geography) |
who * | string | Who needs this / who is the audience |
why * | string | Why this matters / purpose |
anti_requirements | array | MUST NOT include these elements |
category | string | Category (auto-inferred from ID if not provided) |
created_by | string | Creator identifier |
key_terms | array | Terms that MUST appear in output |
parent_symbol | string | Parent symbol ID for hierarchical symbols |
related_symbols | array | Related symbol IDs |
tags | array | Freeform tags for filtering |
ps_symbol_get
Retrieve a directive symbol by ID. Returns the full symbol with all grounding context.
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | Symbol ID to retrieve (e.g., Ξ.NVDA.Q3FY25) |
include_changelog | boolean | Include version changelog (default: true) |
version | number | Specific version to retrieve (optional, defaults to latest) |
ps_symbol_update
Update an existing symbol. Creates a new version with updated hash.
| Parameter | Type | Description |
|---|---|---|
change_description * | string | Description of what changed (for changelog) |
changes * | object | Fields to update (who, what, why, where, when, how, commanders_intent, requirements, etc.) |
symbolId * | string | Symbol ID to update |
changed_by | string | Who made the change |
ps_symbol_list
List symbols with optional filtering.
| Parameter | Type | Description |
|---|---|---|
category | string | Filter by category |
created_after | string | Filter by creation date (ISO 8601) |
created_before | string | Filter by creation date (ISO 8601) |
limit | number | Max results (default: 50) |
offset | number | Pagination offset |
search | string | Search in symbolId and commanders_intent |
tags | array | Filter by tags |
ps_symbol_delete
Delete a symbol from the registry.
| Parameter | Type | Description |
|---|---|---|
reason * | string | Reason for deletion |
symbolId * | string | Symbol ID to delete |
ps_symbol_import
Bulk import symbols from external data (HuggingFace, JSON, etc.).
| Parameter | Type | Description |
|---|---|---|
category * | string | Category for imported symbols |
data * | The data to import (format depends on source) | |
id_prefix * | string | Prefix for generated symbol IDs (e.g., Ξ.Q.DEEPSEARCHQA) |
source * | string | Data source format |
defaults | object | Default values for fields not in source data |
transform | object | Field mapping from source data to symbol fields |
ps_symbol_stats
Get statistics about the symbol registry.
ps_symbol_format
Format a symbol for inclusion in a prompt. Returns LLM-ready text.
| Parameter | Type | Description |
|---|---|---|
symbolId * | string | Symbol ID to format |
format | string | Format style (default: full) |
ps_symbol_verify
Record human verification of a symbol claim. Use this tool to upgrade or dispute claims based on human review: - VERIFIED: Human expert has confirmed the claim is accurate - CORROBORATED: Additional evidence supports the claim - DISPUTED: Human reviewer found the claim to be incorrect or misleading Important: Accusatory claims (fraud, violations) should be DISPUTED if they lack evidence or have plausible alternative explanations.
| Parameter | Type | Description |
|---|---|---|
new_status * | string | New epistemic status for the claim |
reviewer * | string | Identifier of the human reviewer |
symbolId * | string | Symbol ID to verify |
evidence_added | array | List of evidence sources that support this verification |
new_confidence | number | New confidence level (0-1). Auto-calculated if not provided. |
notes | string | Notes explaining the verification decision |
ps_symbol_list_unverified
List symbols that require human review. Returns symbols flagged for review due to: - Accusatory claims without sufficient evidence - Missing alternative explanations - High-stakes claims (fraud, violations, diagnoses) - Low confidence scores Use this to find claims that need human validation before action.
| Parameter | Type | Description |
|---|---|---|
claim_type | string | Filter by claim type (e.g., ACCUSATORY for fraud allegations) |
limit | number | Maximum results to return (default: 50) |
max_confidence | number | Maximum confidence level to include |
min_confidence | number | Minimum confidence level to include |
offset | number | Pagination offset |
ps_symbol_add_alternative
Add an alternative explanation to a symbol's findings. CRITICAL for preventing false positives: When a pattern-based finding could have multiple explanations, document them here. Adding high-likelihood alternatives automatically reduces confidence in the original claim. Examples: - "9 identical payments" → Alternative: "Monthly insurance premium financing" - "Large round numbers" → Alternative: "Negotiated contract amounts" - "Vendor with single customer" → Alternative: "Subsidiary company"
| Parameter | Type | Description |
|---|---|---|
added_by * | string | Who is adding this alternative |
alternative * | string | Description of the alternative explanation |
likelihood * | number | Estimated likelihood this alternative is correct (0-1) |
symbolId * | string | Symbol ID to update |
reasoning | string | Why this alternative is plausible |