validate
Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Sollte ich dies verwenden
Qualität und Sicherheit
A
Basierend auf einer automatisierten Analyse der Tool-Definitionen und der Einhaltung des Protokolls.
Kontextkosten
~173Tokens (Tool-Definitionen)
~1.8 KBTypische Antwortgröße
Minimale Auswirkung auf die Aufmerksamkeit (0.14% von 128k Kontext)
Dies ist die ungefähre Anzahl der Tokens, die jedes Mal verbraucht werden, wenn die Tools des Servers in den Kontext eines Modells geladen werden. Höhere Werte verringern die Aufmerksamkeit, die für andere Aufgaben verfügbar ist.
Installieren
Installation mit einem Klick
Fügen Sie dies Ihrer Datei `claude_desktop_config.json` hinzu:
{
"mcpServers": {
"validate": {
"command": "npx",
"args": [
"@machinegrade/validate"
]
}
}
}Ausführbare Pakete
npm@machinegrade/validate
0.1.2stdioRemote-Endpunkte
https://api.machinegrade.dev/mcpstreamable-httpWas es kann
Tool-Inventar
Tools (1)
🟢 Nur lesen🟡 Schreiben🔴 Löschen⚪ Unbekannt
⚪validate(type, artifact, contract)
Validate an artifact against a contract (json_schema | openapi_response | sql) via the machinegrade validate API.
Eingabe-Schema
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"json_schema",
"openapi_response",
"sql"
],
"description": "Which validator to run."
},
"artifact": {
"type": [
"object",
"array",
"string",
"number",
"boolean",
"null"
],
"description": "The artifact to validate, as a JSON value — not a JSON-encoded string. json_schema/openapi_response: the object/array/value itself. sql: the SQL statement as a string."
},
"contract": {
"type": "object",
"description": "Validator-specific contract. json_schema: { schema }. openapi_response: { spec, path, method, status }. sql: { dialect }."
}
},
"required": [
"type",
"artifact"
]
}Community
Nachweis
Aktuelle Beobachtungen
verifiziertVersion nicht aufgezeichnet1 Tools
verifiziertVersion nicht aufgezeichnet1 Tools