Skip to main content
Glama

Record a person's approval of a ruleset

dsail_record_approval

Bind a person's sign-off to the exact rules a program will check.

Use when a reviewer has seen the formal rules and is ready to sign off, or revised rules need a fresh human approval.

Binds a human approval to one exact ruleset hash. An approval follows the bytes, not the name: a later revision is not covered by it.

name saves the ruleset under that name as part of approving it. The name is bound BEFORE the approval is recorded, so what a person approves is in their library afterwards instead of being reachable only by a hash they would have to have kept; it is optional only for a hash already saved under a name. approver and note are recorded with the approval. The review widget's approve control composes the exact arguments for this call, because a chat client cannot call tools from inside a widget.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNoThe name to save the ruleset under before approving, when it is not saved yet. Approving saves first, so an approved hash is always reachable afterwards.
noteNoOptional free-text note recorded beside the approval.
labelNoOptional application-domain label: `{"topic": "<a few words on what the policy governs>"}`, or `{"declined": true}`. Matched against the published vocabulary and then discarded; never stored on the ruleset. Omitting it leaves the ruleset unlabeled, which is normal.
approverYesWho approved, as they wish to be recorded (a name or an email address).
ruleset_hashYesThe exact content hash the person approved. Approval binds to this hash only; a later revision needs its own.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / oneOf
      Previous value: -[
      -  {
      -    "properties": {
      -      "approval": {
      -        "properties": {
      -          "approved_at": {
      -            "description": "UTC, ISO 8601.",
      -            "type": "string"
      -          },
      -          "approver": {
      -            "type": "string"
      -          },
      -          "hash": {
      -            "description": "The exact bytes signed for. An approval follows the hash, never a name: a later revision is not covered by it.",
      -            "type": "string"
      -          },
      -          "note": {
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          }
      -        },
      -        "required": [
      -          "hash",
      -          "approver",
      -          "approved_at"
      -        ],
      -        "type": "object"
      -      },
      -      "approvals": {
      -        "description": "Every approval on this hash, including the new one.",
      -        "items": {
      -          "properties": {
      -            "approved_at": {
      -              "description": "UTC, ISO 8601.",
      -              "type": "string"
      -            },
      -            "approver": {
      -              "type": "string"
      -            },
      -            "hash": {
      -              "description": "The exact bytes signed for. An approval follows the hash, never a name: a later revision is not covered by it.",
      -              "type": "string"
      -            },
      -            "note": {
      -              "type": [
      -                "string",
      -                "null"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "hash",
      -            "approver",
      -            "approved_at"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "label": {
      -        "description": "The ruleset's stored application-domain label (TJP-642), as ids under `vocabulary_version`. Null when the ruleset carries none, or when this account has labeling disabled. A label never alters a result; the level-two proposal text a caller sent is matched and dropped, never stored or returned.",
      -        "properties": {
      -          "confidence": {
      -            "enum": [
      -              "high",
      -              "medium",
      -              "low",
      -              null
      -            ],
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "declined": {
      -            "type": "boolean"
      -          },
      -          "level_one": {
      -            "description": "Level-one domain id. Null only when declined.",
      -            "enum": [
      -              "finance",
      -              "consumer_finance",
      -              "capital_markets",
      -              "insurance",
      -              "regulatory_compliance",
      -              "hr_workforce",
      -              "security_access",
      -              "security_classification",
      -              "healthcare",
      -              "legal_contracts",
      -              "procurement",
      -              "engineering_release",
      -              "content_safety",
      -              "other",
      -              null
      -            ],
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "level_two": {
      -            "description": "Level-two term id, from GET /v1/vocabulary. Null when the proposal matched no published term (the proposal was counted toward promotion instead) or none was offered.",
      -            "pattern": "^l2-[0-9]{4,}$",
      -            "type": [
      -              "string",
      -              "null"
      -            ]
      -          },
      -          "updated_at": {
      -            "description": "UTC, ISO 8601.",
      -            "type": "string"
      -          },
      -          "vocabulary_version": {
      -            "example": "v1",
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "vocabulary_version",
      -          "level_one",
      -          "level_two",
      -          "confidence",
      -          "declined",
      -          "updated_at"
      -        ],
      -        "type": [
      -          "object",
      -          "null"
      -        ]
      -      },
      -      "name": {
      -        "description": "The name these bytes are saved under after this call. Null only when none was supplied and none was already bound.",
      -        "type": [
      -          "string",
      -          "null"
      -        ]
      -      },
      -      "namespace": {
      -        "description": "Service-internal scope identifier. For clients, not for display: never show this to a person, who identifies a ruleset by name.",
      -        "type": "string"
      -      },
      -      "ok": {
      -        "const": true,
      -        "type": "boolean"
      -      },
      -      "ruleset_hash": {
      -        "type": "string"
      -      },
      -      "saved": {
      -        "description": "Whether this call bound a name. The binding happens BEFORE the approval is recorded, so a refused name records no approval at all.",
      -        "type": "boolean"
      -      },
      -      "versions": {
      -        "description": "Which engine and which wire contract produced this response.",
      -        "properties": {
      -          "engine": {
      -            "example": "dsail-core",
      -            "type": "string"
      -          },
      -          "engine_version": {
      -            "type": "string"
      -          },
      -          "language_version": {
      -            "description": "DSAIL language version.",
      -            "type": "string"
      -          },
      -          "service_version": {
      -            "type": "string"
      -          },
      -          "supported_language_versions": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "wire_version": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "engine",
      -          "engine_version",
      -          "language_version",
      -          "service_version",
      -          "wire_version"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "ruleset_hash",
      -      "namespace",
      -      "name",
      -      "saved",
      -      "approval",
      -      "approvals",
      -      "versions"
      -    ],
      -    "type": "object"
      -  },
      -  {
      -    "properties": {
      -      "error": {
      -        "properties": {
      -          "actual": {
      -            "type": "integer"
      -          },
      -          "budget": {
      -            "type": "string"
      -          },
      -          "code": {
      -            "enum": [
      -              "VALIDATION_REJECTED",
      -              "COMPILE_FAILED",
      -              "BUDGET_EXCEEDED",
      -              "RULESET_NOT_FOUND",
      -              "ENGINE_ERROR",
      -              "BAD_REQUEST",
      -              "CREDENTIAL_REQUIRED",
      -              "CREDENTIAL_INVALID",
      -              "CREDENTIAL_SCOPE",
      -              "EVALUATION_LIMIT",
      -              "ENTITLEMENT_EXCEEDED",
      -              "TIER_UNAVAILABLE"
      -            ],
      -            "type": "string"
      -          },
      -          "diagnostics": {
      -            "items": {
      -              "properties": {
      -                "line": {
      -                  "type": [
      -                    "integer",
      -                    "null"
      -                  ]
      -                },
      -                "message": {
      -                  "type": "string"
      -                },
      -                "severity": {
      -                  "enum": [
      -                    "error",
      -                    "warning"
      -                  ],
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "severity",
      -                "message"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "docs": {
      -            "description": "The docs-site page that resolves this code (markdown). Fetch it before retrying blind.",
      -            "format": "uri",
      -            "type": "string"
      -          },
      -          "failure_count": {
      -            "description": "How many fields failed in total. Equal to the length of `failures` unless a very large rejection was truncated, which the message says.",
      -            "type": "integer"
      -          },
      -          "failures": {
      -            "description": "EVERY failing field, not the first one.",
      -            "items": {
      -              "properties": {
      -                "expected": {
      -                  "type": "string"
      -                },
      -                "field": {
      -                  "type": "string"
      -                },
      -                "received": {
      -                  "type": "string"
      -                }
      -              },
      -              "required": [
      -                "field",
      -                "expected",
      -                "received"
      -              ],
      -              "type": "object"
      -            },
      -            "type": "array"
      -          },
      -          "hint": {
      -            "description": "The grammar guide, carried on compile failures so the next call can succeed without a human.",
      -            "type": "string"
      -          },
      -          "limit": {
      -            "type": "integer"
      -          },
      -          "message": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "code",
      -          "message"
      -        ],
      -        "type": "object"
      -      },
      -      "ok": {
      -        "const": false,
      -        "type": "boolean"
      -      },
      -      "versions": {
      -        "description": "Which engine and which wire contract produced this response.",
      -        "properties": {
      -          "engine": {
      -            "example": "dsail-core",
      -            "type": "string"
      -          },
      -          "engine_version": {
      -            "type": "string"
      -          },
      -          "language_version": {
      -            "description": "DSAIL language version.",
      -            "type": "string"
      -          },
      -          "service_version": {
      -            "type": "string"
      -          },
      -          "supported_language_versions": {
      -            "items": {
      -              "type": "string"
      -            },
      -            "type": "array"
      -          },
      -          "wire_version": {
      -            "type": "string"
      -          }
      -        },
      -        "required": [
      -          "engine",
      -          "engine_version",
      -          "language_version",
      -          "service_version",
      -          "wire_version"
      -        ],
      -        "type": "object"
      -      }
      -    },
      -    "required": [
      -      "ok",
      -      "error",
      -      "versions"
      -    ],
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "properties": {
      +      "approval": {
      +        "properties": {
      +          "approved_at": {
      +            "description": "UTC, ISO 8601.",
      +            "type": "string"
      +          },
      +          "approver": {
      +            "type": "string"
      +          },
      +          "hash": {
      +            "description": "The exact bytes signed for. An approval follows the hash, never a name: a later revision is not covered by it.",
      +            "type": "string"
      +          },
      +          "note": {
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          }
      +        },
      +        "required": [
      +          "hash",
      +          "approver",
      +          "approved_at"
      +        ],
      +        "type": "object"
      +      },
      +      "approvals": {
      +        "description": "Every approval on this hash, including the new one.",
      +        "items": {
      +          "properties": {
      +            "approved_at": {
      +              "description": "UTC, ISO 8601.",
      +              "type": "string"
      +            },
      +            "approver": {
      +              "type": "string"
      +            },
      +            "hash": {
      +              "description": "The exact bytes signed for. An approval follows the hash, never a name: a later revision is not covered by it.",
      +              "type": "string"
      +            },
      +            "note": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "hash",
      +            "approver",
      +            "approved_at"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "label": {
      +        "description": "The ruleset's stored application-domain label (TJP-642), as ids under `vocabulary_version`. Null when the ruleset carries none, or when this account has labeling disabled. A label never alters a result; the level-two proposal text a caller sent is matched and dropped, never stored or returned.",
      +        "properties": {
      +          "confidence": {
      +            "enum": [
      +              "high",
      +              "medium",
      +              "low",
      +              null
      +            ],
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "declined": {
      +            "type": "boolean"
      +          },
      +          "level_one": {
      +            "description": "Level-one domain id. Null only when declined.",
      +            "enum": [
      +              "finance",
      +              "consumer_finance",
      +              "capital_markets",
      +              "insurance",
      +              "regulatory_compliance",
      +              "hr_workforce",
      +              "security_access",
      +              "security_classification",
      +              "healthcare",
      +              "legal_contracts",
      +              "procurement",
      +              "engineering_release",
      +              "content_safety",
      +              "other",
      +              null
      +            ],
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "level_two": {
      +            "description": "Level-two term id, from GET /v1/vocabulary. Null when the proposal matched no published term (the proposal was counted toward promotion instead) or none was offered.",
      +            "pattern": "^l2-[0-9]{4,}$",
      +            "type": [
      +              "string",
      +              "null"
      +            ]
      +          },
      +          "updated_at": {
      +            "description": "UTC, ISO 8601.",
      +            "type": "string"
      +          },
      +          "vocabulary_version": {
      +            "example": "v1",
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "vocabulary_version",
      +          "level_one",
      +          "level_two",
      +          "confidence",
      +          "declined",
      +          "updated_at"
      +        ],
      +        "type": [
      +          "object",
      +          "null"
      +        ]
      +      },
      +      "name": {
      +        "description": "The name these bytes are saved under after this call. Null only when none was supplied and none was already bound.",
      +        "type": [
      +          "string",
      +          "null"
      +        ]
      +      },
      +      "namespace": {
      +        "description": "Service-internal scope identifier. For clients, not for display: never show this to a person, who identifies a ruleset by name.",
      +        "type": "string"
      +      },
      +      "ok": {
      +        "const": true,
      +        "type": "boolean"
      +      },
      +      "ruleset_hash": {
      +        "type": "string"
      +      },
      +      "saved": {
      +        "description": "Whether this call bound a name. The binding happens BEFORE the approval is recorded, so a refused name records no approval at all.",
      +        "type": "boolean"
      +      },
      +      "versions": {
      +        "description": "Which engine and which wire contract produced this response.",
      +        "properties": {
      +          "engine": {
      +            "example": "dsail-core",
      +            "type": "string"
      +          },
      +          "engine_version": {
      +            "type": "string"
      +          },
      +          "language_version": {
      +            "description": "DSAIL language version.",
      +            "type": "string"
      +          },
      +          "service_version": {
      +            "type": "string"
      +          },
      +          "supported_language_versions": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "wire_version": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "engine",
      +          "engine_version",
      +          "language_version",
      +          "service_version",
      +          "wire_version"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "ruleset_hash",
      +      "namespace",
      +      "name",
      +      "saved",
      +      "approval",
      +      "approvals",
      +      "versions"
      +    ],
      +    "type": "object"
      +  },
      +  {
      +    "properties": {
      +      "error": {
      +        "properties": {
      +          "actual": {
      +            "description": "How much the request used, where that is known. Absent for solver_memory_mb: the solver stops at the limit.",
      +            "type": "integer"
      +          },
      +          "budget": {
      +            "type": "string"
      +          },
      +          "code": {
      +            "enum": [
      +              "VALIDATION_REJECTED",
      +              "COMPILE_FAILED",
      +              "BUDGET_EXCEEDED",
      +              "RULESET_NOT_FOUND",
      +              "ENGINE_ERROR",
      +              "ENGINE_BUSY",
      +              "BAD_REQUEST",
      +              "CREDENTIAL_REQUIRED",
      +              "CREDENTIAL_INVALID",
      +              "CREDENTIAL_SCOPE",
      +              "EVALUATION_LIMIT",
      +              "ENTITLEMENT_EXCEEDED",
      +              "TIER_UNAVAILABLE"
      +            ],
      +            "type": "string"
      +          },
      +          "diagnostics": {
      +            "items": {
      +              "properties": {
      +                "line": {
      +                  "type": [
      +                    "integer",
      +                    "null"
      +                  ]
      +                },
      +                "message": {
      +                  "type": "string"
      +                },
      +                "severity": {
      +                  "enum": [
      +                    "error",
      +                    "warning"
      +                  ],
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "severity",
      +                "message"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "docs": {
      +            "description": "The docs-site page that resolves this code (markdown). Fetch it before retrying blind.",
      +            "format": "uri",
      +            "type": "string"
      +          },
      +          "failure_count": {
      +            "description": "How many fields failed in total. Equal to the length of `failures` unless a very large rejection was truncated, which the message says.",
      +            "type": "integer"
      +          },
      +          "failures": {
      +            "description": "EVERY failing field, not the first one.",
      +            "items": {
      +              "properties": {
      +                "expected": {
      +                  "type": "string"
      +                },
      +                "field": {
      +                  "type": "string"
      +                },
      +                "received": {
      +                  "type": "string"
      +                }
      +              },
      +              "required": [
      +                "field",
      +                "expected",
      +                "received"
      +              ],
      +              "type": "object"
      +            },
      +            "type": "array"
      +          },
      +          "hint": {
      +            "description": "The grammar guide, carried on compile failures so the next call can succeed without a human.",
      +            "type": "string"
      +          },
      +          "limit": {
      +            "type": "integer"
      +          },
      +          "message": {
      +            "type": "string"
      +          },
      +          "retry_after_ms": {
      +            "description": "ENGINE_BUSY only: when to retry. The REST door also sends it, in seconds, as Retry-After.",
      +            "type": "integer"
      +          }
      +        },
      +        "required": [
      +          "code",
      +          "message"
      +        ],
      +        "type": "object"
      +      },
      +      "ok": {
      +        "const": false,
      +        "type": "boolean"
      +      },
      +      "versions": {
      +        "description": "Which engine and which wire contract produced this response.",
      +        "properties": {
      +          "engine": {
      +            "example": "dsail-core",
      +            "type": "string"
      +          },
      +          "engine_version": {
      +            "type": "string"
      +          },
      +          "language_version": {
      +            "description": "DSAIL language version.",
      +            "type": "string"
      +          },
      +          "service_version": {
      +            "type": "string"
      +          },
      +          "supported_language_versions": {
      +            "items": {
      +              "type": "string"
      +            },
      +            "type": "array"
      +          },
      +          "wire_version": {
      +            "type": "string"
      +          }
      +        },
      +        "required": [
      +          "engine",
      +          "engine_version",
      +          "language_version",
      +          "service_version",
      +          "wire_version"
      +        ],
      +        "type": "object"
      +      }
      +    },
      +    "required": [
      +      "ok",
      +      "error",
      +      "versions"
      +    ],
      +    "type": "object"
      +  }
      +]
  2. Changed6 schema fields changed
    • addedInput schema / properties / approver / description
      Added value: +"Who approved, as they wish to be recorded (a name or an email address)."
    • addedInput schema / properties / label / description
      Added value: +"Optional application-domain label: `{\"topic\": \"<a few words on what the policy governs>\"}`, or `{\"declined\": true}`. Matched against the published vocabulary and then discarded; never stored on the ruleset. Omitting it leaves the ruleset unlabeled, which is normal."
    • addedInput schema / properties / name / description
      Added value: +"The name to save the ruleset under before approving, when it is not saved yet. Approving saves first, so an approved hash is always reachable afterwards."
    • addedInput schema / properties / note / description
      Added value: +"Optional free-text note recorded beside the approval."
    • addedInput schema / properties / ruleset_hash / description
      Added value: +"The exact content hash the person approved. Approval binds to this hash only; a later revision needs its own."
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "The approval as recorded, bound to the exact hash. On failure `ok` is false and `error` carries `code`, `message` and `docs`, the URL of the page that resolves it.",
      +  "oneOf": [
      +    {
      +      "properties": {
      +        "approval": {
      +          "properties": {
      +            "approved_at": {
      +              "description": "UTC, ISO 8601.",
      +              "type": "string"
      +            },
      +            "approver": {
      +              "type": "string"
      +            },
      +            "hash": {
      +              "description": "The exact bytes signed for. An approval follows the hash, never a name: a later revision is not covered by it.",
      +              "type": "string"
      +            },
      +            "note": {
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "hash",
      +            "approver",
      +            "approved_at"
      +          ],
      +          "type": "object"
      +        },
      +        "approvals": {
      +          "description": "Every approval on this hash, including the new one.",
      +          "items": {
      +            "properties": {
      +              "approved_at": {
      +                "description": "UTC, ISO 8601.",
      +                "type": "string"
      +              },
      +              "approver": {
      +                "type": "string"
      +              },
      +              "hash": {
      +                "description": "The exact bytes signed for. An approval follows the hash, never a name: a later revision is not covered by it.",
      +                "type": "string"
      +              },
      +              "note": {
      +                "type": [
      +                  "string",
      +                  "null"
      +                ]
      +              }
      +            },
      +            "required": [
      +              "hash",
      +              "approver",
      +              "approved_at"
      +            ],
      +            "type": "object"
      +          },
      +          "type": "array"
      +        },
      +        "label": {
      +          "description": "The ruleset's stored application-domain label (TJP-642), as ids under `vocabulary_version`. Null when the ruleset carries none, or when this account has labeling disabled. A label never alters a result; the level-two proposal text a caller sent is matched and dropped, never stored or returned.",
      +          "properties": {
      +            "confidence": {
      +              "enum": [
      +                "high",
      +                "medium",
      +                "low",
      +                null
      +              ],
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "declined": {
      +              "type": "boolean"
      +            },
      +            "level_one": {
      +              "description": "Level-one domain id. Null only when declined.",
      +              "enum": [
      +                "finance",
      +                "consumer_finance",
      +                "capital_markets",
      +                "insurance",
      +                "regulatory_compliance",
      +                "hr_workforce",
      +                "security_access",
      +                "security_classification",
      +                "healthcare",
      +                "legal_contracts",
      +                "procurement",
      +                "engineering_release",
      +                "content_safety",
      +                "other",
      +                null
      +              ],
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "level_two": {
      +              "description": "Level-two term id, from GET /v1/vocabulary. Null when the proposal matched no published term (the proposal was counted toward promotion instead) or none was offered.",
      +              "pattern": "^l2-[0-9]{4,}$",
      +              "type": [
      +                "string",
      +                "null"
      +              ]
      +            },
      +            "updated_at": {
      +              "description": "UTC, ISO 8601.",
      +              "type": "string"
      +            },
      +            "vocabulary_version": {
      +              "example": "v1",
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "vocabulary_version",
      +            "level_one",
      +            "level_two",
      +            "confidence",
      +            "declined",
      +            "updated_at"
      +          ],
      +          "type": [
      +            "object",
      +            "null"
      +          ]
      +        },
      +        "name": {
      +          "description": "The name these bytes are saved under after this call. Null only when none was supplied and none was already bound.",
      +          "type": [
      +            "string",
      +            "null"
      +          ]
      +        },
      +        "namespace": {
      +          "description": "Service-internal scope identifier. For clients, not for display: never show this to a person, who identifies a ruleset by name.",
      +          "type": "string"
      +        },
      +        "ok": {
      +          "const": true,
      +          "type": "boolean"
      +        },
      +        "ruleset_hash": {
      +          "type": "string"
      +        },
      +        "saved": {
      +          "description": "Whether this call bound a name. The binding happens BEFORE the approval is recorded, so a refused name records no approval at all.",
      +          "type": "boolean"
      +        },
      +        "versions": {
      +          "description": "Which engine and which wire contract produced this response.",
      +          "properties": {
      +            "engine": {
      +              "example": "dsail-core",
      +              "type": "string"
      +            },
      +            "engine_version": {
      +              "type": "string"
      +            },
      +            "language_version": {
      +              "description": "DSAIL language version.",
      +              "type": "string"
      +            },
      +            "service_version": {
      +              "type": "string"
      +            },
      +            "supported_language_versions": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "wire_version": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "engine",
      +            "engine_version",
      +            "language_version",
      +            "service_version",
      +            "wire_version"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "ok",
      +        "ruleset_hash",
      +        "namespace",
      +        "name",
      +        "saved",
      +        "approval",
      +        "approvals",
      +        "versions"
      +      ],
      +      "type": "object"
      +    },
      +    {
      +      "properties": {
      +        "error": {
      +          "properties": {
      +            "actual": {
      +              "type": "integer"
      +            },
      +            "budget": {
      +              "type": "string"
      +            },
      +            "code": {
      +              "enum": [
      +                "VALIDATION_REJECTED",
      +                "COMPILE_FAILED",
      +                "BUDGET_EXCEEDED",
      +                "RULESET_NOT_FOUND",
      +                "ENGINE_ERROR",
      +                "BAD_REQUEST",
      +                "CREDENTIAL_REQUIRED",
      +                "CREDENTIAL_INVALID",
      +                "CREDENTIAL_SCOPE",
      +                "EVALUATION_LIMIT",
      +                "ENTITLEMENT_EXCEEDED",
      +                "TIER_UNAVAILABLE"
      +              ],
      +              "type": "string"
      +            },
      +            "diagnostics": {
      +              "items": {
      +                "properties": {
      +                  "line": {
      +                    "type": [
      +                      "integer",
      +                      "null"
      +                    ]
      +                  },
      +                  "message": {
      +                    "type": "string"
      +                  },
      +                  "severity": {
      +                    "enum": [
      +                      "error",
      +                      "warning"
      +                    ],
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "severity",
      +                  "message"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "docs": {
      +              "description": "The docs-site page that resolves this code (markdown). Fetch it before retrying blind.",
      +              "format": "uri",
      +              "type": "string"
      +            },
      +            "failure_count": {
      +              "description": "How many fields failed in total. Equal to the length of `failures` unless a very large rejection was truncated, which the message says.",
      +              "type": "integer"
      +            },
      +            "failures": {
      +              "description": "EVERY failing field, not the first one.",
      +              "items": {
      +                "properties": {
      +                  "expected": {
      +                    "type": "string"
      +                  },
      +                  "field": {
      +                    "type": "string"
      +                  },
      +                  "received": {
      +                    "type": "string"
      +                  }
      +                },
      +                "required": [
      +                  "field",
      +                  "expected",
      +                  "received"
      +                ],
      +                "type": "object"
      +              },
      +              "type": "array"
      +            },
      +            "hint": {
      +              "description": "The grammar guide, carried on compile failures so the next call can succeed without a human.",
      +              "type": "string"
      +            },
      +            "limit": {
      +              "type": "integer"
      +            },
      +            "message": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "code",
      +            "message"
      +          ],
      +          "type": "object"
      +        },
      +        "ok": {
      +          "const": false,
      +          "type": "boolean"
      +        },
      +        "versions": {
      +          "description": "Which engine and which wire contract produced this response.",
      +          "properties": {
      +            "engine": {
      +              "example": "dsail-core",
      +              "type": "string"
      +            },
      +            "engine_version": {
      +              "type": "string"
      +            },
      +            "language_version": {
      +              "description": "DSAIL language version.",
      +              "type": "string"
      +            },
      +            "service_version": {
      +              "type": "string"
      +            },
      +            "supported_language_versions": {
      +              "items": {
      +                "type": "string"
      +              },
      +              "type": "array"
      +            },
      +            "wire_version": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "engine",
      +            "engine_version",
      +            "language_version",
      +            "service_version",
      +            "wire_version"
      +          ],
      +          "type": "object"
      +        }
      +      },
      +      "required": [
      +        "ok",
      +        "error",
      +        "versions"
      +      ],
      +      "type": "object"
      +    }
      +  ],
      +  "type": "object"
      +}
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate readOnly=false and destructiveHint=false, but the description adds significant behavioral context beyond that. It explains that the tool performs a write operation (recording approval) and also has a side effect of saving the ruleset under a name if provided. It clarifies the naming side effect happens BEFORE approval is recorded, and that label is 'discarded; never stored'. This goes beyond basic annotation info and addresses likely side effects and data handling.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is appropriately sized for a tool with this complexity; it's thorough without being overly verbose. The key point about binding to the hash is front-loaded. Some sentences are long and dense, but they pack useful information. It could be slightly streamlined, but it's well-structured and every sentence earns its place.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description covers all essential aspects: when to use, side effects, binding semantics, and parameter handling. The output schema exists, so return values are not needed. It even mentions how the review widget composes arguments, providing practical context. Given the tool's complexity (side effects, naming, label), the description is complete and leaves no obvious gaps for an agent to correctly invoke it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so each parameter is documented in the schema. The description adds extra context for the 'name' parameter, explaining that it saves the ruleset and is bound before approval. However, for 'label', the description clarifies its transient nature and matching against a published vocabulary, which is not fully captured in the schema. Overall, it adds meaning beyond the schema, but some parameters like 'note' and 'approver' are straightforward and don't need much extra.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: binding a person's sign-off to a specific ruleset hash. It uses specific verbs ('Bind', 'saves', 'recorded') and describes the exact resource (ruleset hash). It distinguishes from siblings like dsail_review and dsail_save_ruleset by emphasizing the one-to-one binding to a hash and the 'approves the bytes, not the name' semantics.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides explicit when-to-use guidance: 'Use when a reviewer has seen the formal rules and is ready to sign off, or revised rules need a fresh human approval.' It also explains the critical caveat that a later revision is not covered by an earlier approval, preventing misuse. It does not explicitly name alternative tools, but the context is clear enough for an agent to select this tool over similar ones.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.