Skip to main content
Glama

Export PACT footprint

lca_export_pcf
Read-onlyIdempotent

Export a saved assessment (a<N>) as a PACT v3.0.3 product footprint file. ref is an a<N> in the workspace named by workspace. The file is in the PACT v3.0.3 data model, structured to the GHG Protocol Product Standard and the PACT Methodology, built from the stored result. The values only the user knows are arguments: company name and URN ids, product URN ids and description, the reference period, fossil and biogenic carbon content (0 if none), the share of emissions left out, whether packaging and CCS are included, the declared unit if the functional unit is not in PACT's units, and the product mass (kg) unless the functional unit is a mass (kg, g or t). The result needs an EF 3.x method (EF 3.1 preferred, AR6) or BAFU's IPCC 2013: only those report biogenic CO2 apart from biogenic methane, as PACT needs. A missing value, any other method or a result outside PACT's bounds is refused, one sentence each. The result lists the fields the file leaves out and why, and carries the file as fenced JSON.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "workspace": "<workspace>",
      "ref": "<ref>"
    },
    "name": "lca_export_pcf"
  }
}

Input Schema

NameRequiredDescriptionDefault
refYesThe saved assessment `a<N>` to export.
workspaceYesName of the workspace to work in, as `lca_get(kind='workspaces')` lists it (backticks optional). Named on every call: several conversations can share one connection, and each names its own workspace. The connection's default is often an empty sandbox rather than the user's work.
company_idsNoURNs identifying the company, e.g. 'urn:pact:company:customcode:buyer-assigned:4321'.
product_idsNoURNs identifying the product, e.g. 'urn:pact:product:customcode:vendor-assigned:PLY-18'.
company_nameNoThe reporting company's name.
geography_countryNoISO 3166-1 alpha-2 country. At most one geography.
product_descriptionNoWhat the product is.
declared_unit_amountNoWith `declared_unit_of_measurement`: how many of that unit one functional unit is.
product_name_companyNoThe product's trade name. Omitted: the system's name (the result says so).
reference_period_endNoLast day of the activity data, included (YYYY-MM-DD, on or after the start). The file states it as midnight at the start of the next day, because PACT's referencePeriodEnd is exclusive.
fossil_carbon_contentNoFossil carbon content, kg C in one functional unit (the system's declared amount; 0 if none). The file restates it per declared unit.
reference_period_startNoEarliest date of the activity data (YYYY-MM-DD).
biogenic_carbon_contentNoBiogenic carbon content of the product, kg C in one functional unit (the system's declared amount; 0 if none). Required: PACT's biogenic CO2 uptake is −44/12 × this. The file restates it per declared unit.
product_classificationsNoOptional classification URNs, e.g. 'urn:pact:productclassification:un-cpc:3141'.
exempted_emissions_percentNoShare of emissions left out of the footprint, in % (0 if none).
declared_unit_of_measurementNoOnly when the functional unit's unit is not one of PACT's: the unit one functional unit is stated in.
packaging_emissions_includedNoWhether packaging emissions are inside the boundary. Ask; omitted, the file leaves it out and says so.
geography_country_subdivisionNoISO 3166-2 subdivision. At most one geography.
geography_region_or_subregionNoUN M49 region or subregion. At most one geography.
exempted_emissions_descriptionNoWhat was left out, and why.
product_mass_per_declared_unitNoMass in kg of the product in one functional unit (the system's declared amount, e.g. 1000 kg for a system declared per 1 t), excluding packaging; 0 for energy, transport or service. Not needed when the functional unit is in kg, g or t. The file restates it per declared unit.
ccs_technological_co2_capture_includedNoWhether carbon capture and storage takes place inside the boundary. Ask; omitted, the file leaves it out and says so.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / biogenic_carbon_content / description
      Previous value: -"Biogenic carbon content, kg C per declared unit."New value: +"Biogenic carbon content of the product, kg C in one functional unit (the system's declared amount; 0 if none). Required: PACT's biogenic CO2 uptake is −44/12 × this. The file restates it per declared unit."
    • changedInput schema / properties / fossil_carbon_content / description
      Previous value: -"Fossil carbon content, kg C per declared unit (0 if none)."New value: +"Fossil carbon content, kg C in one functional unit (the system's declared amount; 0 if none). The file restates it per declared unit."
    • changedInput schema / properties / product_mass_per_declared_unit / description
      Previous value: -"Mass in kg of one declared unit, excluding packaging; 0 for energy, transport or service. Not needed when the declared unit is kilogram."New value: +"Mass in kg of the product in one functional unit (the system's declared amount, e.g. 1000 kg for a system declared per 1 t), excluding packaging; 0 for energy, transport or service. Not needed when the functional unit is in kg, g or t. The file restates it per declared unit."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/non-destructive annotations, it discloses refusal behavior ('A missing value, any other method or a result outside PACT's bounds is refused, one sentence each'), the reference-period exclusive-end conversion, per-declared-unit restatement of carbon and mass values, and the fact that omitted packaging/CCS flags are dropped and reported. That is unusually rich behavioral disclosure.

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

Conciseness4/5

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

Front-loaded with the action and artifact, then the arguments, then failure modes, then return shape. The sentences are long and dense, especially the enumeration of user-supplied values, but nearly every clause carries operative information.

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

Completeness5/5

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

For a 22-parameter tool with no output schema, the description supplies both the success shape ('carries the file as fenced JSON', plus a list of omitted fields and why) and the failure shape (one-sentence refusals). An agent knows exactly what to supply and what to expect back.

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

Parameters4/5

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

Schema coverage is 100%, so the schema baseline is 3, but the description adds real meaning: it frames the optional fields as 'the values only the user knows', explains that product mass is unnecessary when the functional unit is already kg/g/t, and notes the 0-if-none conventions. It does not walk through all 22 parameters, but it adds enough interpretation to exceed the baseline.

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

Purpose5/5

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

Opens with a specific verb, resource and output format: 'Export a saved assessment (`a<N>`) as a PACT v3.0.3 product footprint file.' The target artifact, the source identifier pattern, and the standard (GHG Protocol Product Standard / PACT Methodology) are all named, so no sibling tool could be confused with it.

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

Usage Guidelines4/5

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

It states preconditions clearly: the assessment needs an EF 3.x method (EF 3.1 preferred, AR6) or BAFU's `IPCC 2013`, because only those report biogenic CO2 separately as PACT requires, and it names what is refused. It doesn't explicitly contrast with alternative tools, but no sibling performs PACT export, so the practical gap is small.

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.

Resources