Skip to main content
Glama

Work on the question and criteria

revisia_question_act
Destructive

Use this when preparing stage 1 and the eligibility criteria. action check: AI quality check of the question of a review that already exists (framework, missing parts, better wording; new reviews are checked by create). action suggest_pico: AI breakdown into concepts (saved only if there is none yet; prefer it when the breakdown is empty and AI is available). action set_pico: save the breakdown the researcher confirmed in the chat, no AI (concepts of the framework; omitted fields stay, an empty string clears one). Only with values the researcher confirmed: show them and ask first, never invent. Use it to fix or complete concepts, or when AI is not available; refused once stage 1 is approved. Then call revisia_approve_stage. action suggest_criteria: AI draft of criteria, runs as a job; read the result with revisia_question. action set_criteria: save criteria the researcher accepts (add, or edit by id) or apply a preset pack. No exclusion type: write each criterion as a condition eligible studies meet; exclusion_label is the shown exclusion reason. Language of publication is a criterion, not a search filter: pass languages (ISO 639-1) and, for a new one, nothing else to write it like the web app; editing its instructions keeps the rule. action remove_criterion: delete by criterion_id. Once the review is screened, ask the researcher why BEFORE calling either and pass it as reason (reported as a protocol amendment); both report the criteria version, what the change needs and the affected records. action rescreen: screen affected records again with the current criteria (dry_run default; then revisia_jobs). AI actions count against the account's AI limits exactly as in the web app; an unconfirmed email gets a few trial calls.

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": {
      "action": "<action>",
      "project_id": "<project_id>"
    },
    "name": "revisia_question_act"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeNorescreen: affected (default) or all AI-screened.
actionYes
presetNoset_criteria: apply one of revisia's preset criteria packs instead.
reasonNoWhy the researcher changes criteria after screening; ask before the call.
dry_runNoDefault true: only report what would run and the quota used. false launches.
conceptsNoset_pico: concept fields of the framework, only values the researcher confirmed. Omitted = unchanged; "" = cleared.
criteriaNoset_criteria: criteria to add (no id) or edit (with id).
frameworkNoset_pico: question framework; leave out to keep the saved one.
project_idYesReview id (from revisia_projects list).
partial_ackNorescreen: researcher agreed to a partial run.
criterion_idNoremove_criterion: criterion id.
idempotency_keyNoSame key within 24 h returns the first launch instead of a second job.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / criteria / items / properties / languages
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "maxLength": 40,
      +        "minLength": 2,
      +        "type": "string"
      +      },
      +      "maxItems": 20,
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Language criterion: ISO 639-1 codes (e.g. [\"en\",\"es\"]). A new one with only this field is written like the web's language card. [] or null removes the rule."
      +}
  2. Changed1 schema field changed
    • changedInput schema / properties / reason / description
      Previous value: -"Why the researcher changed criteria after screening."New value: +"Why the researcher changes criteria after screening; ask before the call."
  3. Changed7 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "check",
      -  "suggest_pico",
      -  "set_pico",
      -  "suggest_criteria",
      -  "set_criteria"
      -]New value: +[
      +  "check",
      +  "suggest_pico",
      +  "set_pico",
      +  "suggest_criteria",
      +  "set_criteria",
      +  "remove_criterion",
      +  "rescreen"
      +]
    • addedInput schema / properties / criterion_id
      Added value: +{
      +  "description": "remove_criterion: criterion id.",
      +  "pattern": "^[A-Za-z0-9][A-Za-z0-9_-]{0,99}$",
      +  "type": "string"
      +}
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "default": true,
      +  "description": "Default true: only report what would run and the quota used. false launches.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "Same key within 24 h returns the first launch instead of a second job.",
      +  "maxLength": 100,
      +  "minLength": 8,
      +  "type": "string"
      +}
    • addedInput schema / properties / partial_ack
      Added value: +{
      +  "description": "rescreen: researcher agreed to a partial run.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / reason
      Added value: +{
      +  "description": "Why the researcher changed criteria after screening.",
      +  "maxLength": 500,
      +  "minLength": 1,
      +  "type": "string"
      +}
    • addedInput schema / properties / scope
      Added value: +{
      +  "description": "rescreen: affected (default) or all AI-screened.",
      +  "enum": [
      +    "affected",
      +    "all"
      +  ],
      +  "type": "string"
      +}
  4. Changed3 schema fields changed
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "check",
      -  "suggest_pico",
      -  "suggest_criteria",
      -  "set_criteria"
      -]New value: +[
      +  "check",
      +  "suggest_pico",
      +  "set_pico",
      +  "suggest_criteria",
      +  "set_criteria"
      +]
    • addedInput schema / properties / concepts
      Added value: +{
      +  "additionalProperties": false,
      +  "description": "set_pico: concept fields of the framework, only values the researcher confirmed. Omitted = unchanged; \"\" = cleared.",
      +  "properties": {
      +    "comparator": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "concept": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "condition": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "context": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "design": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "evaluation": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "index_test": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "intervention": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "outcome": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "phenomenon": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "population": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "reference_standard": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "research_type": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    },
      +    "target_condition": {
      +      "maxLength": 2000,
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
    • addedInput schema / properties / framework
      Added value: +{
      +  "description": "set_pico: question framework; leave out to keep the saved one.",
      +  "enum": [
      +    "PICO",
      +    "PECO",
      +    "PCC",
      +    "CoCoPop",
      +    "PIRD",
      +    "PEO",
      +    "SPIDER"
      +  ],
      +  "type": "string"
      +}
  5. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already flag destructive/openWorld, and the description goes well beyond them: AI actions consume the account's AI limits as in the web app, an unconfirmed email only gets trial calls, suggest_criteria runs as a job, set_pico leaves omitted fields unchanged while an empty string clears them, set_criteria after screening is recorded as a protocol amendment, and both changes report the criteria version and affected records. The rescreen dry_run-then-launch sequencing is also spelled out.

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?

Front-loaded and largely waste-free, but it is a single dense paragraph of semicolon-chained clauses covering seven actions and edge cases, which makes it slow to parse and easy to misattribute a clause to the wrong action. Per-action line breaks or bullets would help considerably.

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 seven-action, twelve-parameter mutation tool with no output schema, the description covers the full lifecycle: AI vs manual paths, the approval gate, job polling, protocol-amendment reasons, rescreen scope and dry-run, quota consumption, and where results are read. An agent has enough to call it correctly without outside knowledge.

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 high (92%), so the schema baseline already does most work, but the description adds genuine meaning the schema lacks: exclusion_label is the displayed exclusion reason, there is no exclusion type so criteria must be phrased as conditions eligible studies meet, and a language criterion with only ISO codes is written like the web app's language card while editing its instructions keeps the rule. Minor param details (idempotency_key, partial_ack) are left to the schema.

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?

Opens with a scoping sentence ("preparing stage 1 and the eligibility criteria") and then names each of the seven actions with a concrete verb and object (AI quality check of the question, breakdown into concepts, save the confirmed breakdown, delete by criterion_id, screen affected records again). An agent can tell exactly which sub-operation it is invoking and how it differs from revisia_question (the read side) and revisia_approve_stage.

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 when-to-use and when-not for nearly every action: prefer suggest_pico when the breakdown is empty and AI is available; use set_pico when AI is not available or to fix/complete; both are refused once stage 1 is approved, at which point call revisia_approve_stage. It also names the follow-up readers (revisia_question for suggest_criteria results, revisia_jobs for suggest_criteria and rescreen) and states the pre-call obligation to ask the researcher why when the review is already screened.

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