Skip to content

Tools Reference

Saeed Yari edited this page Nov 28, 2026 · 2 revisions

Tools Reference

All 11 tools are read-only. You don't need to call them by name: describe what you want and the assistant picks the tool. The example prompts below show the kind of request that triggers each one.

Lookup tools return text from your local copy of the standard. Scanner tools return findings, each with a severity, a pci_requirement_id, an issue_description and a remediation_step. See Scanner Rules for every check.

Looking up the standard

get_requirement_details

  • Parameters: requirement_id, a control ("6.4.3"), a section ("6.4") or a whole requirement ("6"). Prefixes like "Req." are ignored.
  • Returns: the full record for a control (requirement, customized approach objective, applicability notes, testing procedures, guidance, metadata), or a summary list of the controls under a section or requirement.
  • Example prompt: "What exactly does requirement 8.3.6 say?"

search_pci_controls

  • Parameters: query; optional requirement_number (1-12), component (e.g. "Payment Page", "Database"), frequency, effective_status (immediate or post_march_2025), limit (default 10, max 50).
  • Returns: ranked summaries, plus search_mode (hybrid when embeddings are built, otherwise lexical).
  • Example prompt: "How do I protect cardholder data from tampered JavaScript on our checkout page?" (top results: 6.4.3, 11.6.1)

get_related_controls

  • Parameters: requirement_id.
  • Returns: the control, the controls its text refers to, and the controls that refer to it.
  • Example prompt: "Which requirements are connected to 11.6.1?"

Audit preparation

get_testing_and_evidence_guide

  • Parameters: requirement_id.
  • Returns: the testing procedures grouped by action (Examine, Interview, Observe, Test), the evidence types an assessor will look for, and how often the control applies.
  • Example prompt: "What evidence will a QSA expect for 11.3.1?"

list_periodic_tasks

  • Parameters: frequency: Continuous, Upon change, Quarterly, Semi-annually or Annually (spelling variants such as "semi-annual" work).
  • Returns: the controls with that schedule.
  • Example prompt: "Which compliance tasks must we run every quarter?" (3.2.1, 11.2.1, 11.3.1, 11.3.2)

get_post_march_2025_requirements

  • Parameters: optional requirement_number.
  • Returns: the 46 controls in Requirements 1-12 that were best practice until 31 March 2025 and are mandatory now.
  • Example prompt: "What became mandatory in PCI DSS in 2025 for Requirement 8?"

generate_saq_checklist

  • Parameters: saq_type (SAQ-A, SAQ-A-EP or SAQ-D; "saq a-ep" works too); optional requirement_number.
  • Returns: a Markdown checklist with each control's frequency and effective date.
  • Example prompt: "Generate an SAQ-A checklist for Requirement 6."
  • Note: the SAQ mapping is approximate. SAQ-D lists every control, including the 16 that apply only to service providers, which a merchant's SAQ D does not contain. Confirm it against the official SAQ and with your acquirer or QSA.

Static checks

scan_code_snippet_for_pci

  • Parameters: code_snippet (up to 500,000 characters); language (default generic; e.g. python, java, javascript, go, php, csharp, ruby; tailors the SQL advice).
  • Checks: card numbers, CVV/PIN/track data handling, card numbers written to logs, weak cryptography, hardcoded secrets and keys, SQL built from strings.
  • Example prompt: "Review this payment handler for PCI issues:" followed by the code.

audit_infrastructure_config

  • Parameters: config_content; config_type: dockerfile, docker-compose, kubernetes, nginx or terraform (AWS resources only; Azure and Google Cloud files get almost no findings).
  • Checks: root or privileged containers, host networking, exposed database and admin ports, weak TLS and ciphers, missing HSTS and security headers, public or unencrypted storage, open security groups, disabled audit logging, hardcoded secrets.
  • Example prompt: "Is this nginx config OK for our checkout server?" followed by the config.

audit_payment_page_html

  • Parameters: html_or_headers: page HTML, raw HTTP response headers, or both.
  • Returns: Subresource Integrity and Content-Security-Policy findings for 6.4.3 and 11.6.1, an inventory of the page's scripts, and the effective script-src.
  • Example prompt: "Check the scripts and CSP on this payment page:" followed by the HTML or headers.

audit_directory

  • Parameters: directory_path; max_files (default 100, max 1,000).
  • Returns: a gap analysis for a whole project: findings grouped by severity and requirement, up to 10 occurrences per group, with relative file paths and line numbers, plus counts of scanned and skipped files.
  • Example prompt: "Check ~/code/my-shop for PCI DSS gaps and summarize the top risks."
  • Limits: refuses filesystem roots, system folders and your home folder itself; never follows symlinks; skips .git, node_modules, .venv, build output, data/raw, binaries and files over 500 KB.

Resources

URI Content
pci://requirements/overview The 12 principal requirements with section lists, control counts and post-March-2025 counts
pci://requirement/{id} The full JSON record for one control, e.g. pci://requirement/6.4.3

Prompts

Prompt Arguments What it sets up
pci_code_review_prompt code_or_diff, language Scan the code, confirm each finding against the requirement, review what the scanner cannot see, report a severity-ordered table
pci_architecture_audit_prompt architecture_description Map the cardholder data flow and CDE, check segmentation (Req 1), stored data (Req 3) and transmission (Req 4), output a gap table