Skip to main content

Squillify development is paused indefinitely. Read why, and discover what this experiment achieved. Read the story

MicroSkills Reference

Validate Contract Metadata

legal.contract_metadata_validate

ProductionBounded custom (Class B)Deterministicstrictfastv1.0.0
No network

Overview

You send parties, dates, status and the fields you consider required. We report missing items, duplicate parties, ISO currency mistakes and state contradictions such as TERMINATED without a termination date. We do not read a contract or verify a company. A successful call costs 1 execution credit.

Intake forms need a mechanical completeness check that does not pretend to certify a contract.

Reliability

METADATA_LIMIT_EXCEEDED — trigger: more than 64 parties or 32 owners; retryable: no; next: trim the lists.

Context footprint

Structured labels and dates only. A successful call costs 1 execution credit.

When to use it

When parties, dates and status already sit in a structured record you want linted.

When the agreement still exists only as prose or you need a view on legal sufficiency.

Powered by Squillify's own closed metadata checklist on the fields you mark required.

Scope

Note
Validates a structured contract metadata record against the caller's requiredFields list.

Non-goals

  • Does not read contract prose
  • Does not verify party identity
  • Does not look up a company or jurisdiction

Properties

IdempotentRetry safeStreaming supportedFile input supportedRequires external service

Capabilities

validation

Cost & billing

Flat rate per invocation

MetercallsBillable onsuccessCost per call1 credit

File handling

Accepts file_refProduces file_refMax input64 KB

How we handle your data

Sensitive input, safe output
What this means

This skill may receive sensitive content, but it does not target sensitive data and returns only a structured non-sensitive result.

Squillify guarantees
  • Runs inside Squillify
  • This skill runs inside Squillify.
  • Payloads are not sent to an external service by this skill.
  • Squillify does not permanently store submitted payloads.
  • Telemetry records metadata only, not submitted content.
  • Submitted payloads are not used for training.
  • Submitted payloads are not reviewed by humans.
  • This skill does not target sensitive data.
  • The response does not contain submitted content.
Your responsibility

Squillify does not determine whether submitted content is sensitive. Your application is responsible for deciding what data it is allowed to submit. Your application is responsible for securing the response.

Read the Microskill Data Handling Policy

Input schema

FieldTypeRequiredDescription
partiesarrayNoParty objects with id, name and type, 0 through 65 entries; runtime accepts at most 64. Omit it for none.
agreementTypestringNoAgreement-type label; omit it when absent.
effectiveDatestringNoISO effective date; omit it when absent.
executionDatestringNoISO execution date; omit it when absent.
terminationDatestringNoISO termination date; omit it when absent.
termobjectNoClosed term duration with count and unit; omit the whole object when the record has no term.
governingLawstringNoGoverning-law label stored as supplied; omit it when absent.
currencystringNoISO-4217 alphabetic code; omit it when absent.
valuenumberNoNumeric value as supplied; omit it when absent.
ownersarrayNoOwner labels, 0 through 33 entries; runtime accepts at most 32. Omit it for none.
statusstringNoDRAFT, ACTIVE, EXPIRED, TERMINATED or SUPERSEDED; omit it when absent.
requiredFieldsarrayNoClosed field names that must be present; omit it and only internal consistency is checked.

Output schema

FieldTypeRequiredDescription
validbooleanYesTrue when no ERROR diagnostic was produced.
partiesarrayYesNormalized parties in request order, 0 through 64 objects with id, stripped name, optional role and INDIVIDUAL or ORGANIZATION type.
agreementTypestringNoEchoed agreement type; omit it when absent.
effectiveDatestringNoEchoed effective date; omit it when absent.
executionDatestringNoEchoed execution date; omit it when absent.
terminationDatestringNoEchoed termination date; omit it when absent.
governingLawstringNoEchoed governing-law label; omit it when absent.
currencystringNoEchoed currency; omit it when absent.
statusstringNoEchoed status; omit it when absent.
diagnosticsarrayYesDeterministically ordered diagnostics, 0 through 500 entries, each with code, severity, message and path; empty when nothing was flagged.
assumptionsarrayYesCaller-visible mechanical assumptions for this answer, such as default weekend days or a grammar version, never a legal conclusion.
limitationsstringYesFixed notice that only supplied parameters are applied and that validity, compliance and enforceability are not determined.

API contract

POST /v1/execute
curl
curl -sS -X POST "$BASE/v1/execute" -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"skillKey":"legal.contract_metadata_validate","input":{"status":"DRAFT","parties":[{"id":"p-buyer","name":"Northwind Ltd"}]}}'
Integrations
TypeScript SDK
import { Squillify } from "@squillify/sdk";

const sq = new Squillify({ apiKey: process.env.SQUILLIFY_API_KEY });

const { output } = await sq.execute("legal.contract_metadata_validate", {"status":"DRAFT","parties":[{"name":"Northwind Ltd","type":"ORGANIZATION","id":"p-buyer"}]});

Errors

CodeHTTPRetryableDescription
VALIDATION_ERROR400NoThe request payload failed schema validation.
UNAUTHORIZED401NoMissing or invalid API key.
SKILL_NOT_ACCESSIBLE403NoThe API key is not granted access to this skill.
SKILL_NOT_AVAILABLE_FOR_PLAN403NoThis skill is not included in your current plan.
PLAN_ELIGIBILITY_UNAVAILABLE503YesPlan eligibility could not be decided. Retry after backoff.
SKILL_NOT_FOUND404NoThe requested skill or version does not exist.
TENANT_RATE_LIMITED429YesRequest rate limit exceeded. Retry after backoff.
QUOTA_EXCEEDED429YesPlan quota exhausted. Retryable once the quota period resets.
EXECUTION_TIMEOUT504YesExecution exceeded the allowed time budget.
METADATA_LIMIT_EXCEEDED429NoA size, quota, rate, or time limit was exceeded.

Other limits

LimitValue
Recommended inline bytes32 KiB

Limitations

  • Does not read contract prose
  • Does not verify party identity
  • Does not look up a company or jurisdiction
  • Extracting metadata from a PDF
  • Deciding legal sufficiency

How to call

POST /v1/execute (requires authentication)

Request bodyjson
{
  "skillKey": "legal.contract_metadata_validate",
  "input": {
    "status": "DRAFT",
    "parties": [
      {
        "name": "Northwind Ltd",
        "type": "ORGANIZATION",
        "id": "p-buyer"
      }
    ]
  }
}

Examples

Draft status without an execution date stays valid

Inputjson
{
  "status": "DRAFT",
  "parties": [
    {
      "name": "Northwind Ltd",
      "type": "ORGANIZATION",
      "id": "p-buyer"
    }
  ]
}
Expected outputjson
{
  "status": "DRAFT",
  "valid": true,
  "assumptions": [
    "Required fields are only those listed in requiredFields; nothing else is inferred as mandatory.",
    "governingLaw is stored as the supplied label and is not looked up against a jurisdiction table."
  ],
  "limitations": "Calculations use only the parameters supplied in this call. No implicit legal rule is applied, and the answer does not determine validity, compliance or enforceability.",
  "parties": [
    {
      "id": "p-buyer",
      "name": "Northwind Ltd",
      "type": "ORGANIZATION"
    }
  ],
  "diagnostics": []
}
Tip
DRAFT does not require executionDate unless you list it in requiredFields.

Terminated status without a termination date is invalid

Inputjson
{
  "status": "TERMINATED",
  "parties": [
    {
      "name": "Northwind Ltd",
      "type": "ORGANIZATION",
      "id": "p-buyer"
    }
  ]
}
Expected outputjson
{
  "status": "TERMINATED",
  "valid": false,
  "assumptions": [
    "Required fields are only those listed in requiredFields; nothing else is inferred as mandatory.",
    "governingLaw is stored as the supplied label and is not looked up against a jurisdiction table."
  ],
  "limitations": "Calculations use only the parameters supplied in this call. No implicit legal rule is applied, and the answer does not determine validity, compliance or enforceability.",
  "parties": [
    {
      "id": "p-buyer",
      "name": "Northwind Ltd",
      "type": "ORGANIZATION"
    }
  ],
  "diagnostics": [
    {
      "code": "TERMINATED_WITHOUT_DATE",
      "severity": "ERROR",
      "message": "status TERMINATED has no terminationDate.",
      "path": "/terminationDate"
    }
  ]
}
Tip
TERMINATED without terminationDate yields TERMINATED_WITHOUT_DATE.
  • Lint a matter-intake form before filing
  • Catch TERMINATED without a termination date

Avoid for

  • Extracting metadata from a PDF
  • Deciding legal sufficiency

Composable with

Safety & privacy

  • Runs without calling any external service.
  • Your payloads are never stored permanently.
  • Telemetry captures metadata only — never your payload contents.
  • We never train models on your payloads.
  • No human reviews your payloads.

Tags

validationlegal