Skip to main content
Glama

Analyse a dataset with Phở

run_analysis
Idempotent

Run a real statistical analysis of the user's own data in Phở: Phở profiles the file, proposes an analysis plan for the user to approve, then runs Python/R code in a sandbox and writes a report (with the code, figures and a .docx). Use it when the user has a dataset (CSV/TSV) and a question about it, e.g. "compare HbA1c between the two arms" or "what predicts readmission". Send the data inline as csv (up to ~900 KB) or as dataset_url, a direct link to a data file on an open-data host (Zenodo, Figshare, OSF, Dryad, GitHub raw, Hugging Face). Needs the user signed in to Phở. Free accounts get a few trial analyses; paid plans run on their plan. Returns at once with a run_id: call get_analysis_run until the plan is ready, show the plan, then approve_analysis_plan.

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": {
      "question": "<question>"
    },
    "name": "run_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
csvNoThe data as CSV or TSV text, with a header row.
languageNoLanguage of the plan and report.en
questionYesWhat the user wants to learn from the data, in their words.
file_nameNoThe file's name, e.g. "trial.csv".
dataset_urlNoInstead of csv: a direct link to a data file on an open-data host.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.5/5.0
Behavior4/5

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

Beyond the annotations it discloses the asynchronous contract (returns a run_id immediately, poll get_analysis_run, show the plan, then call approve_analysis_plan), the authentication requirement, and the trial/paid quota model — behavior an agent cannot infer from readOnlyHint=false and openWorldHint=true. The only soft spot is a mild tension with idempotentHint=true: the description implies each call starts a fresh run and consumes trial quota. It also doesn't say what happens to unsent or oversized data, but the side-effect profile (sandbox execution, report written) is otherwise well covered.

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 purpose, trigger condition, input routes, prerequisites and follow-up sequence are front-loaded in that order, with no filler sentences. It is dense to the point of being a single long paragraph, so the workflow steps and the host list are harder to scan than they need to be, but nothing is redundant.

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 multi-step, open-world, mutating tool with no output schema, the description supplies the return contract (run_id), the polling loop, and the approval handoff, which is the critical information. Remaining gaps are minor — no guidance on polling cadence, no error/failure behavior for an unsupported URL host, and no mention of the language or file_name params.

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 the baseline is 3, but the description adds real meaning: it enumerates which hosts qualify as an open-data source (Zenodo, Figshare, OSF, Dryad, GitHub raw, Hugging Face), reinforces the ~900 KB inline limit, and clarifies that csv and dataset_url are alternatives rather than complements. It says nothing about the language or file_name parameters, which is acceptable given the schema documents both.

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 real statistical analysis of the user's own data in Phở") and immediately sketches the pipeline: profile, propose plan, execute Python/R in a sandbox, write a report. It names the follow-up siblings (get_analysis_run, approve_analysis_plan) so an agent can separate this kickoff tool from the polling and approval tools.

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 an explicit trigger condition ("when the user has a dataset (CSV/TSV) and a question about it") with two concrete example questions, plus the two mutually exclusive input routes (inline csv vs dataset_url). It also states the prerequisite (user signed in) and the quota context, so the agent knows when this call will fail rather than guessing.

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.