MCP toolsets and tools

Beta

This feature is in beta. For now it is available only to some users. We will release it gradually to more accounts once testing ends. If you want to use it, ask your JAAK contact for access.

Description

The JAAK MCP server has toolsets. Each toolset has its own URL. A client connects only to the toolsets it needs.

Each tool needs a scope. The client's token or key must have that scope to use the tool.

In this guide, https://<host-mcp> is the address of the MCP server for your environment.

Toolsets

URLToolsScopes used
https://<host-mcp>/mcp/signa-sendsigna_create_submission, signa_add_signer, signa_send_for_signature, signa_send_templatesigna:send
https://<host-mcp>/mcp/signa-trackingsigna_get_submission_status, signa_list_submissions, signa_download_signed_docsigna:read
https://<host-mcp>/mcp/signa-templatessigna_list_templates, signa_get_template, signa_create_template_from_markdownsigna:templates:read, signa:templates:write
https://<host-mcp>/mcp/kyckyc_validate_curp, kyc_validate_rfckyc:validate
https://<host-mcp>/mcpAll the tools of the toolsets aboveThe scope of each tool

The path https://<host-mcp>/mcp/v1/messages also exists. It is the previous path and has the same tools as /mcp.

Scopes filter the tools

The server filters the tools by the scopes of the token:

  • tools/list shows only the tools whose scope the token has.
  • If the client calls a tool without its scope, the server rejects the call with the error missing scope <scope>.

For this reason, choose one toolset per agent. The agent then sees only what it needs.

Template tools

These three tools are in the signa-templates toolset.

signa_list_templates

Lists the templates of the company. Scope: signa:templates:read.

FieldTypeDescription
limitnumberMaximum number of items. Default 10.
qtextOptional. Searches the template name.

Each item has id, name, source_type and data_keys. source_type is empty for PDF templates. In a tagged template (markdown or editor), data_keys lists the keys to send in templateValues.

signa_get_template

Returns one full template. Scope: signa:templates:read.

FieldTypeRequiredDescription
templateIdnumberYesID of the template. Get the IDs with signa_list_templates.

The response has source_type, data_keys (each with key, label, type and required), signature_type, and the submitters, fields and documents with their roles and signature types.

signa_create_template_from_markdown

Creates a template from a Markdown text with tags. Scope: signa:templates:write.

FieldTypeRequiredDescription
nametextYesName of the template.
markdowntextYesMarkdown text with the tags {{key}}, {{key|fecha}} and {{firma:ROLE}}.
signatureTypetextNoSignature type of the template: simple, advanced, biometric, advanced_biometric, notarial or efirma_sat.
roleSignatureTypesobjectNoMap from ROLE to a signature type. Each role must appear in a {{firma:ROLE}} tag. It can use at_send. See Signature type per signer.
initialsobjectNoInitials rule: {enabled, roles, skip_pages}.

The tool stores the text. JAAK lists the keys and the roles, and generates a preview PDF. The tool calls POST /api/v1/templates/source. For the tags, see Templates with tags (mail merge).

Example call with fictitious arguments:

{
  "name": "Demo service contract",
  "markdown": "# Service contract\n\nBetween {{empresa.razon_social}} and {{cliente.nombre}}.\n\n{{firma:EL PRESTADOR}}\n\n{{firma:EL CLIENTE}}",
  "roleSignatureTypes": { "EL PRESTADOR": "efirma_sat", "EL CLIENTE": "at_send" }
}

Send a template

signa_send_template

Creates a signature request from a template and sends the invitations. Scope: signa:send. Calls POST /api/v1/submissions.

FieldTypeRequiredDescription
templateIdnumberYesID of the template.
templateValuesobjectNoOne value per data key. Example: {"empresa.razon_social": "Empresa Demo SA de CV"}. Dates use the format YYYY-MM-DD.
submitterslistYesSigners. Each one has role, name, email, phone (optional) and signature_type (optional).
sendEmailbooleanNoSends the invitation email to each signer. Default true.
  • The role of each signer must match a {{firma:ROLE}} tag of the template.
  • If the template asks for a signature type at send time (at_send), the signer must include signature_type.
  • If the value of a key is missing, the server responds with an error that names the key.

For all the send rules, see Send with template values by API.

Submission and tracking tools

ToolScopeUse
signa_create_submissionsigna:sendCreates a request without sending it.
signa_add_signersigna:sendAdds a signer to a request.
signa_send_for_signaturesigna:sendSends the request to the signers.
signa_get_submission_statussigna:readGets the status of a request.
signa_list_submissionssigna:readLists the requests.
signa_download_signed_docsigna:readDownloads the signed document.

KYC tools

ToolScopeUse
kyc_validate_curpkyc:validateValidates a CURP.
kyc_validate_rfckyc:validateValidates an RFC.

Next steps