Unispec Docs
ApiRegistryProjects

Get parsed contract summary

Parses the project's draft `agent.yaml` and returns a normalized contract overview: top-level field counts, declared tools, and any guardrails. Returns an empty summary when no parseable agent file exists; this endpoint never errors on a missing or unparseable agent.

GET
/projects/{owner}/{project}/contract

Parses the project's draft agent.yaml and returns a normalized contract overview: top-level field counts, declared tools, and any guardrails. Returns an empty summary when no parseable agent file exists; this endpoint never errors on a missing or unparseable agent.

Path Parameters

owner*string
project*string

Response Body

application/json

application/json

curl -X GET "https://example.com/projects/string/string/contract"
{  "summary": {    "name": "string",    "version": "string",    "input_fields_count": 0,    "output_fields_count": 0,    "tools_count": 0,    "guardrails_count": 0,    "permissions_count": 0  },  "tools": [    {      "name": "string",      "ref": "string",      "description": "string"    }  ],  "guardrails": [    {      "name": "string",      "ref": "string",      "stage": "input",      "effect": "block"    }  ]}
{  "error": {    "code": "string",    "message": "string"  }}