Skip to main content
Glama

PRISMA 2020 flow diagram

prisma_flow_diagram
Read-onlyIdempotent

Draw a PRISMA 2020 flow diagram for a new systematic review from the record counts, as a PNG image plus an SVG and download links. Give the counts you have; screened, sought, assessed and reports-included boxes that follow from others are filled in and marked as derived. Studies included is never derived. The tool checks that the numbers add up (records identified minus removed equals screened, and so on) and returns a warning naming each box that does not, with the value it should have. The diagram always shows the numbers exactly as given. Add otherMethods counts to draw the second column (websites, organisations, citation searching).

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": {
      "counts": "<counts>"
    },
    "name": "prisma_flow_diagram"
  }
}

Input Schema

NameRequiredDescriptionDefault
countsYes
footnotesNoPrint the template footnotes and source attribution.
other_methods_columnNoForce the other-methods column on or off. Default: drawn when otherMethods counts are given.

Output Schema

NameRequiredDescriptionDefault
svgYes
widthYes
countsYes
heightYes
svg_urlNo
warningsYes
image_urlNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed101 schema fields changed
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / counts / properties / automationIneligible / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / automationIneligible / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / automationIneligible / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / automationIneligible / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / databaseSources / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / counts / properties / databaseSources / items / properties / n / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / databaseSources / items / properties / n / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / databaseSources / items / properties / n / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / databaseSources / items / properties / n / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / duplicatesRemoved / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / duplicatesRemoved / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / duplicatesRemoved / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / duplicatesRemoved / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherMethods / properties / citationSearching / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherMethods / properties / citationSearching / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherMethods / properties / citationSearching / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherMethods / properties / citationSearching / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherMethods / properties / organisations / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherMethods / properties / organisations / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherMethods / properties / organisations / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherMethods / properties / organisations / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherMethods / properties / reportsAssessed / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsAssessed / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsAssessed / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsAssessed / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherMethods / properties / reportsExcluded / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsExcluded / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsExcluded / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsExcluded / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherMethods / properties / reportsExcludedReasons / items / $ref
      Removed value: -"#/properties/counts/properties/databaseSources/items"
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsExcludedReasons / items / properties
      Added value: +{
      +  "n": {
      +    "maximum": 100000000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "name": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsExcludedReasons / items / required
      Added value: +[
      +  "name",
      +  "n"
      +]
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsExcludedReasons / items / type
      Added value: +"object"
    • removedInput schema / properties / counts / properties / otherMethods / properties / reportsNotRetrieved / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsNotRetrieved / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsNotRetrieved / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsNotRetrieved / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherMethods / properties / reportsSought / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsSought / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsSought / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherMethods / properties / reportsSought / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherMethods / properties / sources / items / $ref
      Removed value: -"#/properties/counts/properties/databaseSources/items"
    • addedInput schema / properties / counts / properties / otherMethods / properties / sources / items / properties
      Added value: +{
      +  "n": {
      +    "maximum": 100000000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "name": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / counts / properties / otherMethods / properties / sources / items / required
      Added value: +[
      +  "name",
      +  "n"
      +]
    • addedInput schema / properties / counts / properties / otherMethods / properties / sources / items / type
      Added value: +"object"
    • removedInput schema / properties / counts / properties / otherMethods / properties / websites / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherMethods / properties / websites / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherMethods / properties / websites / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherMethods / properties / websites / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / otherRemoved / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / otherRemoved / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / otherRemoved / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / otherRemoved / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / recordsExcluded / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / recordsExcluded / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / recordsExcluded / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / recordsExcluded / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / recordsScreened / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / recordsScreened / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / recordsScreened / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / recordsScreened / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / registerSources / items / $ref
      Removed value: -"#/properties/counts/properties/databaseSources/items"
    • addedInput schema / properties / counts / properties / registerSources / items / properties
      Added value: +{
      +  "n": {
      +    "maximum": 100000000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "name": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / counts / properties / registerSources / items / required
      Added value: +[
      +  "name",
      +  "n"
      +]
    • addedInput schema / properties / counts / properties / registerSources / items / type
      Added value: +"object"
    • removedInput schema / properties / counts / properties / registers / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / registers / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / registers / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / registers / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / reportsAssessed / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / reportsAssessed / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / reportsAssessed / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / reportsAssessed / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / reportsExcluded / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / reportsExcluded / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / reportsExcluded / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / reportsExcluded / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / reportsExcludedReasons / items / $ref
      Removed value: -"#/properties/counts/properties/databaseSources/items"
    • addedInput schema / properties / counts / properties / reportsExcludedReasons / items / properties
      Added value: +{
      +  "n": {
      +    "maximum": 100000000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "name": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / counts / properties / reportsExcludedReasons / items / required
      Added value: +[
      +  "name",
      +  "n"
      +]
    • addedInput schema / properties / counts / properties / reportsExcludedReasons / items / type
      Added value: +"object"
    • removedInput schema / properties / counts / properties / reportsIncluded / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / reportsIncluded / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / reportsIncluded / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / reportsIncluded / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / reportsNotRetrieved / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / reportsNotRetrieved / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / reportsNotRetrieved / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / reportsNotRetrieved / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / reportsSought / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / reportsSought / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / reportsSought / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / reportsSought / type
      Added value: +"integer"
    • removedInput schema / properties / counts / properties / studiesIncluded / $ref
      Removed value: -"#/properties/counts/properties/databases"
    • addedInput schema / properties / counts / properties / studiesIncluded / maximum
      Added value: +100000000
    • addedInput schema / properties / counts / properties / studiesIncluded / minimum
      Added value: +0
    • addedInput schema / properties / counts / properties / studiesIncluded / type
      Added value: +"integer"
    • changedOutput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
    • addedOutput schema / properties / counts / propertyNames
      Added value: +{
      +  "type": "string"
      +}
  2. Changed13 schema fields changed
    • changedInput schema / properties / counts / properties / databaseSources / description
      Previous value: -"Per-database counts, e.g. [{\"name\":\"MEDLINE\",\"n\":812}]."New value: +"Per-database counts before deduplication, e.g. [{\"name\":\"MEDLINE\",\"n\":812}]. If databases is also given, the two are compared."
    • changedInput schema / properties / counts / properties / databases / description
      Previous value: -"Records identified from databases (total)."New value: +"Records identified from databases, all databases together, before duplicates are removed. Leave out when databaseSources is given: it is their sum."
    • addedInput schema / properties / counts / properties / duplicatesRemoved / description
      Added value: +"Duplicate records removed before screening."
    • addedInput schema / properties / counts / properties / recordsExcluded / description
      Added value: +"Records excluded at title and abstract screening (not reports excluded at full text)."
    • addedInput schema / properties / counts / properties / recordsScreened / description
      Added value: +"Records screened on title and abstract. Derived when left out: identified minus removed before screening."
    • changedInput schema / properties / counts / properties / registers / description
      Previous value: -"Records identified from registers."New value: +"Records identified from trial registers (ClinicalTrials.gov, ICTRP…), before duplicates are removed."
    • changedInput schema / properties / counts / properties / reportsAssessed / description
      Previous value: -"Reports assessed for eligibility."New value: +"Full-text reports assessed for eligibility. Derived when left out: sought minus not retrieved."
    • changedInput schema / properties / counts / properties / reportsExcluded / description
      Previous value: -"Total reports excluded, when reasons are not itemised."New value: +"Total full-text reports excluded. If reasons are also given, their sum is compared with it."
    • changedInput schema / properties / counts / properties / reportsExcludedReasons / description
      Previous value: -"Reports excluded, one entry per reason."New value: +"Full-text reports excluded, one entry per reason, e.g. [{\"name\":\"Wrong population\",\"n\":12}]."
    • changedInput schema / properties / counts / properties / reportsIncluded / description
      Previous value: -"Reports of included studies."New value: +"Reports of included studies. Derived when left out: assessed minus excluded (both columns when otherMethods is drawn)."
    • addedInput schema / properties / counts / properties / reportsNotRetrieved / description
      Added value: +"Reports that could not be retrieved."
    • changedInput schema / properties / counts / properties / reportsSought / description
      Previous value: -"Reports sought for retrieval."New value: +"Full-text reports sought for retrieval. Derived when left out: screened minus excluded."
    • changedInput schema / properties / counts / properties / studiesIncluded / description
      Previous value: -"Studies included in the review."New value: +"Studies included in the review. Never derived: one study can have several reports, so give it. It cannot exceed reportsIncluded."
  3. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the key behaviors: derived boxes are filled in and marked as derived, studiesIncluded is never derived, arithmetic is checked and failures come back as warnings naming each offending box with the corrected value, and the diagram always renders the numbers as given rather than silently correcting them. That is unusually detailed disclosure of validation and rendering semantics for a non-destructive local tool.

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?

Four sentences, front-loaded with the outcome and output formats, then derivation rules, then validation, then the optional column. Dense but every sentence carries distinct information; only the slightly packed final sentence about otherMethods could be tightened.

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?

Given a nested counts object, an output schema (so return values need no explanation) and non-destructive annotations, the description covers the hard parts: derivation dependencies, arithmetic validation, and the two-column PRISMA layout. Minor omissions are the footnotes parameter and what the download links point to, neither critical for correct invocation.

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 67% and the count fields are already well annotated, but the description adds cross-parameter meaning the schema cannot: which boxes are derived from which others (screened, sought, assessed, reports-included) and the invariant that studiesIncluded must be supplied and cannot exceed reportsIncluded. It leaves the footnotes toggle and the explicit other_methods_column override unmentioned, so it stops short of full coverage.

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?

The description leads with a specific verb and artifact: 'Draw a PRISMA 2020 flow diagram ... from the record counts, as a PNG image plus an SVG and download links.' That identifies both what is produced and in what form, and no sibling tool produces diagrams, so the agent can place it immediately.

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?

It sets the context clearly ('for a new systematic review', 'Give the counts you have') and tells the agent how to activate the optional second column by supplying otherMethods counts. There is no explicit when-not-to-use or named alternative, but no sibling plausibly overlaps, so the gap is small.

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.