# WritersLogic Metric Comparability Checker

> WritersLogic Metric Comparability Checker 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-19).

Compares two structured metric definitions field by field and identifies incompatibilities, adjustable differences, and missing fields between them

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/metric-comparability?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-metric-comparability-checker-4d796bc9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q_Tv1se8kQ4QdJQkMPgdV

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-metric-comparability-checker-4d796bc9 -d '<json body>'
```

Example prompt: Before I put these two dashboards side by side, compare their revenue metric definitions: Metric A is a sum of gross transaction amounts, denominator none, monthly calendar granularity, USD with period-average FX, net tax basis, filtered to paying accounts — and Metric B is a sum of net transaction amounts, monthly rolling granularity, USD with transaction-date FX, gross tax basis, filtered to all accounts. Tell me which differences make the numbers not comparable.

## When to prefer this

Use this endpoint when an AI agent needs to programmatically assess whether two metric definitions are structurally comparable before combining, comparing, or reporting them together — especially in multi-dashboard, multi-team, or experiment contexts. Prefer this over manual review when definitions have many fields (filters, exclusions, FX basis, population) where subtle mismatches cause silent data errors. Also use in CI/CD pipelines for metric governance to detect definition drift when a metric name is reused with an altered definition.

## Known failure modes

- Missing required 'name' field on either metric definition returns a validation error
- Truncated or malformed JSON input causes a 400 bad request
- Fields exceeding character limits (e.g. numerator > 300 chars) are rejected
- Cannot determine semantic equivalence of differently worded but logically identical definitions
- Does not read actual data, so cannot validate whether definitions produce equivalent numbers in practice
- Currency code not in ISO 4217 3-letter format causes rejection

## How this service works

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

## Output

Returns a structured report categorizing field-by-field differences between the two metric definitions into: (1) incompatible differences that make the numbers not directly comparable, (2) differences that are adjustable given access to raw data, and (3) fields present in one definition but missing from the other. In drift mode, also flags definition-drift when the metric name is unchanged but the definition has changed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "object",
   "required": [
    "name"
   ],
   "properties": {
    "name": {
     "type": "string",
     "maxLength": 120
    },
    "unit": {
     "type": "string",
     "maxLength": 60
    },
    "period": {
     "type": "object",
     "properties": {
      "end": {
       "type": "string",
       "maxLength": 40
      },
      "start": {
       "type": "string",
       "maxLength": 40
      },
      "calendar": {
       "enum": [
        "calendar",
        "fiscal",
        "iso-week",
        "us-week",
        "rolling"
       ],
       "type": "string"
      },
      "timezone": {
       "type": "string",
       "maxLength": 60
      },
      "windowDays": {
       "type": "integer",
       "maximum": 3660,
       "minimum": 1
      },
      "granularity": {
       "enum": [
        "hour",
        "day",
        "week",
        "month",
        "quarter",
        "year",
        "rolling"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "filters": {
     "type": "array",
     "items": {
      "type": "string",
      "maxLength": 200
     },
     "maxItems": 30,
     "description": "Inclusion filters."
    },
    "currency": {
     "type": "object",
     "properties": {
      "code": {
       "type": "string",
       "maxLength": 3,
       "minLength": 3,
       "description": "ISO 4217 alphabetic code."
      },
      "fxBasis": {
       "enum": [
        "none",
        "transaction-date",
        "period-average",
        "period-end",
        "fixed-rate"
       ],
       "type": "string"
      },
      "taxBasis": {
       "enum": [
        "gross",
        "net",
        "unspecified"
       ],
       "type": "string"
      }
     },
     "additionalProperties": false
    },
    "numerator": {
     "type": "string",
     "maxLength": 300,
     "description": "What is counted or summed, in words or SQL-free prose."
    },
    "weighting": {
     "enum": [
      "none",
      "equal",
      "volume",
      "revenue",
      "custom"
     ],
     "type": "string"
    },
    "exclusions": {
     "type": "array",
     "items": {
      "type": "string",
      "maxLength": 200
     },
     "maxItems": 30,
     "description": "Excluded records (test accounts, refunds, internal traffic)."
    },
    "population": {
     "type": "string",
     "maxLength": 300,
     "description": "Who or what is measured (all users, paying accounts, active devices)."
… (truncated)
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-metric-comparability-checker-4d796bc9/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)
