Reporting and LLM agents¶
Hand interpreted wells to people and to LLM tools.
Context for LLMs¶
petrophys.reporting.context
Compact, size-bounded JSON summaries of wells and results for LLMs and other tools.
Build a deterministic JSON-safe summary of a well or workflow result. |
|
Write a well summary or a fully computed context package. |
|
A context exceeds its explicitly configured UTF-8 byte budget. |
Context for LLMs reference · 2 functions · 1 class
Function schema¶
petrophys.function_schema
What each parameter of the analysis functions takes, as data: for agents, user interfaces and MCP clients.
Return every problem with the declarations; an empty list when none. |
|
Return the declaration of a public analysis function, or None. |
|
Describe a public analysis function's parameters as plain data. |
|
Return every public function defined in the modules of |
Function schema reference · 4 functions · 2 classes · 2 constants
Exports and delivery packages¶
petrophys.reporting
Delivery packages, audit reports, and interpretation exports.
Return the canonical context profile names. |
|
Return JSON-safe profile metadata. |
|
Return a context profile by name, accepting its short alias. |
|
The context profile whose wells the input files (or |
Exports and delivery packages reference · 17 functions · 2 classes
MCP server¶
petrophys.mcp
The MCP server for LLM clients. Install with pip install "petrophys[mcp]" and run petrophys-mcp; see LLM agents (MCP).
Build the Petrophys MCP server. |
|
Command-line entry point: |
|
Wells and interpretation results held by one MCP server process. |
|
A request refers to an unknown object or a disallowed path. |
MCP server reference · 2 functions · 2 classes · 1 constant