Skip to main content
Glama

generate_csr

Generate a ZATCA-compliant Certificate Signing Request (CSR) with ECDSA key pair and required subject fields for obtaining a compliance certificate.

Instructions

Generate a ZATCA-compliant Certificate Signing Request (CSR).

Creates an ECDSA key pair and CSR with ZATCA-required subject fields. The CSR is used to obtain a compliance certificate from ZATCA.

Args: common_name: Common name for the certificate (e.g., device or taxpayer name) organization: Organization name organizational_unit: Organizational unit (e.g., "Invoicing", "IT") country: Country code (default: "SA") serial_number: ZATCA device serial number invoice_type: ZATCA invoice type code (e.g., "1100") location: Business location industry: Business industry category

Returns: JSON with csr_pem, private_key_pem, and next steps

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countryNoSA
industryNoIT
locationNoRiyadh
common_nameYes
invoice_typeNo1100
organizationYes
serial_numberNo1-TST|2-TST|3-ed22f1d8-e6a2-1118-9b58-d9a8195e2f28
organizational_unitYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description must carry the full behavioral burden. It discloses that an ECDSA key pair and CSR are created and returns JSON, but fails to mention important aspects like side effects (e.g., private key handling, storage, security implications), whether the operation is safe or destructive, or any required permissions. This lack of context leaves the agent uncertain about potential impacts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is reasonably concise with a clear 'Args' section and a 'Returns' line. It front-loads the main purpose. However, the argument list is a bit lengthy and could be formatted as bullet points for better readability. Still, every sentence adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (8 parameters, output schema exists), the description covers the tool's purpose and return format adequately. It mentions 'next steps' which is helpful. However, it lacks behavioral context (security, side effects) and does not explain the relationship to other tools in the ZATCA workflow. The output schema exists, so return values are partially covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description must explain each parameter. It provides a one-line purpose for each of the 8 parameters (e.g., 'common_name: Common name for the certificate'), adding meaning beyond the schema's type/default. However, it could be more precise (e.g., expected formats for serial_number or invoice_type). Overall, it compensates well for the missing schema descriptions.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool generates a ZATCA-compliant Certificate Signing Request, specifying the verb 'generate' and the resource 'CSR'. It is well-distinguished from sibling tools like generate_qr_code or generate_invoice, which handle different functions.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage in obtaining a compliance certificate from ZATCA, but does not explicitly state when to use this tool versus alternatives. No alternative tools are mentioned for CSR generation, and there is no guidance on prerequisites or when not to use it.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DoubleH10/zatca-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server