Skip to main content
Glama
Replaced by its MCP Registry listing

This endpoint is listed in the official MCP Registry as Mondovo. If you published it, claim ownership there.

Test a function

test_function

Run a function's current code once in a temporary sandbox with request_body as the request, and return its status code, time and response. A form on the site sends its fields under "data", so to test as a page would, send { "data": { "": "" } }. as_contact_id runs it as that customer (env.caller.contactId), as if they pressed the button while signed in. The run is real: the code has the function's env vars and data access, so anything it writes or calls happens, journeys it starts included.

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": {
      "site_id": "<site_id>",
      "function": "<function>"
    },
    "name": "test_function"
  }
}

Input Schema

NameRequiredDescriptionDefault
site_idYesThe site, from list_sites
functionYesThe function's name (slug), display name or id, from list_functions
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
request_bodyNoThe JSON request body to send (default {})
as_contact_idNoRun as this contact of the site (list_contacts), e.g. to test a button for signed-in customers

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / as_contact_id
      Added value: +{
      +  "description": "Run as this contact of the site (list_contacts), e.g. to test a button for signed-in customers",
      +  "format": "uuid",
      +  "type": "string"
      +}
  2. Changed1 schema field changed
    • addedInput schema / properties / user_goal
      Added value: +{
      +  "description": "Optional: the user's goal behind this call, in one short sentence of plain words (e.g. \"add a page so customers can book tables\"). No names, emails or other personal details.",
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

The annotations only say readOnlyHint=false and openWorldHint=true; the description adds the crucial disclosure that the sandbox is not a dry run — env vars and data access are live, so writes, external calls, and started journeys actually happen. That is exactly the side-effect warning an agent needs before invoking a non-idempotent mutation.

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?

Front-loaded with the core action and return values, then layered with usage detail. The final sentence stacks several clauses and is slightly dense, but no sentence is filler given the stakes of the side-effect warning.

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?

For a 5-parameter, mutating, open-world tool with no output schema, the description covers purpose, request shape, impersonation semantics, and real side effects. Returns are described inline, so nothing essential is missing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3, but the description goes further by explaining the "data" envelope convention for form-sourced requests and by tying as_contact_id to env.caller.contactId. That adds real semantic meaning an agent could not infer from the parameter names alone.

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 verb and resource ('Run a function's current code once in a temporary sandbox') and names the return payload (status code, time, response). It is clearly distinct from deploy_function, create_function_draft, and get_function_details, which an agent could otherwise confuse with testing.

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?

Gives concrete when-to-use guidance: test the way a site page would by wrapping fields under "data", and use as_contact_id to simulate a signed-in customer pressing the button. It stops short of explicit exclusions or naming sibling alternatives (e.g. deploy vs. test), so it is strong context rather than a full routing rule.

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