Skip to main content
Glama

Financial Fraud & Anomaly Detection

Financial Anomaly Detection — Get Engine Script (large exports)

financial_anomaly_get_engine
Read-only

For exports above the financial_anomaly caps (over 20,000 transactions, 100,000 numbers or 400 statement rows), or files already in your code sandbox. Returns a complete numpy-only Python script with the same engine as financial_anomaly; it reads the CSV / TSV / JSON files named in the call, prints the decision cards, and writes financial_anomaly_result.json and watch_snapshot.json. No data reaches this server on this path. Flags are for review only.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "financial_anomaly_get_engine"
  }
}

Input Schema

NameRequiredDescriptionDefault
paramsNoOther inputs exactly as financial_anomaly takes them (job, approval_limits, item, ...).
numbers_pathNonumbers file in your sandbox (CSV / TSV / JSON).
invoices_pathNoinvoices file in your sandbox (CSV / TSV / JSON).
financials_pathNofinancials file in your sandbox (CSV / TSV / JSON).
transactions_pathNotransactions file in your sandbox (CSV / TSV / JSON).
watch_snapshot_pathNowatch_snapshot file in your sandbox (CSV / TSV / JSON).

Output Schema

NameRequiredDescriptionDefault
notesNo
pathsNo
scriptYes
languageNo
requiresNo
instructionsYes
writes_filesNo
engine_versionYes
scipy_requiredNo
data_requirementsNo
network_access_requiredNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint/openWorldHint/destructiveHint=false, but the description adds genuinely new behavior: no data reaches the server on this path, the generated script writes financial_anomaly_result.json and watch_snapshot.json, and flags are advisory only. It also discloses the runtime dependency constraint (numpy-only) and the file formats it will read.

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?

Three sentences with the routing condition front-loaded ahead of the return-value explanation, then the side effects and the advisory caveat. No filler or restated title text; every clause carries information an agent needs.

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 nested-params tool with an output schema and annotations present, the description covers purpose, data-handling, dependencies, and emitted artifacts. The one implicit step — that the caller must actually execute the returned script in its sandbox — is only inferable from phrasing rather than stated outright.

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 description coverage is 100%, so every path parameter and the nested params object are already documented in the schema. The description reinforces that files are CSV/TSV/JSON and that params mirror financial_anomaly, but adds no format or validation detail beyond structured fields, making the baseline 3 appropriate.

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 output ("Returns a complete numpy-only Python script with the same engine as financial_anomaly") plus the resource it targets. It also distinguishes itself from the sibling by naming the exact caps that trigger this path, so an agent can route correctly without opening either schema.

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

Usage Guidelines5/5

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

Gives explicit selection criteria: use this when exports exceed the financial_anomaly limits (over 20,000 transactions, 100,000 numbers, 400 statement rows) or when files are already in the code sandbox. The counterpart alternative (financial_anomaly) is named and the switching condition is concrete.

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.