Skip to main content
Glama

AINumbers Fintech Intelligence Suite

Certified Payroll / Prevailing Wage Recomputation

recompute_certified_payroll_pwa
Read-onlyIdempotent

Certified Payroll / Prevailing Wage Recomputation: OpenChainGraph compute node (analytics_mandate). Deterministic OpenChainGraph compute node. By default (compute:"auto") inputs are computed server-side on Cloudflare Workers for gpu:false nodes with a registered kernel; compute:"browser" forces client-side execution and returns a browser delegation URL instead. gpu:true nodes always delegate to the browser. Inputs are processed transiently to compute the response and are not stored, logged, or retained. Use synthetic or anonymised inputs only. Exports an AP2 artifact with execution_hash for chain provenance. Open at: https://ainumbers.co/chaingraph/art-574-certified-payroll-prevailing-wage-recompute.html FV-status (published/proven/still-trusted for this spec): /fv-status/dfdd7083d50dfec46270d5ca2c4a06852efd98bdc1ae8d20e3d3b191e9b14ac7.json — a snapshot, not a subscription; this receipt verifies offline regardless of whether that file is ever fetched.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
computeNoCompute mode (v0.4 Compute Binding). "auto" (default) = server for gpu:false nodes with registered kernels; "server" = force server-side; "browser" = always return browser delegation URL. gpu:true nodes always delegate.
parent_hashesNoexecution_hash values from upstream ChainGraph AP2 artifacts to chain from (sets chain.parent_hashes in the export).
parent_tool_idsNotool_id values matching parent_hashes, in the same order.
policy_parametersNoInput parameters for this tool's decision function. For gpu:false nodes with a registered kernel, these are computed server-side when compute is "auto" or "server". See the tool's manifest for field names.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
diffNo
noteNo
fenceNo
verdictNo
currencyNo
pwa_modeNo
citationsNo
rationaleNo
not_provenNo
pwa_resultNo
project_refNo
payroll_rowsNo
rejected_inputsNo
apprentice_checkNo
comparison_basisNo
week_ending_labelNo
submitted_suppliedNo
wage_determinationNo
minor_unit_exponentNo
indeterminate_reasonNo
deficient_worker_countNo
total_deficiency_displayNo
total_deficiency_minor_unitsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "apprentice_check": {
      +      "type": "string"
      +    },
      +    "citations": {
      +      "properties": {
      +        "cwhssa": {
      +          "properties": {
      +            "detail": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "davis_bacon_act": {
      +          "properties": {
      +            "detail": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "irc_45b7_correction": {
      +          "properties": {
      +            "detail": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "irc_45b7_penalty": {
      +          "properties": {
      +            "detail": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        },
      +        "wh347": {
      +          "properties": {
      +            "detail": {
      +              "type": "string"
      +            },
      +            "source": {
      +              "type": "string"
      +            }
      +          },
      +          "type": "object"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "comparison_basis": {
      +      "type": "string"
      +    },
      +    "currency": {
      +      "type": "string"
      +    },
      +    "deficient_worker_count": {
      +      "type": "integer"
      +    },
      +    "diff": {
      +      "items": {
      +        "properties": {
      +          "agrees": {
      +            "type": "boolean"
      +          },
      +          "detail": {
      +            "type": "string"
      +          },
      +          "difference_display": {
      +            "type": "string"
      +          },
      +          "difference_minor_units": {
      +            "type": "integer"
      +          },
      +          "in_payroll": {
      +            "type": "boolean"
      +          },
      +          "recomputed_gross_display": {
      +            "type": "string"
      +          },
      +          "recomputed_gross_minor_units": {
      +            "type": "integer"
      +          },
      +          "submitted_gross_display": {
      +            "type": "string"
      +          },
      +          "submitted_gross_minor_units": {
      +            "type": "integer"
      +          },
      +          "worker_id": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "fence": {
      +      "type": "string"
      +    },
      +    "indeterminate_reason": {
      +      "type": "string"
      +    },
      +    "minor_unit_exponent": {
      +      "type": "integer"
      +    },
      +    "not_proven": {
      +      "items": {
      +        "properties": {
      +          "detail": {
      +            "type": "string"
      +          },
      +          "item": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "note": {
      +      "type": "string"
      +    },
      +    "payroll_rows": {
      +      "items": {
      +        "properties": {
      +          "classification": {
      +            "type": "string"
      +          },
      +          "combined_paid_rate_display": {
      +            "type": "string"
      +          },
      +          "combined_paid_rate_minor_units": {
      +            "type": "integer"
      +          },
      +          "deficiency_display": {
      +            "type": "string"
      +          },
      +          "deficiency_minor_units": {
      +            "type": "integer"
      +          },
      +          "fringe_paid_display": {
      +            "type": "string"
      +          },
      +          "fringe_paid_minor_units": {
      +            "type": "integer"
      +          },
      +          "ot_hours": {
      +            "type": "integer"
      +          },
      +          "paid_gross_display": {
      +            "type": "string"
      +          },
      +          "paid_gross_minor_units": {
      +            "type": "integer"
      +          },
      +          "rate_meets_wd": {
      +            "type": "boolean"
      +          },
      +          "rate_paid_display": {
      +            "type": "string"
      +          },
      +          "rate_paid_minor_units": {
      +            "type": "integer"
      +          },
      +          "required_gross_display": {
      +            "type": "string"
      +          },
      +          "required_gross_minor_units": {
      +            "type": "integer"
      +          },
      +          "st_hours": {
      +            "type": "integer"
      +          },
      +          "wd_combined_rate_display": {
      +            "type": "string"
      +          },
      +          "wd_combined_rate_minor_units": {
      +            "type": "integer"
      +          },
      +          "wd_found": {
      +            "type": "boolean"
      +          },
      +          "worker_id": {
      +            "type": "string"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "project_ref": {
      +      "type": "string"
      +    },
      +    "pwa_mode": {
      +      "type": "boolean"
      +    },
      +    "pwa_result": {
      +      "properties": {
      +        "correction_computable": {
      +          "type": "boolean"
      +        },
      +        "deficient_worker_count": {
      +          "type": "integer"
      +        },
      +        "intentional_disregard": {
      +          "type": "boolean"
      +        },
      +        "irc_6621_underpayment_rate_percent": {
      +          "type": "string"
      +        },
      +        "penalty_scope": {
      +          "type": "string"
      +        },
      +        "penalty_worker_count": {
      +          "type": "integer"
      +        },
      +        "per_worker_penalty_display": {
      +          "type": "string"
      +        },
      +        "per_worker_penalty_minor_units": {
      +          "type": "integer"
      +        },
      +        "total_correction_payment_display": {
      +          "type": "string"
      +        },
      +        "total_correction_payment_minor_units": {
      +          "type": "string"
      +        },
      +        "total_penalty_display": {
      +          "type": "string"
      +        },
      +        "total_penalty_minor_units": {
      +          "type": "integer"
      +        },
      +        "underpayment_days": {
      +          "type": "string"
      +        },
      +        "worker_corrections": {
      +          "type": "array"
      +        }
      +      },
      +      "type": "object"
      +    },
      +    "rationale": {
      +      "items": {
      +        "type": "string"
      +      },
      +      "type": "array"
      +    },
      +    "rejected_inputs": {
      +      "type": "array"
      +    },
      +    "submitted_supplied": {
      +      "type": "boolean"
      +    },
      +    "total_deficiency_display": {
      +      "type": "string"
      +    },
      +    "total_deficiency_minor_units": {
      +      "type": "integer"
      +    },
      +    "verdict": {
      +      "type": "string"
      +    },
      +    "wage_determination": {
      +      "items": {
      +        "properties": {
      +          "base_rate_minor_units": {
      +            "type": "integer"
      +          },
      +          "classification": {
      +            "type": "string"
      +          },
      +          "combined_rate_minor_units": {
      +            "type": "integer"
      +          },
      +          "fringe_rate_minor_units": {
      +            "type": "integer"
      +          }
      +        },
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "week_ending_label": {
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. Added

TDQS

B3.3/5.0
Behavior4/5

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

Goes well beyond the readOnly/idempotent/destructive annotations by disclosing where execution happens (Cloudflare Workers vs browser delegation), that inputs are transient and not stored or logged, and that an AP2 artifact with execution_hash is exported. It does not state what the computation actually validates or returns semantically, keeping it short of a 5.

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

Conciseness3/5

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

Front-loads the identity, but is padded: 'OpenChainGraph compute node' is stated twice, and the FV-status hash plus the offline-verification sentence read as provenance boilerplate rather than invocation guidance. Much of the body could be compressed without loss.

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

Completeness3/5

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

An output schema exists, so return-value explanation is not required, and execution/provenance behavior is covered. However the core decision function—what payroll computation is performed and what fields policy_parameters expects—is left entirely to an external manifest, which is thin for a domain-specific recompute tool.

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

Parameters3/5

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

Schema description coverage is 100% and the compute enum is already fully documented in the schema, so baseline 3 applies. The description repeats the auto/server/browser semantics already in the schema and defers policy_parameters field names to the tool manifest, adding no new parameter meaning.

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

Purpose4/5

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

The title/first line states a specific verb+resource: recomputing Certified Payroll / Prevailing Wage (PWA). It does not distinguish itself from the many other recompute_* siblings beyond the payroll domain name, and the body spends most of its text on compute plumbing rather than what the recomputation computes.

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

Usage Guidelines2/5

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

The only usage directive is 'Use synthetic or anonymised inputs only.' There is no guidance on when to call this versus other payroll/prevailing-wage or generic compute nodes, nor prerequisites for supplying policy_parameters.

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.