Skip to main content
Glama
freedom-m2m-mcp-server

freedom-m2m-mcp-server

Official

Isolated AST Python Math Sandbox (60 Sats / $0.057 USDC)

freedom_python_sandbox

Execute deterministic math, financial, and statistical Python expressions inside an AST-validated sandbox to safely run calculations for AI agents.

Instructions

Isolated AST Python Math & Quantitative Sandbox (60 Sats / ~$0.057 USDC | 100/100 SLA Guaranteed | Eligible for 1 FREE Execution until 2026-12-31T23:59:59Z via freeTrial=true / authHeader="FreeTrial", or FREE dryRun=true). Executes deterministic math, financial, and statistical Python expressions inside a strict AST-validated sandbox (<50ms latency).

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": {
      "code": "<code>"
    },
    "name": "freedom_python_sandbox"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesPython math/statistical code to execute (e.g. "print(2 + 2)").
dryRunNoSet true for a FREE (0 Sats) live readiness check.
m2mPassNoOptional Prepaid Session Pass token.
xPaymentNoOptional x402 payment payload.
freeTrialNoSet true for 1 FREE execution pass.
authHeaderNoPass "FreeTrial" for 1 free trial execution, or payment proof.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv2.6.0
    • changedInput schema / properties / authHeader / description
      Previous value: -"Optional payment proof header: \"L402 <macaroon>:<preimage>\" or \"x402 base:<0xTxHash>\" or \"x402 solana:<TxSignature>\"."New value: +"Pass \"FreeTrial\" for 1 free trial execution, or payment proof."
    • changedInput schema / properties / code / description
      Previous value: -"Python math/statistical code to execute (e.g., \"print(round(sum([10.5, 20.3, 45.1]) * 1.16, 4))\")."New value: +"Python math/statistical code to execute (e.g. \"print(2 + 2)\")."
    • addedInput schema / properties / dryRun
      Added value: +{
      +  "description": "Set true for a FREE (0 Sats) live readiness check.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / freeTrial
      Added value: +{
      +  "description": "Set true for 1 FREE execution pass.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / m2mPass
      Added value: +{
      +  "description": "Optional Prepaid Session Pass token.",
      +  "type": "string"
      +}
    • addedInput schema / properties / xPayment
      Added value: +{
      +  "description": "Optional x402 payment payload.",
      +  "type": "string"
      +}
  2. First observedv2.1.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose useful behavior: AST validation, determinism, a <50ms latency expectation, and payment/trial semantics including dryRun and freeTrial. It omits what the sandbox forbids (imports, I/O, state), what errors look like, and how results are returned. Useful but incomplete for a code-execution tool.

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

Conciseness3/5

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

The two sentences are dense yet front-loaded with pricing and SLA marketing ('60 Sats / ~$0.057 USDC | 100/100 SLA Guaranteed'), and the price is stated twice. The core capability sentence is well placed, but a noticeable share of the text is promotional filler rather than operational guidance.

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

Completeness3/5

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

For a code-execution tool with six parameters, no annotations, and no output schema, the description should describe what execution returns or how output is captured. It explains cost and trial mechanics well but leaves the result contract and sandbox limits unstated, so it is only partially complete.

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%, so the schema already documents all six parameters, making the baseline 3 appropriate. The description restates freeTrial and authHeader="FreeTrial" plus dryRun pricing, but this repeats schema content rather than adding semantics such as how m2mPass and xPayment interact or which payment path takes precedence.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource: it 'Executes deterministic math, financial, and statistical Python expressions inside a strict AST-validated sandbox,' with a latency figure. That is far more informative than the title alone and clearly separates it from generic siblings like freedom_llm_inference. It stops short of naming any sibling or stating exclusions, so it is clear but not differentiated.

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

Usage Guidelines3/5

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

Scope is implied by the qualifiers 'deterministic math, financial, and statistical', which tells an agent this is not for arbitrary Python work. There is no explicit when-to-use/when-not guidance and no alternative tool is named, even where one might apply. The remaining text is payment/trial mechanics rather than usage routing.

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