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/ca4e1dca8343f788a296161f0e19712f7afb7e5eaec0431081e715a4cc34b784.json — a snapshot, not a subscription; this receipt verifies offline regardless of whether that file is ever fetched. Summary: Recomputes, for one stated certified-payroll week, whether each worker on a caller-declared payroll was paid at or above the wage-determination rate for their classification, with Contract Work Hours and Safety Standards Act overtime applied at time-and-a-half on the basic hourly rate and fringe... Outputs: apprentice_check, citations, comparison_basis, currency, deficient_worker_count, diff, fence, indeterminate_reason, minor_unit_exponent, not_proven, note, payroll_rows, project_ref, pwa_mode, pwa_result, rationale, rejected_inputs, submitted_supplied, total_deficiency_display, total_deficiency_minor_units, verdict, wage_determination, week_ending_label. Output schema: call describe_tool("recompute_certified_payroll_pwa").

Input 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". Required: apprentice_program, currency, intentional_disregard, irc_6621_underpayment_rate_percent, payroll_rows, project_ref, pwa_mode, submitted_payroll, underpayment_days, wage_determination, week_ending_label. Unknown keys are refused.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  2. Changed3 schema fields changed
    • changedInput schema / properties / policy_parameters / description
      Previous value: -"Input 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."New value: +"Input 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\". Required: apprentice_program, currency, intentional_disregard, irc_6621_underpayment_rate_percent, payroll_rows, project_ref, pwa_mode, submitted_payroll, underpayment_days, wage_determination, week_ending_label. Unknown keys are refused."
    • addedInput schema / properties / policy_parameters / properties
      Added value: +{
      +  "apprentice_program": {},
      +  "currency": {
      +    "type": "string"
      +  },
      +  "intentional_disregard": {
      +    "type": "boolean"
      +  },
      +  "irc_6621_underpayment_rate_percent": {},
      +  "payroll_rows": {},
      +  "project_ref": {},
      +  "pwa_mode": {
      +    "type": "boolean"
      +  },
      +  "submitted_payroll": {},
      +  "underpayment_days": {
      +    "type": "number"
      +  },
      +  "wage_determination": {},
      +  "week_ending_label": {}
      +}
    • removedInput schema / properties / policy_parameters / propertyNames
      Removed value: -{
      -  "type": "string"
      -}
  3. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous 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"
      -}New value: +null
  4. 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"
      +}
  5. Added

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint/idempotentHint/non-destructive, so the safety profile is covered. The description adds real value beyond that: transient processing with no storage/logging/retention, a recommendation to use synthetic or anonymised inputs, browser delegation semantics, and emission of an AP2 artifact with execution_hash for provenance.

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

Conciseness2/5

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

The definition is bloated with platform boilerplate (OpenChainGraph compute node, FV-status snapshot hash URL, 'this receipt verifies offline') that precedes and dilutes the actual purpose. The long alphabetized outputs list and the internal link also crowd out the front-loaded task statement, so size works against clarity.

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

Completeness4/5

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

For a fairly elaborate, nested-input computation with no output schema, the description explains the computation rule, the overtime/fringe basis, the verdict/deficiency outputs, and points to describe_tool for the full schema. That is close to complete, with the only shortfall being the platform noise rather than missing operational detail.

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 documented inline, so the schema carries the parameter burden. The description restates the compute-mode behavior but adds no field-level semantics for the nested policy_parameters (wage_determination, payroll_rows, apprentice_program, irc_6621 rate), leaving baseline 3 appropriate.

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 summary sentence names a specific verb and resource: recompute whether each worker on a caller-declared payroll was paid at or above the wage-determination rate for their classification, with CWHSSA overtime applied. That is distinguishable from generic recompute_ siblings, though the actual purpose only appears after several sentences of platform boilerplate.

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

Usage Guidelines3/5

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

The compute-mode paragraph explains execution behavior (auto/server/browser, gpu:true always delegates), which is about how to run the tool, not when to prefer it over alternatives. There is no explicit when-to-use/when-not or named sibling alternative despite the very crowded recompute_ set.

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.