Safe MCP pipeline: Read shapefile, build/load W, convert numeric, check NaNs, run OLS. Parameters: - data_path: path to shapefile or GeoPackage - y_field: dependent variable column name - x_fields: list of independent variable column names - weights_path: optional path to existing weights file (....
AI agents invoke ols_with_spatial_diagnostics_safe to trigger actions in GIS MCP Server. What it does depends on the arguments the agent supplies, and its effects often reach beyond the immediate call — builds kicked off, notifications sent, workflows started.
This tool executes statistical computations (OLS regression analysis) triggered by user parameters. Although it is read-only with respect to the input shapefile (does not modify the original), the core action is executing an analysis operation with side effects (generating outputs, potentially consuming compute resources).
From the tool's definition Tool performs 'run OLS' (Ordinary Least Squares regression) which executes statistical analysis operations on user-supplied data and parameters.
Documented attack patterns abuse exactly the kind of access ols_with_spatial_diagnostics_safe gives an agent:
PolicyLayer is an MCP gateway — it sits between your AI agents and GIS MCP Server, and nothing reaches the server without passing your rules. This is the rule we recommend for ols_with_spatial_diagnostics_safe:
{
"version": "1",
"default": "deny",
"tools": {
"ols_with_spatial_diagnostics_safe": {
"limits": [
{
"counter": "ols_with_spatial_diagnostics_safe_rate",
"window": "minute",
"max": 10,
"scope": "grant"
}
]
}
}
} ols_with_spatial_diagnostics_safe stays usable, but rate-capped — a runaway agent can't fire it dozens of times a minute. Everything else on the server is denied unless you say otherwise.
Free to start. No card required.
Safe MCP pipeline: Read shapefile, build/load W, convert numeric, check NaNs, run OLS. Parameters: - data_path: path to shapefile or GeoPackage - y_field: dependent variable column name - x_fields: list of independent variable column names - weights_path: optional path to existing weights file (.gal or .gwt) - weights_method: 'queen', 'rook', 'distance_band', or 'knn' (used if weights_path not provided) - id_field: optional attribute name to use as observation IDs - threshold: required if method='distance_band' - k: required if method='knn' - binary: True for binary weights (DistanceBand only). It is categorised as a Execute tool in the GIS MCP Server MCP Server, which means it can trigger actions or run processes. Use rate limits and argument validation.
Register the GIS MCP Server MCP server in PolicyLayer and add a rule for ols_with_spatial_diagnostics_safe: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches GIS MCP Server. Nothing to install.
ols_with_spatial_diagnostics_safe is a Execute tool with high risk. Execute tools should be rate-limited and have argument validation enabled.
Yes. Add a rate_limit block to the ols_with_spatial_diagnostics_safe rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for ols_with_spatial_diagnostics_safe. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
ols_with_spatial_diagnostics_safe is provided by the GIS MCP Server MCP server (mahdin75/gis-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
Start from GIS MCP Server, add the rest of your stack, and see everything your agents can call. Then put policy on all of it.
Free to start. No card required.
98 GIS MCP Server tools catalogued and risk-classified — across an index of 43,000+ MCP servers.