HVAC / runnable MCP tool

Run the Gas Pipe Sizing in your AI assistant

Through the free Intry MCP server, Claude, ChatGPT, or Cursor runs this exact tool and hands back its answer with the source it rests on, or says why it cannot answer, rather than a guess. Tool name: gas_pipe_size.

Building job software, an estimating tool or an agent? Intry Pro puts these engines inside your product, each answer with its source. For software makers ›
What it runs: The size of every section of a low-pressure natural gas or propane piping tree, from the fuel gas code's capacity tables and Equation 4-1. It sizes at the total connected load the caller states and never certifies an installation: a manometer at the appliance inlet under full load, the appliance instructions and the AHJ have the final say.

What you get back: what the page prints: the largest section's size or why there is none, each refusal and where to go instead, the load, method and code rows, every section's size by both length methods and which route governed, the basis, CSST and two-methods notes, what the tool does not decide, the safety line and the trace, the hand-offs, then the verdict Save files, the page's Copy and the reading's link.

How it computes the answer

The larger of the fuel gas code's own low-pressure capacity table and its sizing equation (the Cr value it prints for this gas and the bore its tables print for the material) where the code prints a table for the drop, the equation held to no smaller than the tables for any looser drop at a drop the code prints no table for, the equation alone above the loosest printed drop, or for CSST read from the code's own CSST table, applied section by section over the piping tree you described, with the length rule the chosen method assigns to each section.

What it cites

Your assistant calls the same engine the interactive calculator calls, with the inputs listed under Inputs. These are the sources that engine reads.

Chapter 4 of the fuel gas code, which is MANDATORY: Section 402.3 (Sizing) and Section 402.4 (Sizing tables and equations), with the sizing equation, the Cr and Y values, and the three length methods
The low-pressure sizing equation, its coefficient and both exponents, the Cr and Y values for natural gas and undiluted propane, the pressure at which the code switches to its other equation, the altitude adjustment above 2,000 feet (which 402.2 requires), and the longest length and branch length methods. Read from the code itself on 2026-08-18, twice and by two different means, and every value checked against the other reading before anything was published. The equation and its constants read identical across three editions of the code and four jurisdictions, which is why this tool computes rather than copies from a chart: a copied chart is tied to one material, one pressure drop and one edition.
The published capacity tables, used as a floor under every steel, copper and polyethylene answer at the drop the table is printed for and at any tighter drop, and as the equation's validation set
1,480 cells across the two low-pressure natural gas tables and the undiluted propane table were read twice, by two different means, and every cell agreed with its twin before any of it was used. 1,470 of them carry a published capacity; the other ten print the code's own NA, which its note defines as a flow under 10 cubic feet per hour. Before each release ships, on the exact code that ships, a check re-runs the equation over that locked set, and at a capacity a table publishes the equation alone may never return a smaller size. The calculator then goes further: steel, copper and polyethylene sections are held to the larger of the table's answer and the equation's at any load and any length (past a table's last printed row, that row is held as a floor), over thirteen low-pressure tables whose other ten (two more steel, five copper and three polyethylene tables) were read twice, from ICC's web edition and from an independent printed copy of the same code, and agreed cell for cell. If a size ever came out below the table's own answer, the build stops.
The code's low-pressure capacity tables this page reads, by number (IFGC 2021 Chapter 4)
Schedule 40 metallic pipe: Tables 402.4(1), 402.4(2), 402.4(3) and 402.4(4), natural gas at a 0.3, 0.5, 3.0 and 6.0 in. w.c. drop, and Table 402.4(28), undiluted propane at 0.5 in. w.c. Semirigid copper tubing: Tables 402.4(8), 402.4(9), 402.4(10) and 402.4(11), natural gas at 0.3, 0.5, 1.0 and 17 in. w.c., and Table 402.4(30), undiluted propane at 0.5 in. w.c. CSST: Tables 402.4(15), 402.4(16) and 402.4(17), natural gas at 0.5, 3.0 and 6.0 in. w.c., and Table 402.4(32), undiluted propane at 0.5 in. w.c. Polyethylene plastic pipe: Tables 402.4(20) and 402.4(21), natural gas at 0.3 and 0.5 in. w.c., and Table 402.4(35), undiluted propane at 0.5 in. w.c. Polyethylene plastic tubing, which the calculator refuses: Tables 402.4(23) and 402.4(24), natural gas at 0.3 and 0.5 in. w.c., and Table 402.4(37), undiluted propane at 0.5 in. w.c.
Copper and polyethylene bores, and CSST capacities, read from the code's own tables
The copper bores are the Type K inside diameters the code's copper tables print, which their own note calls the smallest of the copper tubing products, so a Type L tube is sized conservatively. The polyethylene bores are the ones the code's PE pipe tables print, each for the SDR printed beside it. The CSST answers are the cells of the code's four low-pressure CSST tables, looked up by the row at the section's length or the next longer printed row, and only at the drop and supply each table prints. Every one of those values was read twice, from the code publisher's own web edition and from a jurisdiction's printed copy of the same chapter, and they agreed row for row; the 2024 edition prints the same cells. Polyethylene tubing is refused because the code's natural gas tubing tables print the 0.927 inch bore as 3/4 inch and its propane tubing table prints the same bore as 1 inch.
Section 402.6 of the fuel gas code, the pressure at each appliance inlet
The code sets the allowable pressure drop so that "the supply pressure at each appliance inlet is greater than or equal to the minimum pressure required by the appliance". When you enter an appliance's minimum inlet pressure, this tool takes the lower of the two supply pressures you stated, subtracts the design drop, and refuses to size the system if what is left is below that minimum, naming the largest design drop that meets it. It also refuses a design drop that is not less than the supply you stated, and sizes nothing where no supply is stated at all. Quoted from ICC's own 2021 chapter 4 text.
An appliance's input, where a unit's page opens this worksheet: the maker's own row for that model
The unit card on a serial or model lookup, or the water heater page, can open this worksheet with one appliance's row, its input read from the row a maker's document prints for that model, and names the document and page on the row. It is that one appliance's input, never the line's total, and nothing is sized until you confirm it against the rating plate or enter your own. Where the row prints several figures, the row opens at the largest, since Section 402.2 sizes from the maximum input.
The appendix's own worked examples, used as an independent check
The appendix's worked examples are reproduced section by section, and the build fails if any of them stops coming out right. The four-outlet longest length example is a STEEL system, so its five sizes come out correct by BOTH routes the code authorises, the equation and the published table, and the 60 foot longest length is worked out from the piping tree rather than handed to the engine, so misreading that example's layout stops the build instead of quietly sizing against the wrong length. The branch length examples are pinned to the lengths the code states in its own words, and the appendix's copper tubing example and its CSST retrofit come out exactly as the appendix prints them. One of the drawings in that appendix is a duplicate of the next drawing and disagrees with its own worked solution, so these are built from the stated arithmetic and never from the picture.
Appendix A, which says in its own first line that it is INFORMATIVE and not part of the code
The fitting equivalent lengths, the pipe size table and the worked examples all live in the informative appendix. Its own wording is that a fitting allowance 'should be considered' for a run with four or more fittings, and the table it gives is a reproduction of a 1945 Crocker Piping Handbook table carried as commentary. So the fitting allowance is offered as guidance, is off unless you ask for it, and is never introduced as something the code requires. The engine's own refusal and note text, the calculator, this page and the file we publish for AI assistants are all checked so that none of them attaches the words the code requires to anything out of that appendix.

This version sizes Schedule 40 steel, copper tubing (type K or L) and polyethylene pipe by the larger of the code's own table and its equation where the code prints a table for the material, gas and drop, by the equation held to no smaller than the tables printed for any looser drop at a drop the code prints no table for, by the equation alone above the loosest printed drop, and CSST from the code's own low-pressure CSST tables, on natural gas or undiluted propane, at low pressure. CSST is sized only at a drop the code prints a CSST table for and on a supply that table's own heading allows, and its answer is a flow designation (EHD), not a diameter. Polyethylene pipe is refused inside a building, because the code puts plastic pipe outdoors and underground only. Polyethylene tubing and smooth-wall stainless are refused by name. Hybrid two pound systems are refused, and so is the whole band from one and a half to two pounds, where the equation's own bound and the tables' heading do not obviously agree. The heating value of your gas and the allowable pressure drop are both stated by you: the code publishes neither, and assuming one would move the pipe size. Sizes above the largest size a table prints are still given (the next size up, or what the equation needs if that is larger), and the result says the table has no column for them. The authority having jurisdiction and the appliance manufacturer's instructions have the final say, and a real problem is confirmed by a manometer at the appliance inlet under full load, never by a calculation.

The full receipt, with every source and how each is cross-checked, is on the interactive Gas Pipe Sizing.

Ask your assistant

The one rule that makes it reliable: name Intry in your question. That is what tells Claude to run the gas_pipe_size tool and answer from the tool's own result, with its source where it has one. Leave Intry out and Claude may just guess from memory, which is exactly what you are trying to avoid. Type something like:

“Ask Intry to size a Schedule 40 natural gas line: a 25 ft main from the meter feeding a 100,000 Btu/h furnace 12 ft away and a 40,000 Btu/h water heater 8 ft away, 1,000 Btu per cubic foot gas, a 0.5 in. w.c. design drop, 0.25 psig supply, longest length method, IFGC, indoors at sea level, no fitting allowance.”
“Use Intry to size CSST for a 40,000 Btu/h barbecue 40 ft from the meter on natural gas at 1,000 Btu per cubic foot, 0.5 in. w.c. drop, 0.25 psig supply, longest length, IRC, indoors at sea level, no fitting allowance.”

Inputs

Swipe the table sideways to see the rest of its columns. →

FieldRequiredAcceptsRangeWhat it is
secyesstringRequired. The piping tree, one section per run of pipe, in the page's link form: each section as label~parent~len~btu~draft~elbows~tees, sections joined by _ (at most 30). label is the section's name, as the page's name field holds it: one line of at most 40 characters, with no ~, _, line break or control character (a tab is read as a space; a name with any of the others is refused); parent is r for the point of delivery (the meter or second-stage regulator) or the 0-based position of the section it is fed from; len is the section's length in feet (0 to 5,000); btu is the appliance input rating in Btu/h on the section that ends at that appliance (0 to 20,000,000; 0 where no appliance ends there); draft is the appliance's draft type for the combustion air hand-off only (empty for not stated, f for fan-assisted, d for draft-hood); elbows and tees are 90 degree elbow and tee counts (0 to 50), read only when fit is 1 on Schedule 40 steel. Every number in a section is written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator. e.g. Main~r~25~0~~0~0_Furnace~0~12~100000~~0~0_Heater~0~8~40000~~0~0
gasyesnatural, propaneRequired. The gas: natural, or propane (undiluted propane). Values: natural, propane.
matyesschedule40, csst, copper-l, pe, pe-tubing, stainless-smoothRequired. The pipe material: schedule40 (Schedule 40 steel), csst (corrugated stainless, read from the code's CSST tables), copper-l (copper tubing, type K or L), pe (polyethylene pipe, outdoors underground only), pe-tubing (refused), stainless-smooth (refused). Values: schedule40, csst, copper-l, pe, pe-tubing, stainless-smooth.
famyesifgc, irc, ifgc-irc, nfpa54, upcRequired. The code your jurisdiction adopted: ifgc (International Fuel Gas Code), irc (International Residential Code), ifgc-irc (both, cited at both addresses); nfpa54 and upc are refused. Values: ifgc, irc, ifgc-irc, nfpa54, upc.
mtdyeslongest, branchRequired. The length method: longest (longest length) or branch (branch length). Values: longest, branch.
hvyesstringRequired. The heating value of the gas in Btu per cubic foot, from the serving gas supplier, 0 to 5,000, written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator (no unit). 0 is not stated, and the tool refuses rather than assume one (except propane CSST, whose table is in Btu/h). There is no specific gravity input: the code's tables print the specific gravity they assume (0.60 in IFGC Table 402.4(1) and IFGC Table 402.4(2), natural gas; 1.50 in IFGC Table 402.4(28), undiluted propane), and Equation 4-1 uses the Cr the code prints for each gas, so a gas of another specific gravity is not what these sizes assume. e.g. 1000
dropyesstringRequired. The allowable pressure drop you are designing to, in inches of water column, 0 to 20, written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator (no unit). 0 is not stated, and the tool refuses. e.g. 0.5
psigyesstringRequired. The supply pressure in psig, 0 to 100, written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator (no unit). 0 is not stated; with pod also 0 no supply is stated and the tool refuses. e.g. 0.25
altyesstringRequired. The altitude of the installation in feet, 0 to 15,000, written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator (no unit). Above 2,000 ft the code mandates an altitude adjustment and prints no multiplier, so af must be stated there.
afyesstringRequired. The altitude adjustment factor, from the serving gas supplier or the AHJ, 0 to 5, written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator (no unit). Read only above 2,000 ft: there 0 (not stated) is refused and a factor below 1 is refused; at or below 2,000 ft it is not read.
minpyesstringRequired. The appliance's minimum inlet pressure in inches of water column, 0 to 100, written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator (no unit). 0 is not stated, and the inlet check is then said to be incomplete.
podyesstringRequired. The pressure at the point of delivery in inches of water column, 0 to 100, written as the page's link writes it: a plain decimal with no padding zero (0.5, not .5 or 00.5), no trailing zero, no exponent and no thousands separator (no unit). 0 is not stated.
insideyes1, 0Required. The piping location: 1 inside a building, 0 outside or underground only. Values: 1, 0.
fityes0, 1Required. The fitting equivalent length: 1 adds it from each section's elbow and tee counts (Schedule 40 only; guidance, not code), 0 does not. Values: 0, 1.

Add Intry to your AI

One address and your assistant can run this tool and the other tools on Intry's MCP server. On Claude, the button below fills it in; once added, the Claude phone app runs it too.

Add Intry to ClaudeOpens Claude with Intry already filled in.
  1. Claude opens with the Intry connector already filled in. Click Continue, review the settings and click Continue again, choose No sign in under Authentication, and click Add.
  2. (If a field is blank, paste the link below into the URL field.)
  3. In any chat, tap + then Connectors and switch Intry on. Then name Intry in your question (“use Intry to…”) so Claude runs the tool instead of guessing.
https://www.intrysys.com/api/mcp

No login on our end and no API key, on every Claude plan. Once added, the Claude phone app runs it too.

Using another AI app?

Each one takes the same address, https://www.intrysys.com/api/mcp. Pick yours for its steps.

Each answer it can compute comes with the fuel gas code Chapter 4 capacity tables and the sizing equation with the Cr values it prints, the larger of the two, or for CSST the code's own CSST tables, which it was read from, so you can check it or show an inspector. The numbers come from the same calculator we run on intrysys.com, and our automated checks hold its answers against their sources before each release ships, on the exact code that ships, for the cases the checks cover, not for every input you can enter.

Also on Intry