Skip to main content
Glama

Autonomous 0-DRC PCB Routing Foundry & Hardware MCP Server

Apply Promo, Open-Hardware Grant, or VIP Beta Pass to Job

calligraphy_apply_promo
Idempotent

Apply a promo or grant code ('OPENHW' $0 open-hardware grant, 'PROTOTYPE1' $1 pass, 'FOUNDER100' -$100 credit, or 'XBUILDER' $0 VIP pass) to an unpaid compiled job_id. Call after calligraphy_compile_board when redeeming a code. Requires job_id and promo_code; returns JSON unlocked status and updated final_price_usd. Example: job_id='job_01', promo_code='OPENHW'.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "job_id": "job_01",
      "promo_code": "OPENHW"
    },
    "name": "calligraphy_apply_promo"
  }
}

Input Schema

NameRequiredDescriptionDefault
job_idYesTarget compilation job identifier string returned by calligraphy_compile_board.
promo_codeYesCase-insensitive promo or grant code (OPENHW, PROTOTYPE1, FOUNDER100, XBUILDER).
customer_emailNoEngineering email address associated with the job or invite.builder@customer.io
showcase_opt_inNoAllow anonymized raster showcase preview for community gallery.
social_or_repo_urlNoPublic HTTPS GitHub or social URL verifying OPENHW project status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed11 schema fields changed
    • changedInput schema / examples
      Previous value: -[
      -  {
      -    "customer_email": "builder@hardware.io",
      -    "job_id": "job_01",
      -    "promo_code": "OPENHW",
      -    "showcase_opt_in": true,
      -    "social_or_repo_url": "https://github.com/org/open-pcb"
      -  }
      -]New value: +[
      +  {
      +    "job_id": "job_01",
      +    "promo_code": "OPENHW"
      +  }
      +]
    • changedInput schema / properties / customer_email / description
      Previous value: -"Valid corporate or engineering email address associated with the job or VIP invite. Example: 'builder@hardware.io'."New value: +"Engineering email address associated with the job or invite."
    • changedInput schema / properties / customer_email / examples
      Previous value: -[
      -  "agent@customer.io",
      -  "hw@company.io"
      -]New value: +[
      +  "hw@company.io"
      +]
    • changedInput schema / properties / job_id / description
      Previous value: -"Target compilation job identifier returned by calligraphy_compile_board. Example: 'job_a1b2c3d4'."New value: +"Target compilation job identifier string returned by calligraphy_compile_board."
    • changedInput schema / properties / job_id / examples
      Previous value: -[
      -  "job_01",
      -  "job_a1b2c3d4"
      -]New value: +[
      +  "job_01"
      +]
    • changedInput schema / properties / promo_code / description
      Previous value: -"Case-insensitive promo or grant code ('OPENHW', 'PROTOTYPE1', 'FOUNDER100', 'UPGRADE150', or 'XBUILDER')."New value: +"Case-insensitive promo or grant code (OPENHW, PROTOTYPE1, FOUNDER100, XBUILDER)."
    • changedInput schema / properties / promo_code / examples
      Previous value: -[
      -  "OPENHW",
      -  "PROTOTYPE1",
      -  "FOUNDER100"
      -]New value: +[
      +  "OPENHW"
      +]
    • changedInput schema / properties / showcase_opt_in / description
      Previous value: -"Grant permission to feature OPSEC-scrubbed raster renders in the Calligraphy community showcase (required for 'OPENHW')."New value: +"Allow anonymized raster showcase preview for community gallery."
    • changedInput schema / properties / showcase_opt_in / examples
      Previous value: -[
      -  true,
      -  false
      -]New value: +[
      +  false
      +]
    • changedInput schema / properties / social_or_repo_url / description
      Previous value: -"Public HTTPS GitHub repository or social post URL verifying open-source project status for 'OPENHW' grants. Example: 'https://github.com/org/open-pcb'."New value: +"Public HTTPS GitHub or social URL verifying OPENHW project status."
    • changedInput schema / properties / social_or_repo_url / examples
      Previous value: -[
      -  "https://github.com/org/open-pcb"
      -]New value: +[
      +  "https://github.com/org/pcb"
      +]
  2. Changed5 schema fields changed
    • addedInput schema / properties / customer_email / examples
      Added value: +[
      +  "agent@customer.io",
      +  "hw@company.io"
      +]
    • addedInput schema / properties / job_id / examples
      Added value: +[
      +  "job_01",
      +  "job_a1b2c3d4"
      +]
    • addedInput schema / properties / promo_code / examples
      Added value: +[
      +  "OPENHW",
      +  "PROTOTYPE1",
      +  "FOUNDER100"
      +]
    • addedInput schema / properties / showcase_opt_in / examples
      Added value: +[
      +  true,
      +  false
      +]
    • addedInput schema / properties / social_or_repo_url / examples
      Added value: +[
      +  "https://github.com/org/open-pcb"
      +]
  3. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=true, so safety is covered. The description adds real context beyond that: the effect of each code on final_price_usd, the return payload ('JSON unlocked status and updated final_price_usd'), and the unpaid-job precondition. It omits error behavior for invalid/expired codes and permission requirements.

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

Conciseness5/5

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

A single front-loaded paragraph: action, code list with prices, prerequisite/ordering, parameters, return value, and one concrete example. No filler and nothing buried.

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?

For a 5-parameter mutation tool with no output schema, it covers the call sequence, required inputs, return shape, and a worked example. Gaps are moderate: failure modes for invalid codes and the role of the external URL verification implied by openWorldHint=true are not explained.

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 coverage is already 100%, so baseline is 3, but the description adds value the schema does not: the pricing semantics behind each promo code and the fact that the code is applied against an unpaid job. It says nothing about the optional customer_email, showcase_opt_in, or social_or_repo_url parameters, leaving those to the schema.

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?

States a specific verb and resource (apply a promo/grant code to a job_id) and enumerates the exact codes with their monetary effect ($0 grant, $1 pass, -$100 credit, $0 VIP). It is clearly distinguishable from calligraphy_compile_board and calligraphy_get_job_status, so an agent can pick it without inspecting the schema.

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

Usage Guidelines4/5

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

'Call after calligraphy_compile_board when redeeming a code' gives an explicit ordering/prerequisite, and 'unpaid compiled job_id' implies the job-state precondition. It does not say what to do if the job is already paid or the code is invalid, nor does it name alternatives, so it stops short of a 5.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.