Open Agreements

v0.10.2
io.github.open-agreements/open-agreements Checked 4 hours ago Published 2 months ago

Fill standard legal agreement templates (NDAs, SAFEs, NVCA docs, employment) as DOCX files.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_templates

List OpenAgreements templates as a paginated compact catalog. Returns lightweight metadata for discovery — call get_template for full per-field detail. Templates are returned in stable lexicographic order by template_id.

ParameterTypeDescription
cursorstringOpaque pagination cursor returned by a prior call. Omit on the first page.
limitintegerPage size (default 25, max 100).

get_template

Fetch a single template definition with field metadata.

ParameterTypeDescription
template_id *stringTemplate ID, e.g. "common-paper-mutual-nda".

list_content

List all first-class OpenAgreements content — fillable templates, practice guides, RFC 2119-style reviewer checklists, and law surveys — as one paginated compact catalog with stable content IDs in deterministic lexicographic order. Returns lightweight metadata for discovery; call get_content (or get_template) for the full item. Non-template content is served from a local open-agreements repository checkout; when it is not available in this runtime, the affected types are reported under unavailable_types with a reason instead of appearing as silently empty.

ParameterTypeDescription
cursorstringOpaque pagination cursor returned by a prior call. Omit on the first page.
limitintegerPage size (default 25, max 100).
querystringOptional case-insensitive substring filter matched against content ID, title, description, and topic.
typestringOptional content-type filter: "template" (fillable DOCX templates), "practice_guide" (source-cited legal practice guides), "checklist" (clause-by-clause reviewer checklists), or "survey" (state-by-sta…

get_content

Fetch one OpenAgreements content item by its stable content_id (from list_content). Markdown content (practice guides, checklists, surveys) returns the full canonical document plus source/provenance metadata; template content returns the same full definition as get_template under a "template" key.

ParameterTypeDescription
content_id *stringStable content ID, e.g. "template/common-paper-mutual-nda", "practice_guide/wage-and-hour/us", "checklist/safes/yc-post-money-safe-valuation-cap", or "survey/non-compete/us".

fill_template

Fill a template using local OpenAgreements CLI and return local path or inline base64.

ParameterTypeDescription
template *stringTemplate ID, e.g. "common-paper-mutual-nda".
output_pathstringOptional output DOCX path. Defaults to a temporary location.
return_modestringReturn local file path or inline base64 document data.
valuesobjectTemplate field values passed to the fill command.

get_apap_template

Export an eligible OpenAgreements-authored template as an APAP Template payload and its ready-to-use Agreement.template relationship, preserving canonical source, version, license, and attribution.

ParameterTypeDescription
template_id *stringEligible OpenAgreements template ID.

create_apap_agreement_docx

Render APAP Concerto agreement data for an eligible OpenAgreements template as a local DOCX. Returns a path, never inline base64.

ParameterTypeDescription
agreement_data *objectAPAP agreement data carrying the template Concerto $class and field values.
template_id *stringEligible OpenAgreements template ID.
output_pathstringOptional local DOCX output path.

get_forms_survey_evidence

Fetch evidence from a published OpenAgreements forms-provider survey (clause-by-clause market benchmarks of real-world forms). Without requirement_id, returns a summary: survey metadata (including as_of freshness), the compared requirements, and the surveyed forms — but no evidence cells. With requirement_id, additionally returns that one requirement's evidence cells across all surveyed forms (verbatim sentence, operative phrase, section, clause id). The complete dataset for each survey is also available as an MCP resource (see resources/list); large surveys approach 1 MB, so prefer this too…

ParameterTypeDescription
topic *stringSurvey topic slug, e.g. "employment-offer-letter". Discover slugs via resources/list.
requirement_idstringOptional requirement id (from the summary's requirements list) to return that requirement's evidence cells.