Skip to main content
Glama

security_php_ini_check

Read-only

php.ini security audit — Offline security audit of a php.ini (or .user.ini / PHP-FPM php_admin_value lines): allow_url_include, display_errors, disable_functions, open_basedir, session cookie flags and strict mode, trans_sid, Xdebug, phar.readonly, auto_prepend_file persistence, memory/upload limits, cgi.fix_pathinfo and more. Unset directives are judged by PHP 8 defaults. Returns findings with fixes, score, grade, verdict (PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK) and a hardened example. Params: text= (required), env=production|development. Price: $0.005 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "text": "<text>"
    },
    "name": "security_php_ini_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesexpose_php = On display_errors = On allow_url_include = On session.use_strict_mode = 0

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/openWorld/destructive=false, so the safety profile is covered; the description goes further by disclosing the judging model ('Unset directives are judged by PHP 8 defaults'), the return payload (findings with fixes, score, grade, verdict, hardened example) and a payment requirement ($0.005 USDC via x402). The verdict enum (PASS/REVIEW/FIX BEFORE DEPLOY/BLOCK) is real behavioral context an agent cannot get from annotations or the schema.

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?

Purpose is front-loaded in the first clause, followed by coverage, then output contract, then params and price — a sensible ordering. The long directive enumeration and 'and more' are slightly padded, but each block carries information.

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

Completeness5/5

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

With no output schema, the description takes on the burden of describing returns and does so (findings + fixes, score, grade, verdict, hardened example), plus the off-line nature and the payment model. The only defect is the phantom 'env' parameter, which is a schema mismatch rather than missing context.

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

Parameters3/5

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

Schema coverage is 100% and the example value shows the expected ini-text format, so the baseline would already be 3. However, the description advertises 'env=production|development', which does not exist in the input schema — this adds nominal meaning but risks an agent passing an invalid parameter, so it does not earn credit above baseline.

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 concrete verb+resource ('Offline security audit of a php.ini') and enumerates the input variants it accepts (.user.ini, PHP-FPM php_admin_value lines) plus the directive classes it checks. The 'php.ini' scoping cleanly separates it from the sibling security_apache_check / security_nginx_check / security_systemd_check family without ambiguity.

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?

The 'Offline' qualifier and the named config-file formats give clear context for when this applies, which is more than most siblings offer. It stops short of explicit routing (e.g. 'use util_ini_json for generic INI parsing' or 'use security_*_check for other configs'), so no exclusions are stated.

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.

Resources