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/565f2dd45a55e0ff0f8dafde8c1080f9e1484b32a5aaa96f4d7739a236b9258a.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").

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "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

B3.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely non-obvious behavior: the compute mode routing (server kernel vs browser delegation URL, gpu:true always delegating), transient non-retention of inputs, and an AP2 artifact carrying execution_hash for chaining. That extra context is meaningful, though some of it (FV-status snapshot language) is process narration rather than tool behavior.

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 description opens with a redundant restatement of name and title ('OpenChainGraph compute node' repeated twice), then a long paragraph of compute-binding and FV-status URL content before reaching the actual purpose. It truncates mid-sentence ('...overtime applied at time-and-a-half on the basic hourly rate and fringe...'), so a key rule is cut off. Front-loading is poor: the useful sentence sits in roughly the last third.

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?

The enumerated output keys (verdict, deficient_worker_count, total_deficiency_minor_units, not_proven, indeterminate_reason) give an agent a good sense of the return shape despite no output schema. However, for a nested-input tool whose required policy_parameters include payroll_rows and wage_determination, the description supplies no structural guidance and the sentence defining the wage rule is truncated.

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%, so the four top-level parameters and the required policy_parameters keys are already documented in the schema. The description restates the compute:"auto"/"browser" semantics rather than adding to them. It never explains how to shape the nested payroll_rows, wage_determination, or submitted_payroll objects, which are opaque `{}` in the schema — the one place description could have added value.

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 core sentence is precise: it recomputes, for one stated certified-payroll week, whether each worker on a caller-declared payroll met the wage-determination rate for their classification, with CWHSSA overtime at time-and-a-half. That is a specific verb and resource. It does not explicitly differentiate itself from adjacent siblings such as recompute_garnishment_stack or compute_flsa_regular_rate, and the purpose statement is buried after provenance 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?

Scope is implied by 'for one stated certified-payroll week' and by 'Use synthetic or anonymised inputs only', which is a real constraint on when it is safe to call. There is no explicit when-not-to-use and no named alternative for related wage/tax recomputations, so an agent must infer the boundary from the name.

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.