MCP tools reference
Emboss runs an MCP server at https://api.getemboss.ai/mcp. Connect by
signing in, or by sending an Emboss API key as a bearer token. Any MCP client
that supports OAuth can sign in with an Emboss account when the client prompts
for it, and the twenty-eight tools below become available. See Use Emboss in
Claude for the Claude-specific connect steps, or Use Emboss in
ChatGPT for other assistants. Anyone can connect and see the tool
list without signing in; using any tool needs you to sign in or send an API key.
Connect with an API key
A client that sends its own headers, such as your code or a model provider's API, can skip sign-in: send an Emboss API key (see Authentication) as a bearer token. A connection made with a key has both scopes, is billed to the key's account, and counts against that key's rate limit, the same as the key's own API calls. It is not listed under Connected apps: to end it, revoke or turn off the key on the API Keys page of the dashboard, which takes effect at its next call.
curl https://api.getemboss.ai/mcp \
-H "Authorization: Bearer sk_yourkey" \
-H "Accept: application/json, text/event-stream" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Scopes
The connection is granted one or both of two scopes:
- forms:read:
list_forms,get_form,get_usage,find_form,get_job,get_batch,get_proposal,get_fax. - forms:write: everything else, including
create_form,delete_form,fill_form,fill_form_from_context,prepare_form,commit_proposal,verify_form,read_form,add_attachment,suggest_mapping,fill_batch,send_fax, and the eight free PDF tools.
A tool call that needs a scope the connection doesn't have returns
insufficient_scope; reconnect to grant it. A connection made with an API key
always has both.
Tools
| Tool | Needs write | Billed as |
|---|---|---|
list_forms | No | Free |
get_form | No | Free |
get_usage | No | Free |
find_form | No | Free |
create_form | Yes | One form creation |
delete_form | Yes | Free |
fill_form | Yes | One fill |
fill_form_from_context | Yes | One context fill (plus one form creation if a new PDF or a library form is given) |
prepare_form | Yes | One context fill (plus one form creation if a new PDF or a library form is given) |
get_proposal | No | Free |
commit_proposal | Yes | Free within the proposal's already-billed prepare; one package if package is true |
verify_form | Yes | One verify |
read_form | Yes | One read |
send_fax | Yes | Per transmitted page |
get_fax | No | Free |
add_attachment | Yes | Free |
get_job | No | Free |
suggest_mapping | Yes | One context fill |
fill_batch | Yes | One fill per row, plus one context fill if mapping is omitted |
get_batch | No | Free |
compose_pdf | Yes | Free |
merge_pdf | Yes | Free |
extract_pages | Yes | Free |
delete_pages | Yes | Free |
reorder_pages | Yes | Free |
rotate_pages | Yes | Free |
inspect_pdf | Yes | Free |
flatten_pdf | Yes | Free |
list_forms
Forms already in the user's Emboss library.
Arguments
state(optional):ready(default),processing,failed, orall.limit(optional): up to 50.cursor(optional): from a previous call'snext_cursor, for pagination.
Returns
forms: each withid,title,state,pages,field_count, andcreated_at.next_cursor: present if there are more forms to page through.
get_form
Status of one form.
Arguments
form_id(required).
Returns
id,status,title,error(when it failed),reused_layout(true when Emboss recognised the form's layout), andretention.- When the form is
ready:pages,warningsandmessagefor an XFA form,fields(each withid,label,kind,required,optionsfor choice fields,groupfor fields that belong to the same exclusive group, anddescriptionwhen the form gives one), adownload_urlfor the fillable PDF, itsartifact_id, and, when the form was made from an upload, the upload'ssource_artifact_id. See Artifacts and lineage.
get_usage
No arguments. Returns this month's usage, how many free operations remain,
and the billing page link. It also returns payment_method_on_file, whether a
payment method is on the account, and fax_ready, whether the account may
send a fax: a payment method is on file, or the account is comped.
Arguments
None.
Returns
period,used,free_remaining,billing_url,payment_method_on_fileandfax_ready(true with a payment method on file, or on a comped account).
find_form
Find a blank government form in the Emboss library by name or number, ready to fill. Search the Emboss library of blank government forms by name, number, alias or place (w9, W-9, form w 9 and taxpayer identification all find the same form). When a form belongs to a state or country, say so in the query or pass region or country. Leave query empty and pass region, country or category to list every form that fits. Send the whole query once, and do not search as the user types: each search spends one of the account's rate-limit slots. Free.
Arguments
query(required, may be empty): a form name, number, other name or place, such asW-9,i9,taxpayer identificationorCalifornia withholding certificate. Leave it empty and passregion,countryorcategoryto list every form that fits.region(optional): a state code such asCA. With a query, the state the query is about; without one, lists that state's forms and the shared certificates it accepts.country(optional): a two-letter country code,USby default.category(optional): one of the library's categories, such astax: withholding certificate.limit(optional): default 20, up to 50.cursor(optional): from a previous call'snext_cursor, for the next matches.
Returns
results: each match'sslug,title,agency,number, place (country,region,levelandaccepted_by),category,editionandpage_count, plusrevision,language,who_fillsandnotes. A tax form asked for in a year the library does not hold also carriesyear_note, such as "You asked for 2024; the library has tax year 2025." Pass aslugaslibrarytocreate_form,fill_form_from_contextorprepare_formto start from that form instead of uploading one.note: a sentence when the answer needs one, otherwise null. "The library has no Texas form for this; this is the federal form." when the state you named has no form of its own; "Name a state: the library has this for AL, GA." when the form exists for several states, with no results until you name one. An emptyresultswith nonotemeans no match.total: how many forms matched.next_cursor: set when more matches follow.
Up to 20 matches come back at a time (limit sets up to 50); when next_cursor is set, pass it as cursor for the next ones.
create_form
Upload a PDF and detect its fields.
Arguments
pdf_url,pdf_base64orlibrary(exactly one required): a public https link, base64-encoded PDF bytes, or aslugfromfind_formto start from a form Emboss already keeps. A library form is billed as one form creation, like an upload.title(optional).retention(optional):ephemeraloraccount_default. See Retention below.dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
form_id,status. Returns when detection finishes, usually under two minutes. Billed as one form creation; the first 5 each month are free.
delete_form
Permanently removes a form and its PDFs from the user's library. Only call this when the user explicitly asks.
Arguments
form_id(required).dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
ok.
fill_form
Fill a ready form with values.
Arguments
form_id(required).values(required): a dict keyed by field id or field label. Checkboxes takeyes/no; choice fields take one of the field's option labels or values.flatten(optional): not supported.fill_formalways returns a fillable PDF, and passingtruereturnsbad_request: "fill_form returns a fillable PDF. To lock it, call flatten_pdf with the filled PDF's artifact_id."dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
download_url,artifact_id(see Artifacts and lineage),appliedvalues, anyunmatchedkeys (labels that didn't match a field, or values that didn't match a checkbox word or option; ask the user about those), andwarnings. Billed as one fill; the first 5 each month are free.
fill_form_from_context
Fill a form using answers pulled out of documents or notes.
Arguments
form_id,pdf_url/pdf_base64, orlibrary(exactly one of the three):form_idfor a form already in the library, a PDF to create and fill a new one, or aslugfromfind_form.context_text(optional): pasted notes or text, up to 200,000 characters.context_urls(optional): public https links to PDFs, Word docs, spreadsheets, images, or text files, each up to 25 MB.policy(optional):safe(write high and medium confidence, the default) orstrict(high only).retention(optional):ephemeraloraccount_default; it applies only when this call creates the form.
At least one of context_text / context_urls is required, and the call takes
at most 5 supporting documents in total, counting pasted text as one.
dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
job_id. Pollget_jobabout every 20 seconds. Billed as one context fill; the first 5 each month are free. Passingpdf_url/pdf_base64instead ofform_idalso creates the form, so that path is billed as one form creation plus one context fill.
prepare_form
Propose a fill without writing anything into the PDF. Same inputs as
fill_form_from_context, but it stops at the proposal: read what Emboss decided,
answer what is missing, then commit. See
Prepare, commit and verify.
Arguments
form_id,pdf_url/pdf_base64, orlibrary(exactly one of the three), as forfill_form_from_context.context_text(optional): pasted notes or text, up to 200,000 characters.context_urls(optional): public https links, each up to 25 MB. As forfill_form_from_context, at most 5 supporting documents in total, counting pasted text as one.retention(optional):ephemeraloraccount_default; it applies only when this call creates the form.policy(optional):safe(write high and medium confidence, the default) orstrict(high only).dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
job_idand aproposal_id. Pollget_jobabout every 20 seconds. Billed as one context fill; the first 5 each month are free.
get_proposal
Read a proposal by its id: every field's state, its candidate values with evidence, and the questions still open.
Arguments
proposal_id(required).
Returns
fields,questions,confirmations,requirementsandsummary. No charge to read it.
commit_proposal
Write a proposal into the PDF, render it, check it, and return a receipt.
Arguments
proposal_id(required), fromprepare_form.confirm(optional): field ids fromconfirmationsto accept as proposed, unchanged.values(optional): the values the agent decided for fields still open, each with afield_id, avalue, and an optionalnote.policy(optional):safeorstrict, overriding the proposal's own.package(optional, default false): also build the submission package, the filled form with its attachments and the receipt embedded in one file. Billed as one package, and the first 5 each month are free. See The submission package.dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
job_id. Pollget_jobabout every 20 seconds for the download link, report, receipt and, whenpackagewas true,package_url. The commit itself is free within the proposal's already-billed prepare, up to 10 commits per proposal; a commit that builds a package is billed one package for that package.
verify_form
Check a filled PDF against a form's contract: required fields, allowed options, text that fits, empty signature boxes. No model call.
Arguments
form_id(required).pdf_urlorpdf_base64(exactly one required): a public https link, or base64-encoded PDF bytes.dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
result(complete,review_requiredorincomplete), theissuesfound, andcounts. Billed as one verify; the first 5 each month are free.
read_form
Read a filled PDF's values back out, labelled, without storing the file. See Read a filled form back.
Arguments
pdf_urlorpdf_base64(exactly one required): a public https link, or base64-encoded PDF bytes.form_id(optional): the form to read the values against, if you already know it.dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
recognised(form_id,own_layout,shared_layout, ornone),fields,unmatched,counts, andcomplete. Billed as one read; the first 5 each month are free.
send_fax
Send a PDF to a fax number and get a job id back at once. Needs a payment method on the account; get_usage reports fax_ready. A limit refuses with error code account_paused, destination_busy or rate_limited. The first two carry retry_after and until; rate_limited carries retry_after. See Send a fax.
Arguments
to(required): the destination fax number in E.164 form, for example+15025551212. United States, Canada, and Mexico are served.- Exactly one of:
artifact_id: the id of a file Emboss already made or received, such as a job's filled PDF or a form's fillable PDF. See Artifacts and lineage.sources: a list of entries, each anartifact_id, anartifact_tokenfor pay-per-call callers, and optionalpages, sent as one packet. See Artifacts and lineage for the grammar.job_id: afill_form_from_contextorcommit_proposaljob onceget_jobreportsready; the filled PDF is faxed.form_id: a form fromcreate_form; its fillable PDF is faxed.pdf_urlorpdf_base64: any PDF.
dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
job_id,status(working),pages,price_cents,destination_masked, theartifact_idof the transmitted copy, andsource_artifact_ids. The fax is in flight when this returns; pollget_faxfor delivery. Billed at 3¢ per page when the fax is delivered; a fax that fails is not charged. Ajob_idthat is still processing returnsnot_ready; pollget_joband call again. A repeated fax of the same artifact to the same destination within ten minutes returns the same job withdeduplicated: true.
get_fax
Delivery status and receipt of a send_fax job. A busy, unanswered or dropped call is retried automatically up to three more times over about 17 minutes while the status stays working; attempts, max_attempts and next_attempt_at say where it is. A failed or expired fax carries a plain failure_message saying what happened.
Arguments
job_id(required).
Returns
- The receipt:
status(queued,working,delivered,failedorexpired; keep checking until it isdelivered,failedorexpired),to_masked,pages, theartifact_idof the transmitted copy and itssource_artifact_ids, and on delivery thepriceand theartifact_sha256of the transmitted file; on failure thefailure_category,failure_reason, whether it isretryable, andrefund(itsmodeandstate), the same on an expired fax. attempts,max_attemptsand a plainmessageon every receipt; while a resend waits, alsonext_attempt_atandlast_failure; on a failed or expired fax,failure_message.
add_attachment
Attach a supporting document to a proposal before commit. See
The submission package; commit_proposal above
also takes package: true to hand back one merged submission package once
attachments are in place.
Arguments
proposal_id(required), fromprepare_form.file_urlorfile_base64(exactly one required): a public https link, or base64-encoded file bytes. PDF, PNG, or JPEG.requirement(optional): the name of an entry in the form's required attachments this file satisfies.
Returns
- The attachment's
n,for(the requirement it satisfies),filename,bytes,sha256andartifact_id. Free. At most 20 per proposal and 20 MB in all.
get_job
Status of a fill_form_from_context, prepare_form, or commit_proposal job.
Arguments
job_id(required).
Returns
status, theform_idthe job fills (retry with it after a fill that found nothing), andretention; on failure,error. When ready:download_url,filled(field count),dropped, anywarnings, andartifacts, a list of this job's files each with anartifact_id,role(filled,receipt, orpackage), andmime_type. See Artifacts and lineage. Aprepare_formjob also carries aproposal_id; acommit_proposaljob carries the verificationresultplus links to the receipt and the PDF.
suggest_mapping
Propose which spreadsheet column fills which form field.
Arguments
form_id(required).csv_text(up to 2 MB) orcsv_url(up to 25 MB), exactly one required. Only the header row matters.dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
mappingof{column: field_id}andunmapped_columns. suggest_mapping is billed as one context fill (5 free each month).fill_batchruns this automatically when called without amapping, and bills the same.
fill_batch
Fill the form once per spreadsheet row.
Arguments
form_id(required).csv_text(up to 2 MB) orcsv_url(up to 25 MB), exactly one required, up to 1,000 rows.mapping(optional):{column: field_id}. Omit it to use the suggested mapping (this runssuggest_mappingfirst, billed as one context fill).dry_run(optional):trueto rehearse the call. See Rehearsing a call.
Returns
batch_id,total(row count),mapping_used(the{column: field_id}mapping actually applied, whether you passed one or it ransuggest_mappingfor you). Batches up to 50 rows finish before this call returns; larger ones keep running, pollget_batch. Each row is billed as one fill.
get_batch
Progress of a fill_batch run.
Arguments
batch_id(required).limit(optional): rows per page, default 100, up to 100.cursor(optional): from a previous call'snext_cursor, for the next rows.
Returns
status,total,filled,failed, adownload_urlandartifact_idper finished row, and azip_urlonce the batch is done.next_cursor: set when more rows follow; empty on the last page, and while the batch is still running (its rows appear only when it finishes).
Progress of a fill_batch run with a download link per finished row (100 at a time; pass next_cursor as cursor for the next 100) and a zip link when done.
Free PDF utilities
Merge, compose, extract, delete, reorder, rotate, inspect and lock PDF artifacts.
Every result carries a new artifact_id, and every tool that makes a file also returns a download_url, a link to it that works for about an hour with no API key; see
Artifacts and lineage for the id, the pages grammar,
and how a pay-per-call caller passes an artifact_token in place of an
account. Each also returns an operation_id and an artifacts list; inspect_pdf
returns its facts under report, with artifact_id null and no link.
compose_pdf
Free. Build one PDF from several artifacts.
Arguments
sources(required): a list of{artifact_id, pages, rotate}.pagesis a selection like1-3,7(omit for every page);rotateis90,180or270.
Returns
- The new
artifact_id. - A
download_url: a link to the file that works for about an hour, no API key needed.
merge_pdf
Free. Join whole PDFs in order; no page selection.
Arguments
sources(required): a list of{artifact_id}, joined in order. For page selections usecompose_pdf.
Returns
- The new
artifact_id. - A
download_url: a link to the file that works for about an hour, no API key needed.
extract_pages
Free. Keep only the named pages of one artifact.
Arguments
artifact_id(required).pages(required): a page selection like1-3,7(1-based, repeats and any order allowed).
Returns
- The new
artifact_id. - A
download_url: a link to the file that works for about an hour, no API key needed.
delete_pages
Free. Remove the named pages of one artifact; every other page stays in order.
Arguments
artifact_id(required).pages(required): a page selection like1-3,7.
Returns
- The new
artifact_id. - A
download_url: a link to the file that works for about an hour, no API key needed.
reorder_pages
Free. Put one artifact's pages in a new order; every page is named exactly once.
Arguments
artifact_id(required).order(required): every page number, 1-based, named exactly once, in the new order.
Returns
- The new
artifact_id. - A
download_url: a link to the file that works for about an hour, no API key needed.
rotate_pages
Free. Rotate named pages of one artifact by 90, 180 or 270 degrees, added clockwise to each page's current rotation.
Arguments
artifact_id(required).rotations(required): a non-empty list of{pages, degrees}.
Returns
- The new
artifact_id. - A
download_url: a link to the file that works for about an hour, no API key needed.
inspect_pdf
Free. Structural facts about one artifact: no new file is produced.
Arguments
artifact_id(required).
Returns
- Page count, each page's size and rotation, whether the PDF is encrypted, has form fields, annotations, outlines, embedded files or JavaScript. No text, no field values.
flatten_pdf
Free. Lock a filled form: draw every field's value and every comment into the page so nothing can be edited.
Arguments
artifact_id(required): a PDF artifact you can use.
Returns
- The new
artifact_id: a PDF with every field's value, checkbox and comment drawn into the page, no editable fields left, links kept, and the page count, size and rotation unchanged. The original stays as it is. - A
download_url: a link to the file that works for about an hour, no API key needed. - A
report:fields_locked,annotations_locked,pages, andcalculated_left_blank(labels of boxes the form totals itself that were empty when locked). A file with nothing to lock succeeds with zeros. - Signature boxes: a typed name is drawn in the box, an empty box is left
blank to sign by hand, and no placeholder tag is ever drawn. A real digital
signature is refused with
pdf_signed; a dynamic XFA form is refused withxfa_dynamic. - A locked form cannot be read back or checked:
read_formrefuses it. Read or verify before locking.
Rehearsing a call
Eleven tools can be rehearsed: delete_form, send_fax, create_form,
fill_form, fill_form_from_context, prepare_form, suggest_mapping,
fill_batch, commit_proposal, verify_form and read_form. They are the
ones that delete, send a fax or charge.
Pass dry_run=true to rehearse this call without doing it: nothing is stored, charged or sent, and no AI is used. The answer says whether the real call would succeed or be refused, what it would cost, and what a rehearsal cannot check.
The answer carries dry_run (always true), operation, outcome
(would_succeed or would_refuse), refusal (the exact status and body the
real call would answer, or null), price (what the real call would charge
now: cents, pages, covered_by_free_allowance, free_left_this_month and
card_needed; null for a delete), details (facts the checks read, such as
page counts) and not_checked (what a rehearsal cannot check, in plain
words). The same rehearsal exists on the account API as ?dry_run=true and on
the A2A agent as a dry_run field; see Worked examples for
an answer.
Polling
Long operations return an id instead of finishing inline:
fill_form_from_context,prepare_formandcommit_proposaleach return ajob_id. Pollget_jobabout every 20 seconds until itsstatusisreadyorfailed.fill_batchreturns abatch_id. For batches over 50 rows, pollget_batchabout every 20 seconds until itsstatusiscompleteorfailed.send_faxreturns a faxjob_id. Pollget_faxabout every 20 seconds until itsstatusisdelivered,failedorexpired.
Errors
Every error carries a machine-readable code and a human message.
insufficient_scope: the connection doesn't have the needed permission; reconnect Emboss to grant it.not_found: the id doesn't exist, or isn't in this account.not_ready: the form, job, or batch is still processing; try again shortly.over_free_tier: this month's free operations are used up, or (fill_batch) the batch has more rows than the free fills left; relay the message and thebilling_url.over_page_cap: the form is over the free-tier 5-page limit; relay the message and thebilling_url.card_required(send_fax): the account has no payment method on file, and faxes have no free allowance; relay the message and thebilling_url.unsupported_file: not a PDF; tell the user to export to PDF first.bad_request: malformed or conflicting arguments; check the message for which argument and fix the call.fetch_failed: a given URL couldn't be downloaded; ask the user for a working public link, or a pasted/base64 alternative.nothing_to_fill(fill_form): none of the given values matched a field; showget_form's fields and ask the user which ones to fill.no_mapping(fill_batch): no spreadsheet column matched a form field; pass an explicitmapping(seesuggest_mapping).document_same_as_form(fill_form_from_context,prepare_form): a supporting document is the blank form itself, with nothing filled in; ask the user for the document that holds the answers.pdf_unsafe(create_form,read_form,verify_form,inspect_pdf,flatten_pdf,fill_form,fill_form_from_context,prepare_form): the PDF's form fields are built in a way that could compromise the service. The message is "Emboss does not process PDF files that could compromise the service." It is refused before any price, charge or stored file; tell the user, and ask for a different PDF. Do not retry the same file.too_large: the upload is over its size limit (PDF, context text, or CSV); ask the user for a smaller file or a link instead of inline content.rate_limited: too many requests; wait a minute and retry.server_error: Emboss had a problem processing the request; retry once, and tell the user if it persists.unauthenticated: no valid session; reconnect Emboss.conflicting_values(fill_form): two boxes in one Yes/No question were set to yes; ask which one the user meant.documents_deleted: the form's files were deleted under ephemeral processing; ask the user to upload the form again.refused(send_fax): the number is malformed, outside the United States, Canada and Mexico, or blocked; do not retry the same number.provider_unavailable(send_fax): the fax provider did not accept the job and nothing was charged; retry once after a minute.gone(send_fax, the free PDF tools): the file behind thatartifact_idwas deleted under ephemeral processing; recreate it and send again.- The free PDF tools' own codes:
invalid_page_spec(apagesorordervalue is not a valid page selection),page_out_of_range,duplicate_pageandmissing_page(ordermust name every page exactly once),empty_output(the result would have no pages),pdf_required,too_many_pages,too_many_inputs,file_too_large,pdf_encryptedandpdf_corrupt.
A fill from documents that found nothing still finishes ready: get_job
shows no_values_found in its warnings and a message to relay to the
user.
402 responses (over_free_tier, over_page_cap and card_required)
include a billing_url.
Billing
Free tier: The first 5 form creations, 5 context fills, 5 standard fills, 5 verifications, 5 reads, and 5 packages each month are free when the job is 5 pages or fewer (a context fill counts the form and its documents together); a longer job is charged and does not use a free one. suggest_mapping is billed as one context fill, and so is prepare_form. Committing a proposal is free within the prepare that was already billed. See Pricing for current rates.
Retention
create_form, fill_form_from_context and prepare_form take an optional
retention argument: ephemeral or account_default. Leave it out and the
account's own default applies. It applies only when the call creates a new
form; an existing form keeps the setting it was created with. fill_form and
fill_batch always fill an existing form, so on them the argument changes
nothing. See
Ephemeral processing for the window and what a
410 means once a form is swept.
Using it from code
Add Emboss as an MCP server on a Messages API call:
{
"mcp_servers": [
{
"type": "url",
"url": "https://api.getemboss.ai/mcp",
"name": "emboss",
"authorization_token": "your-oauth-token"
}
]
}
Or from Claude Code:
claude mcp add --transport http emboss https://api.getemboss.ai/mcp
See Use Emboss in Claude for the full connect flow, including the plugin and skill.