{
  "format": "promptreports-connector/v1",
  "id": "salesascode",
  "name": "Sales as Code",
  "version": "1.0.0",
  "origin": "https://salesascode.com",
  "endpoints": {
    "mcp": "https://salesascode.com/api/v1/mcp",
    "http": "https://salesascode.com/api/v1/tools/{tool}",
    "openapi": "https://salesascode.com/openapi.json",
    "llms_txt": "https://salesascode.com/llms.txt",
    "mcp_server_card": "https://salesascode.com/.well-known/mcp/server-card.json",
    "inventory": "https://salesascode.com/.well-known/promptreports-inventory.json",
    "open_deal": "https://salesascode.com/open/deal/{id}",
    "open_customer": "https://salesascode.com/open/customer/{id}",
    "sandbox": "https://salesascode.com/api/v1/sandbox/agents",
    "mcp_read_only": "https://salesascode.com/api/v1/mcp/readonly",
    "move_items": "https://salesascode.com/api/promptreports/move-items",
    "person_sessions": "https://salesascode.com/api/promptreports/person-sessions"
  },
  "auth": {
    "kind": "bearer",
    "protected_resource_metadata": "https://salesascode.com/.well-known/oauth-protected-resource",
    "id_agent_token": {
      "audience": "https://salesascode.com",
      "dpop": true
    },
    "service_accounts": true,
    "notes": "An sak_ API key with the scopes a tool names, or an OAuth token. Every tool but verify_session, check_entitlement and pull_config needs an active paid entitlement."
  },
  "headers": {
    "run": "X-PromptReports-Run",
    "idempotency": "Idempotency-Key"
  },
  "test": {
    "action": "salesascode.verify_session"
  },
  "actions": [
    {
      "idempotency_key": true,
      "key": "salesascode.log_capture",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "log_capture",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/log_capture"
      },
      "scope": "capture.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "source",
          "text"
        ],
        "properties": {
          "source": {
            "type": "string",
            "description": "Where this capture came from (e.g. \"scheduled\")."
          },
          "text": {
            "type": "string",
            "description": "The capture content."
          },
          "account_id": {
            "type": "string",
            "description": "Optional account to attach the capture to."
          },
          "prospect_id": {
            "type": "string",
            "description": "Optional prospect to attach the capture to."
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Optional tags."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "created_at"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.set_meddpicc",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "set_meddpicc",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/set_meddpicc"
      },
      "scope": "meddpicc.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "opp_id"
        ],
        "properties": {
          "opp_id": {
            "type": "string",
            "description": "The opportunity id (matches an opp nested in an account record)."
          },
          "metrics": {
            "type": "string",
            "description": "The quantified business outcome (Metrics)."
          },
          "economic_buyer": {
            "type": "string",
            "description": "Who controls the budget and what they need to sign (Economic Buyer)."
          },
          "decision_criteria": {
            "type": "string",
            "description": "The yardstick the buyer judges options against (Decision Criteria)."
          },
          "decision_process": {
            "type": "string",
            "description": "The steps/gates to a signature (Decision Process)."
          },
          "identify_pain": {
            "type": "string",
            "description": "The cost of inaction / pain (Implications)."
          },
          "champion": {
            "type": "string",
            "description": "Who sells for you internally (Champion)."
          },
          "competition": {
            "type": "string",
            "description": "Alternatives in play, incl. do-nothing (Competition)."
          },
          "paper_process": {
            "type": "string",
            "description": "Procurement / legal / security path (Paper Process)."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "opp_id": {
            "type": "string"
          },
          "deal_id": {
            "type": "string",
            "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
          },
          "customer": {
            "type": "string",
            "description": "The family customer reference, cust:v1: and 64 hex, the same value CommitOps computes for the company. Present only when the org granted the customer join."
          },
          "dimensions_set": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "values": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "opp_id",
          "deal_id",
          "dimensions_set",
          "values"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.update_prospect",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "update_prospect",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/update_prospect"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Prospect id (omit to create)."
          },
          "name": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "account_id": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          },
          "fields": {
            "type": "object",
            "description": "Arbitrary additional fields."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "created": {
            "type": "boolean"
          },
          "updated_at": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "created",
          "updated_at"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.add_to_plan",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "add_to_plan",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/add_to_plan"
      },
      "scope": "plan.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "account_id",
          "section",
          "content"
        ],
        "properties": {
          "account_id": {
            "type": "string"
          },
          "section": {
            "type": "string",
            "description": "Section name (e.g. \"next_steps\", \"risks\", \"champion_notes\")."
          },
          "content": {
            "type": "string",
            "description": "Markdown-friendly content to append."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string"
          },
          "section": {
            "type": "string"
          },
          "appended_at": {
            "type": "string"
          }
        },
        "required": [
          "account_id",
          "section",
          "appended_at"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.mark_meeting_outcome",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "mark_meeting_outcome",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/mark_meeting_outcome"
      },
      "scope": "meeting.write",
      "requires_entitlement": true,
      "catalog_keys": [
        "salesascode.meeting.outcome"
      ],
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "outcome"
        ],
        "properties": {
          "meeting_id": {
            "type": "string",
            "description": "Meeting id (omit to create)."
          },
          "account_id": {
            "type": "string"
          },
          "outcome": {
            "type": "string",
            "description": "\"advance\" | \"stall\" | \"lost\" | free-form summary."
          },
          "notes": {
            "type": "string"
          },
          "next_step": {
            "type": "string"
          },
          "occurred_at": {
            "type": "string",
            "description": "ISO timestamp; defaults to now."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "meeting_id": {
            "type": "string"
          },
          "outcome": {
            "type": "string"
          },
          "recorded_at": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "waiting_for_approval",
              "executed"
            ]
          },
          "approval_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "approval_url": {
            "type": [
              "string",
              "null"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "required": [
          "meeting_id",
          "outcome"
        ]
      }
    },
    {
      "key": "salesascode.read_account",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "read_account",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/read_account"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "include": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "plan",
                "meetings",
                "captures"
              ]
            },
            "description": "Which related collections to include."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "account": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "payload": {
                    "type": "object"
                  }
                },
                "required": [
                  "id",
                  "payload"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "plan": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "meetings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "payload": {
                  "type": "object"
                }
              },
              "required": [
                "id",
                "payload"
              ]
            }
          },
          "captures": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "payload": {
                  "type": "object"
                }
              },
              "required": [
                "id",
                "payload"
              ]
            }
          }
        },
        "required": [
          "account"
        ]
      }
    },
    {
      "key": "salesascode.pull_brief",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "pull_brief",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/pull_brief"
      },
      "scope": "brief.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "today",
              "week"
            ],
            "description": "Default \"today\"."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "scope": {
            "type": "string",
            "enum": [
              "today",
              "week"
            ]
          },
          "generated_at": {
            "type": "string"
          },
          "accounts_active": {
            "type": "number"
          },
          "recent_captures": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "text",
                "created_at"
              ]
            }
          },
          "recent_meetings": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "outcome": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "occurred_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "outcome",
                "occurred_at"
              ]
            }
          },
          "open_plan_sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "account_id": {
                  "type": "string"
                },
                "sections": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "account_id",
                "sections"
              ]
            }
          }
        },
        "required": [
          "scope",
          "generated_at",
          "accounts_active",
          "recent_captures",
          "recent_meetings",
          "open_plan_sections"
        ]
      }
    },
    {
      "key": "salesascode.gtm_score",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "gtm_score",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/gtm_score"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "role",
          "signals"
        ],
        "properties": {
          "role": {
            "type": "string",
            "description": "The weight profile: awareness | deal-risk | deal-risk-team | technical-risk | health | ecosystem-fit | efficiency."
          },
          "signals": {
            "type": "array",
            "description": "Signals, each { key, value (0..1), at? (ISO) }.",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "at": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "value": {
            "type": "number"
          },
          "band": {
            "type": "string"
          },
          "drivers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "contribution": {
                  "type": "number"
                }
              },
              "required": [
                "key",
                "label",
                "contribution"
              ]
            }
          },
          "matched": {
            "type": "number"
          },
          "covered": {
            "type": "number"
          },
          "ceiling": {
            "type": "number"
          },
          "coverage": {
            "type": "number"
          },
          "bandAsserted": {
            "type": "boolean"
          }
        },
        "required": [
          "value",
          "band",
          "drivers",
          "matched",
          "covered",
          "ceiling",
          "coverage",
          "bandAsserted"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.gtm_enrich",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "gtm_enrich",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/gtm_enrich"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "medium",
      "input_schema": {
        "type": "object",
        "required": [
          "contact"
        ],
        "properties": {
          "contact": {
            "type": "object",
            "description": "Known contact facts: fullName, firstName, lastName, domain, company, linkedin, known."
          },
          "wanted": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields to fill: email, phone, title, seniority, company, linkedin, employeeCount, industry."
          },
          "persist_entity": {
            "type": "string",
            "description": "Optional entity to write facts to (prospect, account, target_account)."
          },
          "persist_id": {
            "type": "string",
            "description": "Optional record id to write the facts onto."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "facts": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "value": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                }
              },
              "required": [
                "value",
                "provider"
              ]
            }
          },
          "creditsSpent": {
            "type": "number"
          },
          "steps": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "provider": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "hit",
                    "miss",
                    "skipped",
                    "not-configured",
                    "gated",
                    "error",
                    "refused"
                  ]
                },
                "filled": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "cost": {
                  "type": "number"
                }
              },
              "required": [
                "provider",
                "status",
                "filled",
                "cost"
              ]
            }
          },
          "providersCallable": {
            "type": "number"
          },
          "providersTotal": {
            "type": "number"
          },
          "rejected": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "value": {
                  "type": "string"
                },
                "provider": {
                  "type": "string"
                },
                "reason": {
                  "type": "string"
                }
              },
              "required": [
                "field",
                "value",
                "provider",
                "reason"
              ]
            }
          },
          "reachable": {
            "type": "object",
            "properties": {
              "email": {
                "type": "boolean"
              },
              "phone": {
                "type": "boolean"
              },
              "reachable": {
                "type": "boolean"
              }
            },
            "required": [
              "email",
              "phone",
              "reachable"
            ]
          },
          "emailFlags": {
            "type": "object",
            "properties": {
              "address": {
                "type": "string"
              },
              "role": {
                "type": "boolean"
              },
              "catchAll": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "source": {
                "type": "string"
              },
              "checkedAt": {
                "type": "string"
              },
              "verdict": {
                "type": "string",
                "enum": [
                  "valid",
                  "catch-all",
                  "unknown",
                  "invalid",
                  "unchecked"
                ]
              },
              "verifiedBy": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "verifiedAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "disposable": {
                "type": "boolean"
              },
              "uncheckedReason": {
                "type": "string",
                "enum": [
                  "not-configured",
                  "gated",
                  "budget",
                  "error",
                  "known"
                ]
              },
              "reverifyCount": {
                "type": "number"
              }
            },
            "required": [
              "address",
              "role",
              "catchAll",
              "source",
              "checkedAt"
            ]
          },
          "emailVerdict": {
            "type": "string",
            "enum": [
              "valid",
              "catch-all",
              "unknown",
              "invalid",
              "unchecked"
            ]
          },
          "personalEmail": {
            "type": "string"
          },
          "verification": {
            "type": "object",
            "properties": {
              "verifier": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "verified",
                  "not-configured",
                  "gated",
                  "over-budget",
                  "error"
                ]
              },
              "checked": {
                "type": "number"
              },
              "cost": {
                "type": "number"
              }
            },
            "required": [
              "verifier",
              "status",
              "checked",
              "cost"
            ]
          },
          "platform_allowance": {
            "type": "object",
            "properties": {
              "refused": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "exhausted",
                  "unreadable",
                  "ceiling",
                  null
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "refused",
              "message"
            ]
          }
        },
        "required": [
          "facts",
          "creditsSpent",
          "steps",
          "providersCallable",
          "providersTotal",
          "rejected"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.gtm_find_people",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "gtm_find_people",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/gtm_find_people"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "medium",
      "input_schema": {
        "type": "object",
        "properties": {
          "titles": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Job titles, e.g. [\"VP Sales\", \"Head of Revenue\"]."
          },
          "seniorities": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Seniority bands, e.g. [\"vp\", \"director\"]."
          },
          "domains": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Company domains to search within."
          },
          "industries": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Industry keywords."
          },
          "employee_ranges": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Employee-count bands, e.g. [\"11,50\"]."
          },
          "locations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Locations, e.g. [\"United States\"]."
          },
          "keywords": {
            "type": "string",
            "description": "Free text over the person record."
          },
          "limit": {
            "type": "number",
            "description": "People to return, 1 to 100 (default 25)."
          },
          "page": {
            "type": "number",
            "description": "Result page, 1-based (default 1)."
          },
          "list_name": {
            "type": "string",
            "description": "When set, each distinct company found is upserted as a target_account tagged with this list."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string"
          },
          "page": {
            "type": "number"
          },
          "count": {
            "type": "number"
          },
          "total_matched": {
            "type": [
              "number",
              "null"
            ]
          },
          "people": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "externalId": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "seniority": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "linkedin": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "company": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "domain": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "industry": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "employeeCount": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "location": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "hasEmail": {
                  "type": "boolean"
                },
                "emailStatus": {
                  "type": "string"
                }
              },
              "required": [
                "externalId",
                "name",
                "title",
                "seniority",
                "linkedin",
                "company",
                "domain",
                "industry",
                "employeeCount",
                "location",
                "hasEmail",
                "emailStatus"
              ]
            }
          },
          "list_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "target_accounts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "provider",
          "page",
          "count",
          "total_matched",
          "people",
          "list_name",
          "target_accounts",
          "note"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.gtm_build_tam",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "gtm_build_tam",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/gtm_build_tam"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "medium",
      "input_schema": {
        "type": "object",
        "required": [
          "list_name",
          "accounts"
        ],
        "properties": {
          "list_name": {
            "type": "string"
          },
          "accounts": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Each account: { domain, name, industry, employeeCount, ... }."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "list_name": {
            "type": "string"
          },
          "count": {
            "type": "number"
          },
          "ids": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "list_name",
          "count",
          "ids"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.gtm_crm_write",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "gtm_crm_write",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/gtm_crm_write"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "high",
      "input_schema": {
        "type": "object",
        "required": [
          "entity",
          "facts"
        ],
        "properties": {
          "entity": {
            "type": "string",
            "description": "prospect | account | target_account | opp | contact."
          },
          "id": {
            "type": "string",
            "description": "Record id (omit to create)."
          },
          "facts": {
            "type": "object",
            "description": "Fields to merge onto the record."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "entity": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "created": {
            "type": "boolean"
          }
        },
        "required": [
          "entity",
          "id",
          "created"
        ]
      }
    },
    {
      "key": "salesascode.gtm_signal_query",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "gtm_signal_query",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/gtm_signal_query"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "account_id"
        ],
        "properties": {
          "account_id": {
            "type": "string"
          },
          "limit": {
            "type": "number",
            "description": "Max signals to return (default 50)."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string"
          },
          "account": {
            "anyOf": [
              {
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "signals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "count": {
            "type": "number"
          }
        },
        "required": [
          "account_id",
          "account",
          "signals",
          "count"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.gtm_run_play",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "gtm_run_play",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/gtm_run_play"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "medium",
      "input_schema": {
        "type": "object",
        "required": [
          "contact"
        ],
        "properties": {
          "contact": {
            "type": "object",
            "description": "Known contact facts: fullName, firstName, lastName, domain, company, linkedin, known. A known fact whose key is a weight in the role profile and whose value is a number from 0 to 1 is scored as a signal."
          },
          "wanted": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Fields to fill (default email, phone, title, ...)."
          },
          "role": {
            "type": "string",
            "description": "Scoring profile: awareness | deal-risk | health | ... Optional. With it, the contact is scored before any credit is spent and enriched only when the value is above the top of the profile's lowest band. Omit it to skip scoring and always enrich."
          },
          "signals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "value": {
                  "type": "number"
                },
                "at": {
                  "type": "string"
                }
              }
            },
            "description": "Signals to score (0..1). Optional."
          },
          "enrichWhenUnscored": {
            "type": "boolean",
            "description": "Default false. When too little of the rubric has a signal for the band to be stated (bandAsserted false), the play skips enrichment unless this is true. It never turns a low asserted score into a pass."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "enrichment": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "facts": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "object",
                      "properties": {
                        "value": {
                          "type": "string"
                        },
                        "provider": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "value",
                        "provider"
                      ]
                    }
                  },
                  "creditsSpent": {
                    "type": "number"
                  },
                  "steps": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "provider": {
                          "type": "string"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "hit",
                            "miss",
                            "skipped",
                            "not-configured",
                            "gated",
                            "error",
                            "refused"
                          ]
                        },
                        "filled": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "cost": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "provider",
                        "status",
                        "filled",
                        "cost"
                      ]
                    }
                  },
                  "providersCallable": {
                    "type": "number"
                  },
                  "providersTotal": {
                    "type": "number"
                  },
                  "rejected": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "field": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "provider": {
                          "type": "string"
                        },
                        "reason": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "field",
                        "value",
                        "provider",
                        "reason"
                      ]
                    }
                  },
                  "reachable": {
                    "type": "object",
                    "properties": {
                      "email": {
                        "type": "boolean"
                      },
                      "phone": {
                        "type": "boolean"
                      },
                      "reachable": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "email",
                      "phone",
                      "reachable"
                    ]
                  },
                  "emailFlags": {
                    "type": "object",
                    "properties": {
                      "address": {
                        "type": "string"
                      },
                      "role": {
                        "type": "boolean"
                      },
                      "catchAll": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "source": {
                        "type": "string"
                      },
                      "checkedAt": {
                        "type": "string"
                      },
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "valid",
                          "catch-all",
                          "unknown",
                          "invalid",
                          "unchecked"
                        ]
                      },
                      "verifiedBy": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "verifiedAt": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "disposable": {
                        "type": "boolean"
                      },
                      "uncheckedReason": {
                        "type": "string",
                        "enum": [
                          "not-configured",
                          "gated",
                          "budget",
                          "error",
                          "known"
                        ]
                      },
                      "reverifyCount": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "address",
                      "role",
                      "catchAll",
                      "source",
                      "checkedAt"
                    ]
                  },
                  "emailVerdict": {
                    "type": "string",
                    "enum": [
                      "valid",
                      "catch-all",
                      "unknown",
                      "invalid",
                      "unchecked"
                    ]
                  },
                  "personalEmail": {
                    "type": "string"
                  },
                  "verification": {
                    "type": "object",
                    "properties": {
                      "verifier": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "status": {
                        "type": "string",
                        "enum": [
                          "verified",
                          "not-configured",
                          "gated",
                          "over-budget",
                          "error"
                        ]
                      },
                      "checked": {
                        "type": "number"
                      },
                      "cost": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "verifier",
                      "status",
                      "checked",
                      "cost"
                    ]
                  }
                },
                "required": [
                  "facts",
                  "creditsSpent",
                  "steps",
                  "providersCallable",
                  "providersTotal",
                  "rejected"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "score": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "value": {
                    "type": "number"
                  },
                  "band": {
                    "type": "string"
                  },
                  "bandAsserted": {
                    "type": "boolean"
                  },
                  "coverage": {
                    "type": "number"
                  }
                },
                "required": [
                  "value",
                  "band",
                  "bandAsserted",
                  "coverage"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "draft": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "subject": {
                    "type": "string"
                  },
                  "body": {
                    "type": "string"
                  },
                  "gaps": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "subject",
                  "body",
                  "gaps"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "skipped": {
            "type": "object",
            "properties": {
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "reason"
            ]
          },
          "platform_allowance": {
            "type": "object",
            "properties": {
              "refused": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "exhausted",
                  "unreadable",
                  "ceiling",
                  null
                ]
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "refused",
              "message"
            ]
          }
        },
        "required": [
          "enrichment",
          "score",
          "draft"
        ]
      }
    },
    {
      "key": "salesascode.verify_session",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "verify_session",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/verify_session"
      },
      "scope": null,
      "requires_entitlement": false,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {}
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "account": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "email"
            ]
          },
          "team": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "user",
              "team"
            ]
          },
          "plan": {
            "type": "string",
            "enum": [
              "all-access",
              "a-la-carte",
              "none"
            ]
          },
          "entitled_plugins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "slug": {
                  "type": "string"
                },
                "entitled": {
                  "type": "boolean"
                },
                "expires_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "slug",
                "entitled",
                "expires_at"
              ]
            }
          },
          "verified_at": {
            "type": "string"
          }
        },
        "required": [
          "account",
          "team",
          "scope",
          "plan",
          "entitled_plugins",
          "products",
          "verified_at"
        ]
      }
    },
    {
      "key": "salesascode.check_entitlement",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "check_entitlement",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/check_entitlement"
      },
      "scope": null,
      "requires_entitlement": false,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "plugin"
        ],
        "properties": {
          "plugin": {
            "type": "string",
            "description": "Plugin slug, e.g. \"gtm-engine\"."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "plugin": {
            "type": "string"
          },
          "entitled": {
            "type": "boolean"
          },
          "scope": {
            "type": "string",
            "enum": [
              "user",
              "team"
            ]
          }
        },
        "required": [
          "plugin",
          "entitled",
          "scope"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.start_run",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "start_run",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/start_run"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "plugin",
          "skill"
        ],
        "properties": {
          "plugin": {
            "type": "string"
          },
          "skill": {
            "type": "string"
          },
          "run_ref": {
            "type": "string",
            "description": "Optional client-supplied correlation id; generated when omitted. Use a fresh value per run."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "started": {
            "const": true
          },
          "id": {
            "type": "string"
          },
          "run_ref": {
            "type": "string"
          },
          "heartbeat_every_seconds": {
            "type": "number"
          },
          "stale_after_minutes": {
            "type": "number"
          }
        },
        "required": [
          "started",
          "id",
          "run_ref",
          "heartbeat_every_seconds",
          "stale_after_minutes"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.run_heartbeat",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "run_heartbeat",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/run_heartbeat"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "run_ref"
        ],
        "properties": {
          "run_ref": {
            "type": "string",
            "description": "The run_ref from start_run."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "ok": {
            "const": true
          },
          "running": {
            "type": "boolean"
          },
          "run_ref": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "running",
          "run_ref"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.emit_telemetry",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "emit_telemetry",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/emit_telemetry"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "plugin",
          "skill"
        ],
        "properties": {
          "plugin": {
            "type": "string"
          },
          "skill": {
            "type": "string"
          },
          "run_id": {
            "type": "string",
            "description": "Run correlation id, pass the run_ref from start_run to settle the declared run."
          },
          "counts": {
            "type": "object",
            "description": "The skill's counts line as an object."
          },
          "outcome": {
            "type": "string",
            "description": "\"ok\" | \"setup\" | \"skipped\" | \"error\" | free-form."
          },
          "duration_ms": {
            "type": "number"
          },
          "error_code": {
            "type": "string",
            "enum": [
              "auth",
              "entitlement",
              "rate_limit",
              "provider",
              "skill_logic",
              "unknown"
            ],
            "description": "Optional error category when the run failed (auth | entitlement | rate_limit | provider | skill_logic | unknown)."
          },
          "error_detail": {
            "type": "string",
            "description": "Optional human-readable error detail (max 2000 chars)."
          },
          "account_ref": {
            "type": "string",
            "description": "Optional account label this run worked (a domain or account name, e.g. \"acme.com\"). Metadata only. A free-text label, never CRM records or contact PII. Max 200 chars. Lets the rollup filter runs by account and flag when teammates work the same account. Pass it where the skill knows the account; omit it otherwise."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "recorded": {
            "const": true
          },
          "id": {
            "type": "string"
          },
          "run_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ]
          },
          "account_ref": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "error"
            ]
          },
          "settled_started_run": {
            "type": "boolean"
          }
        },
        "required": [
          "recorded",
          "id",
          "run_id",
          "error_code",
          "account_ref",
          "status",
          "settled_started_run"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.sync_brain",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "sync_brain",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/sync_brain"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "scope",
          "payload"
        ],
        "properties": {
          "scope": {
            "type": "string",
            "description": "Brain scope, e.g. \"signal-weights\"."
          },
          "plugin": {
            "type": "string",
            "description": "Optional source plugin slug."
          },
          "payload": {
            "type": "object",
            "description": "The brain state for this scope."
          },
          "run_ref": {
            "type": "string",
            "description": "Optional run correlation id (the run_ref from start_run / the run_id you pass to emit_telemetry) so this sync is attributed to that exact run."
          },
          "account_ref": {
            "type": "string",
            "description": "Optional account label this brain state is about (a domain or account name). Metadata only. A free-text label, never CRM records or contact PII. Max 200 chars."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "recorded": {
            "const": true
          },
          "scope": {
            "type": "string"
          },
          "bytes": {
            "type": "number"
          },
          "run_ref": {
            "type": [
              "string",
              "null"
            ]
          },
          "account_ref": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "recorded",
          "scope",
          "bytes",
          "run_ref",
          "account_ref"
        ]
      }
    },
    {
      "key": "salesascode.pull_config",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "pull_config",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/pull_config"
      },
      "scope": null,
      "requires_entitlement": false,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "plugin": {
            "type": "string",
            "description": "Optional plugin slug to scope the config."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "plan": {
            "type": "string",
            "enum": [
              "all-access",
              "a-la-carte",
              "none"
            ]
          },
          "entitled_plugins": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "plugin": {
            "type": [
              "string",
              "null"
            ]
          },
          "flags": {
            "type": "object"
          },
          "config": {
            "type": "object"
          },
          "scope": {
            "type": "string",
            "enum": [
              "user",
              "team"
            ]
          },
          "team": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ]
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "plan",
          "entitled_plugins",
          "plugin",
          "flags",
          "config",
          "scope",
          "team"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.connect_integration",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "connect_integration",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/connect_integration"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [
        "salesascode.integration.connect"
      ],
      "risk": "critical",
      "family_class": "credentials",
      "input_schema": {
        "type": "object",
        "required": [
          "provider",
          "access_token"
        ],
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "linkedin",
              "linkedin_company",
              "youtube",
              "reddit",
              "google_drive"
            ],
            "description": "Content-engine channel provider id."
          },
          "access_token": {
            "type": "string",
            "description": "OAuth access token."
          },
          "refresh_token": {
            "type": "string",
            "description": "OAuth refresh token, if the provider issues one."
          },
          "expires_at": {
            "type": "number",
            "description": "Token expiry as epoch milliseconds (preferred)."
          },
          "expires_in": {
            "type": "number",
            "description": "Token lifetime in seconds from now (used if expires_at absent)."
          },
          "scopes": {
            "type": "string",
            "description": "Space-joined granted scopes."
          },
          "account_ref": {
            "type": "string",
            "description": "Provider account ref (e.g. member/org URN, channel id)."
          },
          "approval_id": {
            "type": "string",
            "description": "The PromptCompute approval a person gave under salesascode.integration.connect. Required only while this server holds critical class writes for a person (SALESASCODE_CRITICAL_CLASS_HOLD)."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "connected": {
            "const": true
          },
          "provider": {
            "type": "string",
            "enum": [
              "linkedin",
              "linkedin_company",
              "youtube",
              "reddit",
              "google_drive"
            ]
          },
          "has_refresh": {
            "type": "boolean"
          }
        },
        "required": [
          "connected",
          "provider",
          "has_refresh"
        ]
      }
    },
    {
      "key": "salesascode.studio_list_drafts",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "studio_list_drafts",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/studio_list_drafts"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "description": "Optional status filter."
          },
          "limit": {
            "type": "number",
            "description": "Max rows (1 to 200, default 50)."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "count": {
            "type": "number"
          },
          "drafts": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "channel": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "funnel_stage": {
                  "type": "string"
                },
                "publish_mode": {
                  "type": "string"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "body": {
                  "type": "string"
                },
                "external_ref": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "publish_error": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "created_at": {
                  "type": "string"
                },
                "latest_version_id": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "channel",
                "status",
                "funnel_stage",
                "publish_mode",
                "title",
                "body",
                "external_ref",
                "publish_error",
                "created_at",
                "latest_version_id"
              ]
            }
          }
        },
        "required": [
          "count",
          "drafts"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.studio_review_draft",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "studio_review_draft",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/studio_review_draft"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [
        "content.publish"
      ],
      "risk": "high",
      "family_class": "publishing",
      "input_schema": {
        "type": "object",
        "required": [
          "id",
          "status"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "Draft id from studio_list_drafts."
          },
          "status": {
            "type": "string",
            "enum": [
              "approved",
              "scheduled",
              "needs_approval",
              "draft",
              "failed"
            ],
            "description": "New status."
          },
          "approval_id": {
            "type": "string",
            "description": "The PromptCompute approval a person gave under content.publish for this draft. Required to approve or schedule."
          },
          "revision_id": {
            "type": "string",
            "description": "The draft revision the person approved (latest_version_id when they decided). Required to approve or schedule; the approval must name the same revision_id, and the call is refused when the draft has a newer revision."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "approved",
              "scheduled",
              "needs_approval",
              "draft",
              "failed"
            ]
          },
          "revisionId": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "status"
        ]
      }
    },
    {
      "key": "salesascode.team_rollup",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "team_rollup",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/team_rollup"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "period_days": {
            "type": "number",
            "description": "Trailing window in days (1 to 90, default 30)."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "team": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ]
          },
          "period_days": {
            "type": "number"
          },
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "user_id": {
                  "type": "string"
                },
                "runs": {
                  "type": "number"
                },
                "actions": {
                  "type": "number"
                },
                "rank": {
                  "type": "number"
                },
                "percentile": {
                  "type": "number"
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "user_id",
                "runs",
                "actions",
                "rank",
                "percentile",
                "email"
              ]
            }
          },
          "plugins": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "plugin": {
                  "type": "string"
                },
                "runs": {
                  "type": "number"
                },
                "members": {
                  "type": "number"
                },
                "last_run_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "plugin",
                "runs",
                "members",
                "last_run_at"
              ]
            }
          },
          "week_over_week": {
            "type": "object",
            "properties": {
              "this_week_runs": {
                "type": "number"
              },
              "last_week_runs": {
                "type": "number"
              },
              "this_week_actions": {
                "type": "number"
              },
              "last_week_actions": {
                "type": "number"
              }
            },
            "required": [
              "this_week_runs",
              "last_week_runs",
              "this_week_actions",
              "last_week_actions"
            ]
          },
          "outcomes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string"
                },
                "total": {
                  "type": "number"
                }
              },
              "required": [
                "key",
                "total"
              ]
            }
          },
          "people_views": {
            "type": "object",
            "properties": {
              "per_person": {
                "type": "boolean"
              },
              "note": {
                "type": "string"
              },
              "team_members": {
                "type": "number"
              },
              "too_few": {
                "type": "boolean"
              }
            },
            "required": [
              "per_person"
            ]
          }
        },
        "required": [
          "team",
          "period_days",
          "members",
          "plugins",
          "week_over_week",
          "outcomes"
        ]
      }
    },
    {
      "key": "salesascode.team_member_summary",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "team_member_summary",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/team_member_summary"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "member_email"
        ],
        "properties": {
          "member_email": {
            "type": "string",
            "description": "The member's account email (from team_rollup)."
          },
          "period_days": {
            "type": "number",
            "description": "Trailing window in days (1 to 90, default 30)."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "team": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "id",
              "name"
            ]
          },
          "member": {
            "type": "object",
            "properties": {
              "user_id": {
                "type": "string"
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "user_id",
              "email"
            ]
          },
          "period_days": {
            "type": "number"
          },
          "by_plugin": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "plugin": {
                  "type": "string"
                },
                "runs": {
                  "type": "number"
                },
                "last_run_at": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "errors": {
                  "type": "number"
                }
              },
              "required": [
                "plugin",
                "runs",
                "last_run_at",
                "errors"
              ]
            }
          },
          "recent_runs": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "plugin": {
                  "type": "string"
                },
                "skill": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "running",
                    "ok",
                    "error",
                    "stale"
                  ]
                },
                "outcome": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "counts": {
                  "type": "object"
                },
                "account_ref": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "at": {
                  "type": "string"
                }
              },
              "required": [
                "plugin",
                "skill",
                "status",
                "outcome",
                "counts",
                "account_ref",
                "at"
              ]
            }
          }
        },
        "required": [
          "team",
          "member",
          "period_days",
          "by_plugin",
          "recent_runs"
        ]
      }
    },
    {
      "key": "salesascode.get_people_views",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "get_people_views",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/get_people_views"
      },
      "scope": null,
      "requires_entitlement": false,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {}
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "switchOn": {
            "type": "boolean"
          },
          "perPerson": {
            "type": "boolean"
          },
          "decided": {
            "type": "boolean"
          },
          "source": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "admin",
              "confirmed",
              "declined",
              null
            ]
          },
          "isAdmin": {
            "type": "boolean"
          },
          "prompt": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "views": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "path": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "label",
                "path"
              ]
            }
          },
          "visibleTo": {
            "type": "string"
          },
          "notices": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "views": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "visibleTo": {
                  "type": "string"
                },
                "createdAt": {
                  "type": "string"
                },
                "readAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                }
              },
              "required": [
                "id",
                "views",
                "visibleTo",
                "createdAt",
                "readAt"
              ]
            }
          },
          "ownFigures": {
            "anyOf": [
              {
                "type": "null"
              },
              {
                "type": "object"
              }
            ]
          }
        },
        "required": [
          "switchOn",
          "perPerson",
          "isAdmin",
          "prompt",
          "views",
          "visibleTo",
          "notices",
          "ownFigures"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.set_people_views",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "set_people_views",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/set_people_views"
      },
      "scope": null,
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "high",
      "input_schema": {
        "type": "object",
        "required": [
          "enabled"
        ],
        "properties": {
          "enabled": {
            "type": "boolean",
            "description": "true shows per-person rows to team owners; false shows team figures only."
          },
          "via": {
            "type": "string",
            "enum": [
              "admin",
              "prompt"
            ],
            "description": "How the admin decided. Default 'admin'."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "enabled": {
            "type": "boolean"
          },
          "changed": {
            "type": "boolean"
          },
          "noticed": {
            "type": "number"
          },
          "mailed": {
            "type": "number"
          }
        },
        "required": [
          "ok",
          "enabled",
          "changed",
          "noticed",
          "mailed"
        ]
      }
    },
    {
      "key": "salesascode.answer_about_account",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "answer_about_account",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/answer_about_account"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "accountId",
          "question"
        ],
        "properties": {
          "accountId": {
            "type": "string"
          },
          "question": {
            "type": "string",
            "description": "What you want to know about this account."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "answer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "content": {
                  "type": "string"
                },
                "attribute": {
                  "type": "string"
                },
                "scope": {
                  "type": "string"
                },
                "mine": {
                  "type": "boolean"
                },
                "needsRevalidation": {
                  "type": "boolean"
                }
              },
              "required": [
                "content",
                "attribute",
                "scope",
                "mine",
                "needsRevalidation"
              ]
            }
          },
          "confidence": {
            "type": "string"
          }
        },
        "required": [
          "answer",
          "sources",
          "confidence"
        ]
      }
    },
    {
      "key": "salesascode.answer_across_org",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "answer_across_org",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/answer_across_org"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "question"
        ],
        "properties": {
          "question": {
            "type": "string",
            "description": "What you want to know across the book."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "answer": {
            "type": "string"
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "content": {
                  "type": "string"
                },
                "attribute": {
                  "type": "string"
                },
                "scope": {
                  "type": "string"
                },
                "mine": {
                  "type": "boolean"
                },
                "needsRevalidation": {
                  "type": "boolean"
                }
              },
              "required": [
                "content",
                "attribute",
                "scope",
                "mine",
                "needsRevalidation"
              ]
            }
          },
          "confidence": {
            "type": "string"
          }
        },
        "required": [
          "answer",
          "sources",
          "confidence"
        ]
      }
    },
    {
      "key": "salesascode.predict_deal",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "predict_deal",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/predict_deal"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "oppId": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          },
          "name": {
            "type": "string",
            "description": "Part of the deal name, at least 3 characters."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "quarter": {
            "type": "string"
          },
          "matched": {
            "type": "number"
          },
          "deals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "stage": {
                  "type": "string"
                },
                "amount": {
                  "type": "number"
                },
                "winThisQuarter": {
                  "type": "number"
                },
                "winEventually": {
                  "type": "number"
                },
                "winEventuallySignals": {
                  "type": "number"
                },
                "daysInStage": {
                  "type": "number"
                },
                "usualDaysInStage": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "stalled": {
                  "type": "boolean"
                },
                "drivers": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "signal": {
                        "type": "string"
                      },
                      "points": {
                        "type": "number"
                      },
                      "line": {
                        "type": "string"
                      },
                      "exits": {
                        "type": "number"
                      },
                      "thinEvidence": {
                        "type": "boolean"
                      },
                      "evidence": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "signal",
                      "points",
                      "line",
                      "exits",
                      "thinEvidence",
                      "evidence"
                    ]
                  }
                },
                "coverage": {
                  "type": "object",
                  "properties": {
                    "thin": {
                      "type": "boolean"
                    },
                    "label": {
                      "type": "string"
                    },
                    "missing": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  },
                  "required": [
                    "thin",
                    "label",
                    "missing"
                  ]
                },
                "calibration": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "bucket": {
                          "type": "number"
                        },
                        "label": {
                          "type": "string"
                        },
                        "count": {
                          "type": "number"
                        },
                        "observedRate": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "own": {
                          "type": "boolean"
                        },
                        "cohort": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "observedRate": {
                                  "type": "number"
                                },
                                "tenants": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "observedRate",
                                "tenants"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "line": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "bucket",
                        "label",
                        "count",
                        "observedRate",
                        "own",
                        "cohort",
                        "line"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "deal_id": {
                  "type": "string",
                  "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
                },
                "customer": {
                  "type": "string",
                  "description": "The family customer reference, cust:v1: and 64 hex, the same value CommitOps computes for the company. Present only when the org granted the customer join."
                }
              },
              "required": [
                "id",
                "name",
                "stage",
                "amount",
                "winThisQuarter",
                "winEventually",
                "winEventuallySignals",
                "daysInStage",
                "usualDaysInStage",
                "stalled",
                "drivers",
                "coverage",
                "calibration",
                "deal_id"
              ]
            }
          },
          "basis": {
            "type": "string"
          },
          "model": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              }
            },
            "required": [
              "version",
              "reason"
            ]
          },
          "calibration": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "graded": {
                    "type": "number"
                  },
                  "minCount": {
                    "type": "number"
                  },
                  "note": {
                    "type": "string"
                  }
                },
                "required": [
                  "model",
                  "source",
                  "graded",
                  "minCount",
                  "note"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "quarter",
          "matched",
          "deals",
          "basis",
          "model",
          "calibration"
        ]
      }
    },
    {
      "key": "salesascode.simulate_quarter",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "simulate_quarter",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/simulate_quarter"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "levers": {
            "type": "object",
            "properties": {
              "slip": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "oppId": {
                      "type": "string"
                    },
                    "days": {
                      "type": "number"
                    }
                  }
                }
              },
              "addExec": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "oppId": {
                      "type": "string"
                    }
                  }
                }
              },
              "icp": {
                "type": "object",
                "properties": {
                  "volume": {
                    "type": "number"
                  },
                  "winRate": {
                    "type": "number"
                  }
                }
              },
              "hire": {
                "type": "object",
                "properties": {
                  "reps": {
                    "type": "number"
                  },
                  "rampDays": {
                    "type": "number"
                  }
                }
              },
              "price": {
                "type": "object",
                "properties": {
                  "pct": {
                    "type": "number",
                    "description": "0.1 is +10%."
                  }
                }
              }
            }
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "levers": {
            "type": "object",
            "properties": {
              "slip": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "oppId": {
                      "type": "string"
                    },
                    "days": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "oppId",
                    "days"
                  ]
                }
              },
              "addExec": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "oppId": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "oppId"
                  ]
                }
              },
              "icp": {
                "type": "object",
                "properties": {
                  "volume": {
                    "type": "number"
                  },
                  "winRate": {
                    "type": "number"
                  }
                },
                "required": [
                  "volume",
                  "winRate"
                ]
              },
              "hire": {
                "type": "object",
                "properties": {
                  "reps": {
                    "type": "number"
                  },
                  "rampDays": {
                    "type": "number"
                  }
                },
                "required": [
                  "reps",
                  "rampDays"
                ]
              },
              "price": {
                "type": "object",
                "properties": {
                  "pct": {
                    "type": "number"
                  }
                },
                "required": [
                  "pct"
                ]
              },
              "discount": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "oppId": {
                      "type": "string"
                    },
                    "pct": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "oppId",
                    "pct"
                  ]
                }
              }
            },
            "required": []
          },
          "quarter": {
            "type": "string"
          },
          "quarterEnd": {
            "type": "string"
          },
          "base": {
            "type": "object",
            "properties": {
              "runs": {
                "type": "number"
              },
              "seed": {
                "type": "number"
              },
              "horizonDays": {
                "type": "number"
              },
              "p10": {
                "type": "number"
              },
              "p50": {
                "type": "number"
              },
              "p90": {
                "type": "number"
              },
              "mean": {
                "type": "number"
              },
              "expectedWins": {
                "type": "number"
              },
              "newPipelineMean": {
                "type": "number"
              }
            },
            "required": [
              "runs",
              "seed",
              "horizonDays",
              "p10",
              "p50",
              "p90",
              "mean",
              "expectedWins",
              "newPipelineMean"
            ]
          },
          "scenario": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "runs": {
                    "type": "number"
                  },
                  "seed": {
                    "type": "number"
                  },
                  "horizonDays": {
                    "type": "number"
                  },
                  "p10": {
                    "type": "number"
                  },
                  "p50": {
                    "type": "number"
                  },
                  "p90": {
                    "type": "number"
                  },
                  "mean": {
                    "type": "number"
                  },
                  "expectedWins": {
                    "type": "number"
                  },
                  "newPipelineMean": {
                    "type": "number"
                  }
                },
                "required": [
                  "runs",
                  "seed",
                  "horizonDays",
                  "p10",
                  "p50",
                  "p90",
                  "mean",
                  "expectedWins",
                  "newPipelineMean"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "delta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "p10": {
                    "type": "number"
                  },
                  "p50": {
                    "type": "number"
                  },
                  "p90": {
                    "type": "number"
                  },
                  "mean": {
                    "type": "number"
                  }
                },
                "required": [
                  "p10",
                  "p50",
                  "p90",
                  "mean"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "lever": {
                  "type": "string",
                  "enum": [
                    "slip",
                    "add_exec",
                    "icp",
                    "hire",
                    "price",
                    "discount",
                    "toggle"
                  ]
                },
                "evidence": {
                  "type": "string",
                  "enum": [
                    "causal",
                    "correlational",
                    "too-early",
                    "assumption"
                  ]
                },
                "detail": {
                  "type": "string"
                }
              },
              "required": [
                "lever",
                "evidence",
                "detail"
              ]
            }
          },
          "model": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string"
              },
              "prior": {
                "type": "string",
                "enum": [
                  "cohort",
                  "default"
                ]
              },
              "exits": {
                "type": "number"
              },
              "unmappedOpen": {
                "type": "number"
              },
              "basis": {
                "type": "string"
              },
              "choice": {
                "type": "string"
              },
              "borrowed": {
                "type": "object",
                "properties": {
                  "share": {
                    "type": "number"
                  },
                  "prior": {
                    "type": "string",
                    "enum": [
                      "cohort",
                      "default"
                    ]
                  },
                  "line": {
                    "type": "string"
                  }
                },
                "required": [
                  "share",
                  "prior",
                  "line"
                ]
              }
            },
            "required": [
              "version",
              "prior",
              "exits",
              "unmappedOpen",
              "basis",
              "choice",
              "borrowed"
            ]
          },
          "calibration": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "model": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "graded": {
                    "type": "number"
                  },
                  "minCount": {
                    "type": "number"
                  },
                  "note": {
                    "type": "string"
                  }
                },
                "required": [
                  "model",
                  "source",
                  "graded",
                  "minCount",
                  "note"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "deals": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "amount": {
                  "type": "number"
                },
                "stage": {
                  "type": "string"
                },
                "pWinBase": {
                  "type": "number"
                },
                "pWinScenario": {
                  "type": [
                    "number",
                    "null"
                  ]
                },
                "stalled": {
                  "type": "boolean"
                },
                "toggle": {
                  "type": "string",
                  "enum": [
                    "in",
                    "out",
                    "won"
                  ]
                },
                "calibration": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "bucket": {
                          "type": "number"
                        },
                        "label": {
                          "type": "string"
                        },
                        "count": {
                          "type": "number"
                        },
                        "observedRate": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "own": {
                          "type": "boolean"
                        },
                        "cohort": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "observedRate": {
                                  "type": "number"
                                },
                                "tenants": {
                                  "type": "number"
                                }
                              },
                              "required": [
                                "observedRate",
                                "tenants"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "line": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "bucket",
                        "label",
                        "count",
                        "observedRate",
                        "own",
                        "cohort",
                        "line"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "amount",
                "stage",
                "pWinBase",
                "pWinScenario",
                "stalled",
                "toggle",
                "calibration"
              ]
            }
          }
        },
        "required": [
          "levers",
          "quarter",
          "quarterEnd",
          "base",
          "scenario",
          "delta",
          "notes",
          "model",
          "calibration",
          "deals"
        ]
      }
    },
    {
      "key": "salesascode.explain_prediction",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "explain_prediction",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/explain_prediction"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "oppId": {
            "type": "string",
            "description": "The deal id predict_deal returns."
          },
          "name": {
            "type": "string",
            "description": "Part of the deal name, at least 3 characters."
          }
        }
      },
      "output_schema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "found": {
                "const": true
              },
              "quarter": {
                "type": "string"
              },
              "deal": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "stage": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "number"
                  },
                  "winThisQuarter": {
                    "type": "number"
                  },
                  "winEventually": {
                    "type": "number"
                  },
                  "winEventuallySignals": {
                    "type": "number"
                  },
                  "daysInStage": {
                    "type": "number"
                  },
                  "usualDaysInStage": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "stalled": {
                    "type": "boolean"
                  },
                  "drivers": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "signal": {
                          "type": "string"
                        },
                        "points": {
                          "type": "number"
                        },
                        "line": {
                          "type": "string"
                        },
                        "exits": {
                          "type": "number"
                        },
                        "thinEvidence": {
                          "type": "boolean"
                        },
                        "evidence": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "signal",
                        "points",
                        "line",
                        "exits",
                        "thinEvidence",
                        "evidence"
                      ]
                    }
                  },
                  "coverage": {
                    "type": "object",
                    "properties": {
                      "thin": {
                        "type": "boolean"
                      },
                      "label": {
                        "type": "string"
                      },
                      "missing": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "thin",
                      "label",
                      "missing"
                    ]
                  },
                  "calibration": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "bucket": {
                            "type": "number"
                          },
                          "label": {
                            "type": "string"
                          },
                          "count": {
                            "type": "number"
                          },
                          "observedRate": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "own": {
                            "type": "boolean"
                          },
                          "cohort": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "observedRate": {
                                    "type": "number"
                                  },
                                  "tenants": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "observedRate",
                                  "tenants"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "line": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "bucket",
                          "label",
                          "count",
                          "observedRate",
                          "own",
                          "cohort",
                          "line"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "id",
                  "name",
                  "stage",
                  "amount",
                  "winThisQuarter",
                  "winEventually",
                  "winEventuallySignals",
                  "daysInStage",
                  "usualDaysInStage",
                  "stalled",
                  "drivers",
                  "coverage",
                  "calibration"
                ]
              },
              "model": {
                "type": "object",
                "properties": {
                  "version": {
                    "type": "string"
                  },
                  "reason": {
                    "type": "string"
                  }
                },
                "required": [
                  "version",
                  "reason"
                ]
              },
              "basis": {
                "type": "string"
              },
              "borrowed": {
                "type": "object",
                "properties": {
                  "share": {
                    "type": "number"
                  },
                  "prior": {
                    "type": "string",
                    "enum": [
                      "cohort",
                      "default"
                    ]
                  },
                  "line": {
                    "type": "string"
                  }
                },
                "required": [
                  "share",
                  "prior",
                  "line"
                ]
              },
              "calibration": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "model": {
                        "type": "string"
                      },
                      "source": {
                        "type": "string"
                      },
                      "graded": {
                        "type": "number"
                      },
                      "minCount": {
                        "type": "number"
                      },
                      "note": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "model",
                      "source",
                      "graded",
                      "minCount",
                      "note"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "promises": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "signal": {
                      "type": "string"
                    },
                    "points": {
                      "const": 0
                    },
                    "line": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "signal",
                    "points",
                    "line"
                  ]
                }
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "found",
              "quarter",
              "deal",
              "model",
              "basis",
              "borrowed",
              "calibration",
              "promises",
              "summary"
            ]
          },
          {
            "type": "object",
            "properties": {
              "found": {
                "const": false
              },
              "quarter": {
                "type": "string"
              },
              "candidates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "stage": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "stage",
                    "amount"
                  ]
                }
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "found",
              "quarter",
              "candidates",
              "note"
            ]
          }
        ]
      }
    },
    {
      "key": "salesascode.whatif_deal",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "whatif_deal",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/whatif_deal"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "oppId": {
            "type": "string",
            "description": "The deal id predict_deal returns."
          },
          "name": {
            "type": "string",
            "description": "Part of the deal name, at least 3 characters."
          },
          "addExec": {
            "type": "boolean"
          },
          "slipWeeks": {
            "type": "number",
            "description": "Weeks the deal holds still, 1 to 26."
          },
          "discountPct": {
            "type": "number",
            "description": "Discount in percent, 1 to 50."
          }
        }
      },
      "output_schema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "found": {
                "const": true
              },
              "quarter": {
                "type": "string"
              },
              "deal": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "name": {
                    "type": "string"
                  },
                  "stage": {
                    "type": "string"
                  },
                  "amount": {
                    "type": "number"
                  },
                  "deal_id": {
                    "type": "string",
                    "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
                  },
                  "customer": {
                    "type": "string",
                    "description": "The family customer reference, cust:v1: and 64 hex, the same value CommitOps computes for the company. Present only when the org granted the customer join."
                  }
                },
                "required": [
                  "id",
                  "name",
                  "stage",
                  "amount",
                  "deal_id"
                ]
              },
              "levers": {
                "type": "object",
                "properties": {
                  "slip": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "oppId": {
                          "type": "string"
                        },
                        "days": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "oppId",
                        "days"
                      ]
                    }
                  },
                  "addExec": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "oppId": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "oppId"
                      ]
                    }
                  },
                  "icp": {
                    "type": "object",
                    "properties": {
                      "volume": {
                        "type": "number"
                      },
                      "winRate": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "volume",
                      "winRate"
                    ]
                  },
                  "hire": {
                    "type": "object",
                    "properties": {
                      "reps": {
                        "type": "number"
                      },
                      "rampDays": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "reps",
                      "rampDays"
                    ]
                  },
                  "price": {
                    "type": "object",
                    "properties": {
                      "pct": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "pct"
                    ]
                  },
                  "discount": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "oppId": {
                          "type": "string"
                        },
                        "pct": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "oppId",
                        "pct"
                      ]
                    }
                  }
                },
                "required": []
              },
              "odds": {
                "type": "object",
                "properties": {
                  "before": {
                    "type": "number"
                  },
                  "after": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "change": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "before",
                  "after",
                  "change"
                ]
              },
              "quarterP50": {
                "type": "object",
                "properties": {
                  "before": {
                    "type": "number"
                  },
                  "after": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "change": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "before",
                  "after",
                  "change"
                ]
              },
              "notes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "lever": {
                      "type": "string",
                      "enum": [
                        "slip",
                        "add_exec",
                        "icp",
                        "hire",
                        "price",
                        "discount",
                        "toggle"
                      ]
                    },
                    "evidence": {
                      "type": "string",
                      "enum": [
                        "causal",
                        "correlational",
                        "too-early",
                        "assumption"
                      ]
                    },
                    "detail": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "lever",
                    "evidence",
                    "detail"
                  ]
                }
              },
              "calibration": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "bucket": {
                        "type": "number"
                      },
                      "label": {
                        "type": "string"
                      },
                      "count": {
                        "type": "number"
                      },
                      "observedRate": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "own": {
                        "type": "boolean"
                      },
                      "cohort": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "observedRate": {
                                "type": "number"
                              },
                              "tenants": {
                                "type": "number"
                              }
                            },
                            "required": [
                              "observedRate",
                              "tenants"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "line": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "bucket",
                      "label",
                      "count",
                      "observedRate",
                      "own",
                      "cohort",
                      "line"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "basis": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "found",
              "quarter",
              "deal",
              "levers",
              "odds",
              "quarterP50",
              "notes",
              "calibration",
              "basis",
              "summary"
            ]
          },
          {
            "type": "object",
            "properties": {
              "found": {
                "const": false
              },
              "quarter": {
                "type": "string"
              },
              "candidates": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "stage": {
                      "type": "string"
                    },
                    "amount": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "stage",
                    "amount"
                  ]
                }
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "found",
              "quarter",
              "candidates",
              "note"
            ]
          }
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.propose_action",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "propose_action",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/propose_action"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [
        "crm.write"
      ],
      "risk": "medium",
      "input_schema": {
        "type": "object",
        "required": [
          "oppId",
          "play"
        ],
        "properties": {
          "oppId": {
            "type": "string",
            "description": "The deal id predict_deal returns."
          },
          "play": {
            "type": "string",
            "enum": [
              "add_exec",
              "re_engage",
              "multithread"
            ]
          },
          "product": {
            "type": "string",
            "description": "Your plugin id (salescron, leadercron, ...). Labels the proposal in the review queue when this account holds it."
          },
          "task": {
            "type": "string",
            "description": "Optional. The RepoOps task id this decision acts for, T- and a 26 character ULID. Stored on the decision, and the decision is attached to that task."
          }
        }
      },
      "output_schema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "proposed": {
                "const": true
              },
              "proposalId": {
                "type": "string"
              },
              "status": {
                "const": "proposed"
              },
              "play": {
                "type": "string",
                "enum": [
                  "add_exec",
                  "re_engage",
                  "multithread"
                ]
              },
              "dealId": {
                "type": "string"
              },
              "nextStep": {
                "type": "string"
              },
              "predictedEffect": {
                "type": "object"
              },
              "predicted": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pWinBefore": {
                        "type": "number"
                      },
                      "pWinAfter": {
                        "type": "number"
                      },
                      "valueDelta": {
                        "type": "number"
                      },
                      "evidence": {
                        "type": "string"
                      },
                      "line": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "pWinBefore",
                      "pWinAfter",
                      "valueDelta",
                      "evidence",
                      "line"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "fromBrief": {
                "type": "boolean"
              },
              "routed": {
                "type": "boolean"
              },
              "approvalUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "taskId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "taskRef": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "sent": {
                        "type": "boolean"
                      },
                      "status": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "changed": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "error": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "skipped": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "sent",
                      "status",
                      "changed",
                      "error",
                      "skipped"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "reviewUrl": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "proposed",
              "proposalId",
              "status",
              "play",
              "dealId",
              "nextStep",
              "predictedEffect",
              "predicted",
              "fromBrief",
              "routed",
              "approvalUrl",
              "taskId",
              "taskRef",
              "reviewUrl",
              "note"
            ]
          },
          {
            "type": "object",
            "properties": {
              "proposed": {
                "const": false
              },
              "refused": {
                "type": "string",
                "enum": [
                  "held_out",
                  "denied",
                  "policy_unavailable",
                  "already_proposed",
                  "not_in_brief",
                  "not_found"
                ]
              },
              "message": {
                "type": "string"
              },
              "proposalId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "proposed",
              "refused",
              "message"
            ]
          }
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.tag_deal_capability",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "tag_deal_capability",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/tag_deal_capability"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "low",
      "input_schema": {
        "type": "object",
        "required": [
          "oppId",
          "capability",
          "neededBy"
        ],
        "properties": {
          "oppId": {
            "type": "string",
            "description": "The deal id predict_deal returns."
          },
          "capability": {
            "type": "string",
            "description": "A slug or a few words, at most 200 characters."
          },
          "neededBy": {
            "type": "string",
            "description": "YYYY-MM-DD."
          },
          "task": {
            "type": "string",
            "description": "Optional. The RepoOps task id the capability waits on, T- and a 26 character ULID. Left out keeps the task already named; an empty string clears it."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "tag": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "oppId": {
                "type": "string"
              },
              "capability": {
                "type": "string"
              },
              "neededBy": {
                "type": "string"
              },
              "sentAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sendError": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "answer": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "verdict": {
                        "type": "string",
                        "enum": [
                          "shipped",
                          "projected_before",
                          "projected_after",
                          "cannot_tell"
                        ]
                      },
                      "projected_on": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "n": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "reasons": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "say_instead": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "capability": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "verdict",
                      "projected_on",
                      "n",
                      "reasons",
                      "say_instead",
                      "capability"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "answeredAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "risks": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "statement": {
                      "type": "string"
                    },
                    "capability": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "incident": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "recovered": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "statement",
                    "capability",
                    "incident"
                  ]
                }
              },
              "taskId": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "id",
              "oppId",
              "capability",
              "neededBy",
              "sentAt",
              "sendError",
              "answer",
              "answeredAt"
            ]
          },
          "deal_id": {
            "type": "string",
            "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
          },
          "customer": {
            "type": "string",
            "description": "The family customer reference, cust:v1: and 64 hex, the same value CommitOps computes for the company. Present only when the org granted the customer join."
          },
          "connected": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "tag",
          "deal_id",
          "connected",
          "note"
        ]
      }
    },
    {
      "key": "salesascode.cost_per_outcome",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "cost_per_outcome",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/cost_per_outcome"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "days": {
            "type": "number",
            "description": "Window in days, 1 to 365. Default 90."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "days": {
            "type": "number"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "spend": {
            "type": "object",
            "properties": {
              "totalCents": {
                "type": "number"
              },
              "oursCents": {
                "type": "number"
              },
              "byokCents": {
                "type": "number"
              },
              "failedCents": {
                "type": "number"
              }
            },
            "required": [
              "totalCents",
              "oursCents",
              "byokCents"
            ]
          },
          "failedCalls": {
            "type": "number"
          },
          "agentActions": {
            "type": "number"
          },
          "forecasts": {
            "type": "number"
          },
          "wonDeals": {
            "type": "number"
          },
          "perForecastCents": {
            "type": [
              "number",
              "null"
            ]
          },
          "perWonDealCents": {
            "type": [
              "number",
              "null"
            ]
          },
          "basis": {
            "type": "string"
          }
        },
        "required": [
          "days",
          "from",
          "to",
          "spend",
          "agentActions",
          "forecasts",
          "wonDeals",
          "perForecastCents",
          "perWonDealCents",
          "basis"
        ]
      }
    },
    {
      "key": "salesascode.check_deal_brief",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "check_deal_brief",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/check_deal_brief"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "required": [
          "deal_id",
          "brief"
        ],
        "properties": {
          "deal_id": {
            "type": "string",
            "description": "The opportunity id, or the family deal id (deal_ and a ULID)."
          },
          "brief": {
            "type": "string",
            "description": "The brief text, up to 20,000 characters."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "deal_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "crm_read": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "read": {
                    "type": "boolean"
                  },
                  "deal_id": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "source": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "fields": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "required": [
                  "read",
                  "deal_id",
                  "source",
                  "fields"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "verdict": {
            "type": "string",
            "enum": [
              "passed",
              "unverified"
            ]
          },
          "figures": {
            "type": "number"
          },
          "cited": {
            "type": "number"
          },
          "problems": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "figure": {
                  "type": "string"
                },
                "sentence": {
                  "type": "string"
                },
                "problem": {
                  "type": "string",
                  "enum": [
                    "uncited",
                    "unknown_field",
                    "value_differs"
                  ]
                },
                "cited": {
                  "type": "string"
                }
              },
              "required": [
                "figure",
                "sentence",
                "problem"
              ]
            }
          },
          "rule": {
            "type": "string"
          }
        },
        "required": [
          "deal_id",
          "crm_read",
          "verdict",
          "figures",
          "cited",
          "problems",
          "rule"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.propose_deal_terms",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "propose_deal_terms",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/propose_deal_terms"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [
        "sales.discount.approve",
        "sales.commitment.approve"
      ],
      "risk": "high",
      "input_schema": {
        "type": "object",
        "required": [
          "oppId",
          "kind"
        ],
        "properties": {
          "oppId": {
            "type": "string",
            "description": "The deal id predict_deal returns."
          },
          "kind": {
            "type": "string",
            "enum": [
              "discount",
              "commitment"
            ]
          },
          "discountPct": {
            "type": "number",
            "description": "Percent off, above 0 and at most 100. Discount only."
          },
          "paymentTerms": {
            "type": "string",
            "description": "A short code such as net_30 or annual_upfront. Discount only."
          },
          "capability": {
            "type": "string",
            "description": "What is promised, a slug or a few words. Commitment only."
          },
          "promiseBy": {
            "type": "string",
            "description": "YYYY-MM-DD. Commitment only."
          },
          "commitmentText": {
            "type": "string",
            "description": "The words the customer is told, at most 2000 characters. Commitment only. Once approved in PromptCompute it becomes the promise CommitOps tracks."
          },
          "note": {
            "type": "string",
            "description": "Why, at most 500 characters. Stays in Sales as Code."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "proposed": {
            "const": true
          },
          "proposal": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "oppId": {
                "type": "string"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "discount",
                  "commitment"
                ]
              },
              "discountPct": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "paymentTerms": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "capability": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "promiseBy": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "note": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "commitmentText": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "customerRef": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "evidence": {
                "type": "object",
                "properties": {
                  "forecast": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "right": {
                            "type": "number"
                          },
                          "total": {
                            "type": "number"
                          },
                          "from": {
                            "type": "string"
                          },
                          "to": {
                            "type": "string"
                          },
                          "definition": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "right",
                          "total",
                          "from",
                          "to",
                          "definition"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "pWin": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "promise": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "capability": {
                            "type": "string"
                          },
                          "neededBy": {
                            "type": "string"
                          },
                          "answer": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "verdict": {
                                    "type": "string",
                                    "enum": [
                                      "shipped",
                                      "projected_before",
                                      "projected_after",
                                      "cannot_tell"
                                    ]
                                  },
                                  "projected_on": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "n": {
                                    "type": [
                                      "number",
                                      "null"
                                    ]
                                  },
                                  "reasons": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    }
                                  },
                                  "say_instead": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "capability": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                },
                                "required": [
                                  "verdict",
                                  "projected_on",
                                  "n",
                                  "reasons",
                                  "say_instead",
                                  "capability"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "accuracy": {
                            "anyOf": [
                              {
                                "type": "object",
                                "properties": {
                                  "n": {
                                    "type": "number"
                                  },
                                  "median_error_days": {
                                    "type": "number"
                                  },
                                  "within_7_share": {
                                    "type": "number"
                                  }
                                },
                                "required": [
                                  "n",
                                  "median_error_days",
                                  "within_7_share"
                                ]
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "capability",
                          "neededBy",
                          "answer",
                          "accuracy"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "readAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "forecast",
                  "pWin",
                  "promise",
                  "readAt"
                ]
              },
              "proposedBy": {
                "type": "string",
                "enum": [
                  "agent",
                  "person"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "waiting",
                  "approved",
                  "refused"
                ]
              },
              "decidedVia": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "person",
                  "promptcompute",
                  null
                ]
              },
              "decidedAt": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "createdAt": {
                "type": "string"
              },
              "outcome": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "won",
                  "lost",
                  null
                ]
              },
              "grade": {
                "type": [
                  "string",
                  "null"
                ],
                "enum": [
                  "approved_won",
                  "approved_lost",
                  "refused_won",
                  "refused_lost",
                  null
                ]
              },
              "commitopsSent": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "ok": {
                        "type": "boolean"
                      },
                      "at": {
                        "type": "string"
                      },
                      "promise": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "duplicate": {
                        "type": "boolean"
                      },
                      "error": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "ok",
                      "at"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "dealId": {
                "type": "string",
                "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
              }
            },
            "required": [
              "id",
              "oppId",
              "kind",
              "discountPct",
              "paymentTerms",
              "capability",
              "promiseBy",
              "note",
              "evidence",
              "proposedBy",
              "status",
              "decidedVia",
              "decidedAt",
              "createdAt",
              "outcome",
              "grade",
              "commitopsSent",
              "dealId"
            ]
          },
          "evidence": {
            "type": "string"
          },
          "routed": {
            "type": "boolean"
          },
          "reviewUrl": {
            "type": "string"
          },
          "deal_id": {
            "type": "string",
            "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
          },
          "customer": {
            "type": "string",
            "description": "The family customer reference, cust:v1: and 64 hex, the same value CommitOps computes for the company. Present only when the org granted the customer join."
          }
        },
        "required": [
          "proposed",
          "proposal",
          "evidence",
          "routed",
          "reviewUrl",
          "deal_id"
        ]
      }
    },
    {
      "key": "salesascode.investor_update_forecast",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "investor_update_forecast",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/investor_update_forecast"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "month": {
            "type": "string",
            "description": "The month, YYYY-MM. Default the last full month."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "month": {
            "type": "string"
          },
          "from": {
            "type": "string"
          },
          "to": {
            "type": "string"
          },
          "complete": {
            "type": "boolean"
          },
          "pipeline": {
            "type": "object",
            "properties": {
              "start": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "day": {
                        "type": "string"
                      },
                      "openDeals": {
                        "type": "number"
                      },
                      "openAmount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "record": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "day",
                      "openDeals",
                      "openAmount",
                      "record"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "end": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "day": {
                        "type": "string"
                      },
                      "openDeals": {
                        "type": "number"
                      },
                      "openAmount": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "record": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "day",
                      "openDeals",
                      "openAmount",
                      "record"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "change": {
                "type": "object",
                "properties": {
                  "openDeals": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "openAmount": {
                    "type": [
                      "number",
                      "null"
                    ]
                  }
                },
                "required": [
                  "openDeals",
                  "openAmount"
                ]
              },
              "newDeals": {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "number"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "more": {
                    "type": "number"
                  }
                },
                "required": [
                  "n",
                  "records",
                  "more"
                ]
              },
              "won": {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "number"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "more": {
                    "type": "number"
                  }
                },
                "required": [
                  "n",
                  "records",
                  "more"
                ]
              },
              "lost": {
                "type": "object",
                "properties": {
                  "n": {
                    "type": "number"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "more": {
                    "type": "number"
                  }
                },
                "required": [
                  "n",
                  "records",
                  "more"
                ]
              }
            },
            "required": [
              "start",
              "end",
              "change",
              "newDeals",
              "won",
              "lost"
            ]
          },
          "forecast": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "quarter": {
                    "type": "string"
                  },
                  "p10": {
                    "type": "number"
                  },
                  "p50": {
                    "type": "number"
                  },
                  "p90": {
                    "type": "number"
                  },
                  "p50Change": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "day": {
                    "type": "string"
                  },
                  "record": {
                    "type": "string"
                  }
                },
                "required": [
                  "quarter",
                  "p10",
                  "p50",
                  "p90",
                  "p50Change",
                  "day",
                  "record"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "grades": {
            "type": "object",
            "properties": {
              "month": {
                "type": "object",
                "properties": {
                  "right": {
                    "type": "number"
                  },
                  "total": {
                    "type": "number"
                  },
                  "rate": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "definition": {
                    "type": "string"
                  },
                  "tooFew": {
                    "type": "boolean"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "more": {
                    "type": "number"
                  }
                },
                "required": [
                  "right",
                  "total",
                  "rate",
                  "from",
                  "to",
                  "definition",
                  "tooFew",
                  "records",
                  "more"
                ]
              },
              "trailing": {
                "type": "object",
                "properties": {
                  "right": {
                    "type": "number"
                  },
                  "total": {
                    "type": "number"
                  },
                  "rate": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "definition": {
                    "type": "string"
                  },
                  "tooFew": {
                    "type": "boolean"
                  },
                  "records": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "more": {
                    "type": "number"
                  }
                },
                "required": [
                  "right",
                  "total",
                  "rate",
                  "from",
                  "to",
                  "definition",
                  "tooFew",
                  "records",
                  "more"
                ]
              }
            },
            "required": [
              "month",
              "trailing"
            ]
          },
          "definitions": {
            "type": "object",
            "properties": {
              "pipeline": {
                "type": "string"
              },
              "newDeals": {
                "type": "string"
              },
              "closed": {
                "type": "string"
              },
              "forecast": {
                "type": "string"
              },
              "right": {
                "type": "string"
              }
            },
            "required": [
              "pipeline",
              "newDeals",
              "closed",
              "forecast",
              "right"
            ]
          },
          "url": {
            "type": "string"
          },
          "statement": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "specversion": {
                    "type": "string"
                  },
                  "id": {
                    "type": "string"
                  },
                  "source": {
                    "type": "string"
                  },
                  "type": {
                    "type": "string"
                  },
                  "subject": {
                    "type": "string"
                  },
                  "time": {
                    "type": "string"
                  },
                  "datacontenttype": {
                    "type": "string"
                  },
                  "dataschema": {
                    "type": "string"
                  },
                  "signature": {
                    "type": "string"
                  },
                  "data": {
                    "type": "object"
                  }
                },
                "required": [
                  "specversion",
                  "id",
                  "source",
                  "type",
                  "subject",
                  "time",
                  "datacontenttype",
                  "dataschema",
                  "signature",
                  "data"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "statementNote": {
            "type": "string"
          }
        },
        "required": [
          "month",
          "from",
          "to",
          "complete",
          "pipeline",
          "forecast",
          "grades",
          "definitions",
          "url",
          "statement",
          "statementNote"
        ]
      }
    },
    {
      "key": "salesascode.crm_read",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "crm_read",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/crm_read"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "provider": {
            "type": "string",
            "enum": [
              "hubspot_api",
              "salesforce",
              "attio",
              "salesloft"
            ],
            "description": "Omit to get the connector states only."
          },
          "entity": {
            "type": "string",
            "enum": [
              "account",
              "opp",
              "prospect"
            ],
            "description": "HubSpot, Salesforce and Attio only."
          },
          "limit": {
            "type": "number",
            "description": "1 to 100. Default 25."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "connectors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "enum": [
                    "hubspot_api",
                    "salesforce",
                    "attio",
                    "salesloft"
                  ]
                },
                "label": {
                  "type": "string"
                },
                "state": {
                  "type": "string",
                  "enum": [
                    "connected",
                    "not_connected",
                    "switching_on"
                  ]
                },
                "reads": {
                  "type": "string"
                },
                "writes": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "label",
                "state",
                "reads",
                "writes",
                "note"
              ]
            }
          },
          "provider": {
            "type": "string",
            "enum": [
              "hubspot_api",
              "salesforce",
              "attio",
              "salesloft"
            ]
          },
          "records": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "provider": {
                  "type": "string",
                  "enum": [
                    "hubspot_api",
                    "salesforce",
                    "attio",
                    "salesloft"
                  ]
                },
                "entity": {
                  "type": "string",
                  "enum": [
                    "account",
                    "opp",
                    "prospect",
                    "activity"
                  ]
                },
                "crmId": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "name": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "updatedAt": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "fields": {
                  "type": "object"
                }
              },
              "required": [
                "id",
                "provider",
                "entity",
                "crmId",
                "name",
                "updatedAt",
                "fields"
              ]
            }
          }
        },
        "required": [
          "connectors"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.propose_crm_write",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "propose_crm_write",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/propose_crm_write"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [
        "crm.write"
      ],
      "risk": "medium",
      "input_schema": {
        "type": "object",
        "required": [
          "recordId",
          "kind",
          "text"
        ],
        "properties": {
          "recordId": {
            "type": "string",
            "description": "An id from crm_read, or salesloft:person:<id>."
          },
          "kind": {
            "type": "string",
            "enum": [
              "next_step",
              "note"
            ]
          },
          "text": {
            "type": "string",
            "description": "The next step or the note, up to 2000 characters."
          },
          "dueDate": {
            "type": "string",
            "description": "Next step only: YYYY-MM-DD."
          }
        }
      },
      "output_schema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "proposed": {
                "const": true
              },
              "proposalId": {
                "type": "string"
              },
              "provider": {
                "type": "string",
                "enum": [
                  "hubspot_api",
                  "salesforce",
                  "attio",
                  "salesloft"
                ]
              },
              "kind": {
                "type": "string",
                "enum": [
                  "next_step",
                  "note"
                ]
              },
              "routed": {
                "type": "boolean"
              },
              "approvalUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "reviewUrl": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "proposed",
              "proposalId",
              "provider",
              "kind",
              "routed",
              "approvalUrl",
              "reviewUrl",
              "note"
            ]
          },
          {
            "type": "object",
            "properties": {
              "proposed": {
                "const": false
              },
              "refused": {
                "type": "string",
                "enum": [
                  "invalid_input",
                  "denied",
                  "policy_unavailable",
                  "not_found",
                  "not_supported",
                  "not_connected"
                ]
              },
              "message": {
                "type": "string"
              },
              "proposalId": {
                "type": "string"
              },
              "status": {
                "type": "string"
              }
            },
            "required": [
              "proposed",
              "refused",
              "message"
            ]
          }
        ]
      }
    },
    {
      "key": "salesascode.published_grades",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "published_grades",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/published_grades"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {}
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "off",
              "dry-run",
              "live"
            ]
          },
          "switchedOn": {
            "type": "boolean"
          },
          "published": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "week": {
                    "type": "string"
                  },
                  "from": {
                    "type": "string"
                  },
                  "to": {
                    "type": "string"
                  },
                  "right": {
                    "type": "number"
                  },
                  "total": {
                    "type": "number"
                  },
                  "orgs": {
                    "type": "number"
                  },
                  "min_orgs": {
                    "type": "number"
                  },
                  "min_graded": {
                    "type": "number"
                  },
                  "max_org_share": {
                    "type": "number"
                  },
                  "definition": {
                    "type": "string"
                  },
                  "digest": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  },
                  "badgeUrl": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "publishedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "week",
                  "from",
                  "to",
                  "right",
                  "total",
                  "orgs",
                  "min_orgs",
                  "min_graded",
                  "max_org_share",
                  "definition",
                  "digest",
                  "url",
                  "badgeUrl",
                  "publishedAt"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "latestRun": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "week": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "off",
                      "below_floor",
                      "dry-run",
                      "blocked",
                      "published",
                      "error"
                    ]
                  },
                  "note": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "ranAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "week",
                  "status",
                  "note",
                  "ranAt"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "floors": {
            "type": "object",
            "properties": {
              "minOrgs": {
                "type": "number"
              },
              "minGraded": {
                "type": "number"
              },
              "maxOrgShare": {
                "type": "number"
              }
            },
            "required": [
              "minOrgs",
              "minGraded",
              "maxOrgShare"
            ]
          },
          "definition": {
            "type": "string"
          },
          "org": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "optedIn": {
                    "type": "boolean"
                  },
                  "optedInAt": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "mayChange": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "optedIn",
                  "optedInAt",
                  "mayChange"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "mode",
          "switchedOn",
          "published",
          "latestRun",
          "floors",
          "definition",
          "org",
          "note"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.site_action",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "site_action",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/site_action"
      },
      "scope": "site.write",
      "requires_entitlement": true,
      "catalog_keys": [],
      "catalog_gap": "No PromptCompute catalog action key for this write yet; approved under mcp.tool.call. Tracked in https://github.com/RepoOps/PromptReports/blob/main/openspec/changes/wp-39-decision-parity/tasks.md (5.1).",
      "risk": "medium",
      "input_schema": {
        "type": "object",
        "required": [
          "route",
          "method"
        ],
        "properties": {
          "route": {
            "type": "string",
            "enum": [
              "/api/attribution/revenue",
              "/api/content/aeo",
              "/api/content/aeo-fixes",
              "/api/content/aeo-questions",
              "/api/content/citations-rerun",
              "/api/integrations/[provider]/backfill",
              "/api/integrations/[provider]/cadence",
              "/api/integrations/[provider]/check-access",
              "/api/integrations/[provider]/poll",
              "/api/integrations/enrichment/auto-fire",
              "/api/me/account-tier-proposals",
              "/api/me/action-items",
              "/api/me/action-items/[id]",
              "/api/me/ai-usage",
              "/api/me/benchmarks-opt",
              "/api/me/brain/[subject]",
              "/api/me/brain/import",
              "/api/me/cadence/step",
              "/api/me/calibration",
              "/api/me/client-rules",
              "/api/me/coach-feedback",
              "/api/me/cohort-benchmark",
              "/api/me/comp",
              "/api/me/companies",
              "/api/me/compete",
              "/api/me/consequence-map",
              "/api/me/console/demo",
              "/api/me/console/handoffs",
              "/api/me/console/knowledge",
              "/api/me/console/run-checks",
              "/api/me/console/run-now",
              "/api/me/contact-hook",
              "/api/me/contact-signals",
              "/api/me/conversation-history",
              "/api/me/copilot",
              "/api/me/copilot-match",
              "/api/me/crm-import",
              "/api/me/custom-agents",
              "/api/me/day",
              "/api/me/day/act",
              "/api/me/deal-capabilities",
              "/api/me/deal-retros",
              "/api/me/deal-terms",
              "/api/me/deck-render",
              "/api/me/desk/precedents",
              "/api/me/desk/slack-channels",
              "/api/me/desk/tickets",
              "/api/me/digest-pref",
              "/api/me/discovered",
              "/api/me/draft-correction",
              "/api/me/draft-rules",
              "/api/me/first-touch",
              "/api/me/gap-questions",
              "/api/me/goals",
              "/api/me/hire-kpi",
              "/api/me/hosted-config",
              "/api/me/hygiene",
              "/api/me/icp-derivation",
              "/api/me/icp-profile",
              "/api/me/identity",
              "/api/me/inbound-events",
              "/api/me/inbound-reply",
              "/api/me/inbox",
              "/api/me/intake",
              "/api/me/integrations/gong",
              "/api/me/leaderboard",
              "/api/me/leaderboard-opt",
              "/api/me/leads/[id]",
              "/api/me/mailbox-health",
              "/api/me/mcp/probe",
              "/api/me/meddpicc-field-map",
              "/api/me/meddpicc-pull",
              "/api/me/meeting-prep-v2",
              "/api/me/morning-draft",
              "/api/me/onboarding-agent",
              "/api/me/onboarding-events",
              "/api/me/org/ask",
              "/api/me/org/inbox",
              "/api/me/owned-connectors/sync",
              "/api/me/pattern-recall",
              "/api/me/postmortems",
              "/api/me/pov-deck",
              "/api/me/pricing",
              "/api/me/proposal-signatures",
              "/api/me/qa-prediction",
              "/api/me/quota",
              "/api/me/receipts",
              "/api/me/red-team",
              "/api/me/reply-opportunity",
              "/api/me/revenue-target",
              "/api/me/roleplay",
              "/api/me/signals",
              "/api/me/skills/validate",
              "/api/me/talk-tracks",
              "/api/me/talk-tracks/use",
              "/api/me/team-work",
              "/api/me/timezone",
              "/api/me/visitors",
              "/api/me/win-pattern",
              "/api/me/world/propose",
              "/api/me/world/scenarios",
              "/api/me/world/simulate",
              "/api/me/world/starter",
              "/api/me/writing-rules-pref",
              "/api/panels/[entity]/[id]",
              "/api/scoring/explain",
              "/api/studio/calendar",
              "/api/studio/check-publication",
              "/api/studio/dossier",
              "/api/studio/dossier/assist",
              "/api/studio/draft-revise",
              "/api/studio/drafts",
              "/api/studio/founder-input",
              "/api/studio/giveaway",
              "/api/studio/goal",
              "/api/studio/upload",
              "/api/studio/voices",
              "/api/team-admin/leaderboard-config",
              "/api/teams/me",
              "/api/whisper/sessions"
            ]
          },
          "method": {
            "type": "string",
            "enum": [
              "POST",
              "PUT",
              "PATCH",
              "DELETE"
            ]
          },
          "params": {
            "type": "object",
            "description": "values for the route segments in brackets, such as { \"id\": \"...\" }"
          },
          "query": {
            "type": "object",
            "description": "query string values the route reads"
          },
          "body": {
            "description": "the JSON body the page sends"
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "status": {
            "type": "number"
          },
          "body": {}
        },
        "required": [
          "status",
          "body"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.revoke_agent_key",
      "major": 1,
      "effect": "destructive",
      "transport": "mcp",
      "tool": "revoke_agent_key",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/revoke_agent_key"
      },
      "scope": "key.revoke",
      "requires_entitlement": false,
      "catalog_keys": [
        "salesascode.agent_key.revoke"
      ],
      "risk": "high",
      "family_class": "credentials",
      "hold_exempt": "removes_access",
      "input_schema": {
        "type": "object",
        "required": [
          "run_id"
        ],
        "properties": {
          "key_id": {
            "type": "string",
            "description": "The API key to revoke, by id. Give this or agent."
          },
          "agent": {
            "type": "string",
            "description": "The PromptReports agent (the act.sub of its ID agent token) to refuse here for this person. Give this or key_id."
          },
          "approval_id": {
            "type": "string",
            "description": "Optional: a PromptCompute approval id to keep in the audit log as a note. Not checked."
          },
          "run_id": {
            "type": "string",
            "description": "The PromptReports run, wr_ and 26 lowercase base32 characters, the same as the X-PromptReports-Run header."
          },
          "reason": {
            "type": "string",
            "description": "Why, in a person's words, at most 500 characters. Kept in the audit log."
          }
        }
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "key_id": {
            "type": "string"
          },
          "agent": {
            "type": [
              "string",
              "null"
            ]
          },
          "revoked_at": {
            "type": "string"
          },
          "replayed": {
            "type": "boolean"
          },
          "run_id": {
            "type": "string"
          },
          "approval_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "key_id",
          "agent",
          "revoked_at",
          "replayed",
          "run_id",
          "approval_id",
          "note"
        ]
      }
    },
    {
      "key": "salesascode.list_sessions",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "list_sessions",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/list_sessions"
      },
      "scope": "account.read",
      "requires_entitlement": false,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {}
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "sessions": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "created_at": {
                  "type": "string"
                },
                "expires_at": {
                  "type": "string"
                },
                "user_agent": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "staff": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "created_at",
                "expires_at",
                "user_agent",
                "staff"
              ]
            }
          },
          "count": {
            "type": "number"
          },
          "truncated": {
            "type": "boolean"
          }
        },
        "required": [
          "sessions",
          "count",
          "truncated"
        ]
      }
    },
    {
      "key": "salesascode.get_deal",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "get_deal",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/get_deal"
      },
      "scope": "account.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {
          "deal_id": {
            "type": "string",
            "description": "The family deal id, deal_ and a 26 character ULID."
          }
        },
        "required": [
          "deal_id"
        ]
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "deal_id": {
            "type": "string",
            "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "stage": {
            "type": [
              "string",
              "null"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "won",
              "lost"
            ]
          },
          "amount": {
            "type": [
              "number",
              "null"
            ]
          },
          "close_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "account_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": "string"
          },
          "customer": {
            "type": "string",
            "description": "The family customer reference, cust:v1: and 64 hex, the same value CommitOps computes for the company. Present only when the org granted the customer join."
          }
        },
        "required": [
          "deal_id",
          "name",
          "stage",
          "status",
          "amount",
          "close_date",
          "account_name",
          "url"
        ]
      }
    },
    {
      "key": "salesascode.get_snapshot",
      "major": 1,
      "effect": "read",
      "transport": "mcp",
      "tool": "get_snapshot",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/get_snapshot"
      },
      "scope": "brief.read",
      "requires_entitlement": true,
      "catalog_keys": [],
      "input_schema": {
        "type": "object",
        "properties": {}
      },
      "output_schema": {
        "type": "object",
        "properties": {
          "format": {
            "type": "string",
            "const": "family-snapshot/v1"
          },
          "product": {
            "type": "string",
            "const": "salesascode"
          },
          "not_available": {
            "type": "string"
          },
          "headline": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "count": {
                    "type": "integer"
                  },
                  "label": {
                    "type": "string"
                  },
                  "as_of": {
                    "type": "string"
                  }
                },
                "required": [
                  "count",
                  "label",
                  "as_of"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "not_available": {
                    "type": "string"
                  }
                },
                "required": [
                  "not_available"
                ]
              }
            ]
          },
          "facts": {
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "label": {
                      "type": "string"
                    },
                    "as_of": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "count",
                    "label",
                    "as_of"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "date": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "as_of": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "date",
                    "label",
                    "as_of"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "not_available": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "not_available"
                  ]
                }
              ]
            }
          },
          "flag": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "level": {
                    "type": "string",
                    "enum": [
                      "ok",
                      "attention"
                    ]
                  },
                  "count": {
                    "type": "integer"
                  },
                  "label": {
                    "type": "string"
                  },
                  "as_of": {
                    "type": "string"
                  }
                },
                "required": [
                  "level",
                  "count",
                  "label",
                  "as_of"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "not_available": {
                    "type": "string"
                  }
                },
                "required": [
                  "not_available"
                ]
              }
            ]
          },
          "link": {
            "type": "object",
            "properties": {
              "url": {
                "type": "string"
              },
              "as_of": {
                "type": "string"
              }
            },
            "required": [
              "url",
              "as_of"
            ]
          }
        },
        "required": [
          "format",
          "product"
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.request_draft_send",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "request_draft_send",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/request_draft_send"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [
        "outbound.send",
        "sales.proposal.send"
      ],
      "risk": "high",
      "input_schema": {
        "type": "object",
        "required": [
          "draft_id",
          "channel",
          "to"
        ],
        "properties": {
          "draft_id": {
            "type": "string",
            "description": "A draft id from your queue."
          },
          "channel": {
            "type": "string",
            "enum": [
              "email",
              "linkedin"
            ]
          },
          "to": {
            "type": "string",
            "description": "The recipient: an email address, or a LinkedIn profile for linkedin."
          },
          "subject": {
            "type": "string",
            "description": "Email only: the subject line."
          },
          "reply_to_message_id": {
            "type": "string",
            "description": "Optional. The message this send answers, so it lands in that thread."
          },
          "sender": {
            "type": "string",
            "enum": [
              "gmail",
              "outlook",
              "instantly"
            ],
            "description": "Optional. Email only: which connected tool sends it."
          },
          "deal_id": {
            "type": "string",
            "description": "Optional. The family deal id (deal_ and a ULID) this send is a proposal for."
          }
        }
      },
      "output_schema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "requested": {
                "const": true
              },
              "status": {
                "type": "string",
                "enum": [
                  "awaiting_approval",
                  "approved"
                ]
              },
              "routedId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "approvalUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "action": {
                "type": "string",
                "enum": [
                  "outbound.send",
                  "sales.proposal.send"
                ]
              },
              "dealId": {
                "type": "string",
                "description": "The family deal id: deal_ and a 26 character ULID, uppercase Crockford base32."
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "requested",
              "status",
              "routedId",
              "approvalUrl",
              "action",
              "note"
            ]
          },
          {
            "type": "object",
            "properties": {
              "requested": {
                "const": false
              },
              "refused": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "requested",
              "refused",
              "message"
            ]
          }
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.request_sequence_enroll",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "request_sequence_enroll",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/request_sequence_enroll"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [
        "sales.sequence.enroll"
      ],
      "risk": "high",
      "input_schema": {
        "type": "object",
        "required": [
          "draft_id",
          "recipient_email"
        ],
        "properties": {
          "draft_id": {
            "type": "string",
            "description": "A draft id from your queue: the first email of the sequence."
          },
          "recipient_email": {
            "type": "string",
            "description": "The contact to enroll."
          }
        }
      },
      "output_schema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "requested": {
                "const": true
              },
              "status": {
                "type": "string",
                "enum": [
                  "awaiting_approval",
                  "approved"
                ]
              },
              "routedId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "approvalUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "action": {
                "const": "sales.sequence.enroll"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "requested",
              "status",
              "routedId",
              "approvalUrl",
              "action",
              "note"
            ]
          },
          {
            "type": "object",
            "properties": {
              "requested": {
                "const": false
              },
              "refused": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "requested",
              "refused",
              "message"
            ]
          }
        ]
      }
    },
    {
      "idempotency_key": true,
      "key": "salesascode.request_audience_export",
      "major": 1,
      "effect": "write",
      "transport": "mcp",
      "tool": "request_audience_export",
      "operation": {
        "method": "POST",
        "path": "/api/v1/tools/request_audience_export"
      },
      "scope": "prospect.write",
      "requires_entitlement": true,
      "catalog_keys": [
        "audience.export"
      ],
      "risk": "high",
      "input_schema": {
        "type": "object",
        "required": [
          "platform"
        ],
        "properties": {
          "platform": {
            "type": "string",
            "description": "The ad platform id, as the export page lists them."
          },
          "tiers": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "T1",
                "T2",
                "T3",
                "untiered"
              ]
            },
            "description": "Optional. The tiers to include; T1, T2 and untiered when left out."
          }
        }
      },
      "output_schema": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "requested": {
                "const": true
              },
              "status": {
                "type": "string",
                "enum": [
                  "awaiting_approval",
                  "approved"
                ]
              },
              "routedId": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "approvalUrl": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "action": {
                "const": "audience.export"
              },
              "platform": {
                "type": "string"
              },
              "included": {
                "type": "number"
              },
              "held": {
                "type": "number"
              },
              "downloadUrl": {
                "type": "string"
              },
              "note": {
                "type": "string"
              }
            },
            "required": [
              "requested",
              "status",
              "routedId",
              "approvalUrl",
              "action",
              "platform",
              "included",
              "held",
              "downloadUrl",
              "note"
            ]
          },
          {
            "type": "object",
            "properties": {
              "requested": {
                "const": false
              },
              "refused": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "required": [
              "requested",
              "refused",
              "message"
            ]
          }
        ]
      }
    }
  ],
  "triggers": [
    {
      "key": "salesascode.draft.ready",
      "kind": "webhook",
      "event": "draft.ready",
      "signature": {
        "scheme": "Standard Webhooks header names; webhook-signature is v1=<hex HMAC-SHA256 with the subscription secret over timestamp.body> (src/lib/webhooks/signing.ts)",
        "headers": [
          "webhook-id",
          "webhook-timestamp",
          "webhook-signature"
        ]
      },
      "dedupe_key": "webhook-id",
      "subscribe": "POST https://salesascode.com/api/v1/webhooks"
    },
    {
      "key": "salesascode.reply.received",
      "kind": "webhook",
      "event": "reply.received",
      "signature": {
        "scheme": "Standard Webhooks header names; webhook-signature is v1=<hex HMAC-SHA256 with the subscription secret over timestamp.body> (src/lib/webhooks/signing.ts)",
        "headers": [
          "webhook-id",
          "webhook-timestamp",
          "webhook-signature"
        ]
      },
      "dedupe_key": "webhook-id",
      "subscribe": "POST https://salesascode.com/api/v1/webhooks"
    },
    {
      "key": "salesascode.account.tier_changed",
      "kind": "webhook",
      "event": "account.tier_changed",
      "signature": {
        "scheme": "Standard Webhooks header names; webhook-signature is v1=<hex HMAC-SHA256 with the subscription secret over timestamp.body> (src/lib/webhooks/signing.ts)",
        "headers": [
          "webhook-id",
          "webhook-timestamp",
          "webhook-signature"
        ]
      },
      "dedupe_key": "webhook-id",
      "subscribe": "POST https://salesascode.com/api/v1/webhooks"
    },
    {
      "key": "salesascode.send.approved",
      "kind": "webhook",
      "event": "send.approved",
      "signature": {
        "scheme": "Standard Webhooks header names; webhook-signature is v1=<hex HMAC-SHA256 with the subscription secret over timestamp.body> (src/lib/webhooks/signing.ts)",
        "headers": [
          "webhook-id",
          "webhook-timestamp",
          "webhook-signature"
        ]
      },
      "dedupe_key": "webhook-id",
      "subscribe": "POST https://salesascode.com/api/v1/webhooks"
    },
    {
      "key": "salesascode.deal_terms.proposed",
      "kind": "webhook",
      "event": "deal_terms.proposed",
      "signature": {
        "scheme": "Standard Webhooks header names; webhook-signature is v1=<hex HMAC-SHA256 with the subscription secret over timestamp.body> (src/lib/webhooks/signing.ts)",
        "headers": [
          "webhook-id",
          "webhook-timestamp",
          "webhook-signature"
        ]
      },
      "dedupe_key": "webhook-id",
      "subscribe": "POST https://salesascode.com/api/v1/webhooks"
    }
  ],
  "notice_kinds": [
    {
      "kind": "salesascode.draft.ready",
      "event": "draft.ready",
      "description": "A hosted agent wrote a draft and it is waiting for review."
    },
    {
      "kind": "salesascode.reply.received",
      "event": "reply.received",
      "description": "A person replied to a send, with the intent we read from it."
    },
    {
      "kind": "salesascode.account.tier_changed",
      "event": "account.tier_changed",
      "description": "An account moved tier because someone accepted or overrode a proposed tier."
    },
    {
      "kind": "salesascode.send.approved",
      "event": "send.approved",
      "description": "Someone approved a draft and it was sent."
    },
    {
      "kind": "salesascode.deal_terms.proposed",
      "event": "deal_terms.proposed",
      "description": "A discount or a customer commitment was proposed on a deal and waits for a person to approve or refuse it."
    }
  ],
  "digest": "sha256:2d37aac681def7990e0416ffbcfb4a690ac6aaef2e198ee4d4393f68528d344c"
}