# WritersLogic Clause Tagger

> WritersLogic Clause Tagger is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-18).

Tags contract-style clauses with modal force (obligation, prohibition, permission, recommendation) and legal topic cues (payment, confidentiality, liability, etc.) using deterministic phrase matching.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/clause-tag?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-clause-tagger-466df572
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xwUCJk2UeWzqHqtje8M-U

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-clause-tagger-466df572 -d '<json body>'
```

Example prompt: Tag these three contract clauses for modal force and topic — I need to know which are obligations vs prohibitions and whether they relate to payment, confidentiality, or termination: [clause 1 text], [clause 2 text], [clause 3 text].

## When to prefer this

Choose this endpoint when you need fast, deterministic, rule-based tagging of contract clauses without relying on a language model — ideal for triage pipelines where you need consistent, auditable labels before human or AI review. Prefer this over LLM-based clause analysis when transparency, reproducibility, and cost predictability matter. Best for scenarios where you need to route or filter large numbers of clauses by topic or modal force before deeper analysis.

## Known failure modes

- Clause text exceeds 3000 characters per item — request rejected
- Total input exceeds 100,000 characters — batch too large
- More than 100 clauses submitted — exceeds maxItems limit
- Expected tag assertion fails — returns failure indication for that clause
- Clause has no matching cue phrase — returned as undecided/unknown (not an error)
- Bare 'will' or cue-less sentence submitted — not forced into a tag, returned as undecided
- Invalid extraCues phrase (more than 8 words or over 80 chars) — rejected

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

For each clause, the endpoint returns the modal force tag (obligation, prohibition, permission, recommendation, or undecided), matched topic cue labels (e.g. payment, confidentiality, termination), the specific cue phrase that was matched, and its character offset within the clause. Clauses with no matching rule are reported as undecided with unknown status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "expect": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "clause",
     "tags"
    ],
    "properties": {
     "tags": {
      "type": "array",
      "items": {
       "type": "string",
       "maxLength": 40,
       "description": "Expected tag."
      },
      "maxItems": 20
     },
     "clause": {
      "type": "integer",
      "maximum": 99,
      "minimum": 0,
      "description": "Clause index."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100,
   "description": "Tags a clause must carry; a missing one fails."
  },
  "clauses": {
   "type": "array",
   "items": {
    "type": "string",
    "maxLength": 3000,
    "description": "One clause."
   },
   "maxItems": 100,
   "minItems": 1,
   "description": "Up to 100000 characters in total."
  },
  "extraCues": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "tag",
     "phrase"
    ],
    "properties": {
     "tag": {
      "type": "string",
      "maxLength": 40,
      "description": "Tag to assign."
     },
     "phrase": {
      "type": "string",
      "maxLength": 80,
      "description": "Literal word phrase (case-insensitive, up to 8 words)."
     }
    },
    "additionalProperties": false
   },
   "maxItems": 100,
   "description": "Your own cue phrases, matched as literal word sequences."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-clause-tagger-466df572/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
