Skip to main content
Glama

rag-embedding-poisoning-escrow-auditor

audit_smart_contract_escrow

Idempotent

[Private] Compile Solidity in isolated WebAssembly (solc 0.8.38) and scan for selfdestruct, delegatecall, tx.origin phishing & ABI compliance (99.6% token savings). Call with {} for preview. Example: {"contractName":"VaultToken"}.

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": "audit_smart_contract_escrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
contractNameNoContract name.
requiredFunctionsNoRequired ABI functions.
soliditySourceCodeNoSolidity source code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / contractName / description
      Previous value: -"Target contract name inside the Solidity source."New value: +"Contract name."
    • changedInput schema / properties / requiredFunctions / description
      Previous value: -"Function names that must exist in the compiled ABI."New value: +"Required ABI functions."
    • changedInput schema / properties / soliditySourceCode / description
      Previous value: -"Complete Solidity smart contract source code to compile and scan."New value: +"Solidity source code."
  2. Changed1 schema field changed
    • changedInput schema / required
      Previous value: -[
      -  "soliditySourceCode"
      -]New value: +[]
  3. Changed4 schema fields changed
    • addedInput schema / properties / contractName / description
      Added value: +"Target contract name inside the Solidity source."
    • addedInput schema / properties / contractName / examples
      Added value: +[
      +  "VaultToken"
      +]
    • addedInput schema / properties / requiredFunctions / description
      Added value: +"Function names that must exist in the compiled ABI."
    • addedInput schema / properties / soliditySourceCode / description
      Added value: +"Complete Solidity smart contract source code to compile and scan."
  4. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations (which only declare idempotent, non-destructive, closed-world), the description adds real behavioral context: execution happens in isolated WebAssembly with a pinned solc version, the tool is marked [Private], and it advertises token savings. It does not say what happens to submitted source code or how findings are returned, but the sandbox and preview semantics are meaningful additions.

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?

The capability statement is front-loaded in the first sentence, with the preview hint and example following. The parenthetical "99.6% token savings" is promotional filler rather than operational information, but the rest is dense and waste-free.

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?

With three optional parameters, no output schema, and no annotations describing safety semantics, the definition should say more about what an audit returns (findings format, severity, ABI compliance result) and what a bare {} preview yields. The compile-and-scan pipeline is described, but the result side is entirely unspecified.

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 baseline is 3 and the schema already documents contractName, requiredFunctions, and soliditySourceCode. The description only reinforces optionality via the {} preview example and repeats contractName in its example, adding little semantic detail about how the parameters interact.

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 gives specific verbs and resources: compile Solidity in isolated WASM (solc 0.8.38) and scan for selfdestruct, delegatecall, tx.origin phishing, and ABI compliance. That is far more specific than its audit_*_escrow siblings, though it never explicitly contrasts itself with them, leaving differentiation to be inferred from the domain nouns.

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?

"Call with {} for preview" is a concrete usage hint for a zero-required-parameter tool, and the example shows a minimal real invocation. However, there is no statement of when to prefer this over the other audit_* tools or when a full audit (with source code) is warranted versus a preview.

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.