{
  "serverInfo": {
    "name": "toofi",
    "title": "Toofi Agent-Native Dental Planning MCP",
    "version": "2026-05-12"
  },
  "authentication": {
    "required": false,
    "schemes": [
      "none",
      "oauth2",
      "dpop",
      "toofi-internal-credits"
    ]
  },
  "tools": [
    {
      "name": "discover_capabilities",
      "description": "Discover Toofi agent-native dental planning capabilities, links, safety boundary, and billing rails.",
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": true
      }
    },
    {
      "name": "lookup_dental_procedures",
      "description": "Map a natural-language dental procedure query to structured Toofi procedure catalog entries and pricing anchors. No PHI.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "query": {
            "type": "string",
            "description": "Natural-language dental procedure query, for example implant and crown for lower molar."
          },
          "language": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 25
          }
        },
        "additionalProperties": true
      }
    },
    {
      "name": "generate_treatment_plan_draft",
      "description": "Generate a structured no-memory Toofi treatment-plan draft with visits, estimate, presentation outline, billing metadata, audit receipt shape, and dentist approval boundary.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "clinical_request": {
            "type": "string"
          },
          "patient_ref": {
            "type": "string"
          },
          "procedures": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      }
    },
    {
      "name": "get_agent_billing_quote",
      "description": "Get a deterministic Toofi internal-credit quote for an agent tool call with TTL, Stripe checkout rail, and x402-ready contract fields.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "tool_name": {
            "type": "string"
          },
          "units": {
            "type": "integer",
            "minimum": 1
          }
        },
        "additionalProperties": true
      }
    },
    {
      "name": "create_agent_checkout_session",
      "description": "Create the Toofi agent checkout contract for buying internal credits and unlocking paid MCP workflows.",
      "inputSchema": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string"
          },
          "quote_id": {
            "type": "string"
          },
          "agent_id": {
            "type": "string"
          },
          "return_url": {
            "type": "string"
          }
        },
        "additionalProperties": true
      }
    }
  ],
  "resources": [],
  "prompts": [],
  "name": "toofi",
  "title": "Toofi Agent-Native Dental Planning MCP",
  "description": "Toofi is the first agent-native dental planning workspace. Clinical AI agents call Toofi to generate treatment-plan drafts, patient-facing presentations, and price estimates from clinical inputs - with mandatory dentist approval before clinical use. MCP server, OAuth 2.1 with mandate scoping, signed audit trail, and C2PA-provenanced outputs.",
  "version": "2026-05-12",
  "homepage": "https://toofi.app/for-agents",
  "mcp": {
    "endpoint": "https://toofi.app/mcp",
    "transport": "streamable_http",
    "protocol_version": "2025-03-26",
    "stateless": true,
    "sse": false,
    "json_rpc": "2.0"
  },
  "discovery": {
    "llms": "https://toofi.app/llms.txt",
    "llms_full": "https://toofi.app/llms-full.txt",
    "agent_card": "https://toofi.app/.well-known/agent-card.json",
    "agent_alias": "https://toofi.app/.well-known/agent.json",
    "mcp_descriptor": "https://toofi.app/.well-known/mcp.json",
    "openapi": "https://toofi.app/openapi.json"
  },
  "tool_groups": [
    {
      "id": "live_demo",
      "title": "Live demo planning surface",
      "tools": [
        "discover_capabilities",
        "lookup_dental_procedures",
        "preview_plan_draft_schema",
        "generate_treatment_plan_draft",
        "list_demo_patients",
        "get_demo_patient",
        "list_demo_plans",
        "get_demo_plan",
        "get_demo_presentation"
      ]
    },
    {
      "id": "clinic_workflows",
      "title": "Clinic-grade dental workflow commands",
      "tools": [
        "list_patients",
        "get_patient",
        "list_plans",
        "get_plan",
        "get_status",
        "start_pano_markup",
        "generate_patient_presentation",
        "generate_price_estimate",
        "import_price_csv",
        "list_audit_receipts"
      ]
    },
    {
      "id": "agent_economy",
      "title": "Agent payment and credit rails",
      "tools": [
        "get_agent_billing_quote",
        "create_agent_checkout_session",
        "get_agent_credit_balance"
      ]
    }
  ],
  "billing": {
    "unit": "toofi_internal_credit",
    "demo_generation_charged": false,
    "production_metering": "internal_credits",
    "default_plan_draft_credits": 15,
    "quote_ttl_seconds": 900,
    "rails": {
      "internal_credits": true,
      "stripe_checkout": true,
      "x402_ready": true
    }
  },
  "safety": {
    "clinical_use": "draft_only",
    "dentist_approval_required": true,
    "autonomous_diagnosis": false,
    "autonomous_treatment_decision": false,
    "public_tools_expose_phi": false
  },
  "identity": {
    "public_demo": "No registration required for no-PHI demo tools.",
    "production": {
      "protocol": "OAuth 2.1",
      "sender_constrained_tokens": "DPoP",
      "mandate_scoping": true,
      "required_identity_fields": [
        "agent_id",
        "principal_id",
        "acting_on_behalf_of",
        "mandate_id",
        "permission_id",
        "token_id",
        "issuer",
        "jwks_url",
        "policy_version"
      ]
    }
  },
  "provenance": {
    "signed_audit_trail": true,
    "signature_format": "JWS",
    "c2pa_outputs": true
  },
  "examples": {
    "initialize": {
      "jsonrpc": "2.0",
      "id": "init",
      "method": "initialize",
      "params": {
        "protocolVersion": "2025-03-26",
        "capabilities": {},
        "clientInfo": {
          "name": "toofi-agent",
          "version": "0.1"
        }
      }
    },
    "generate_draft": {
      "jsonrpc": "2.0",
      "id": "draft-1",
      "method": "tools/call",
      "params": {
        "name": "generate_treatment_plan_draft",
        "arguments": {
          "request_id": "agent-demo-001",
          "query": "implant and crown for lower molar"
        }
      }
    }
  }
}
