Skip to main content
Glama

Screening log

screening_log
Read-onlyIdempotent

Turn the screening decisions of a systematic review into its PRISMA 2020 counts, flow diagram and screening log. Give one row per record: its title/abstract decision (include or exclude), its full-text decision for records that passed (include, exclude or not_retrieved), and the reason for each exclusion. Every box from "records screened" down is counted from the rows, so the diagram always matches the decisions; full-text exclusions are grouped by reason. Returns the diagram (PNG, SVG, links), the counts, a CSV of every decision for the review appendix, and the problems a reviewer would catch: full-text exclusions without a reason, records still waiting for a full-text decision, and duplicate ids. Add the identification counts (records from databases, duplicates removed) to complete the top of the diagram. At most 5000 records per call.

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": {
      "records": "<records>"
    },
    "name": "screening_log"
  }
}

Input Schema

NameRequiredDescriptionDefault
recordsYes
footnotesNoPrint the template footnotes and source attribution.
identificationNoCounts before screening, for the top of the diagram.

Output Schema

NameRequiredDescriptionDefault
svgYes
widthYes
countsYes
heightYes
svg_urlNo
warningsYes
image_urlNo
screeningYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed41 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 / identification / properties / automationIneligible / $ref
      Removed value: -"#/properties/identification/properties/databases"
    • addedInput schema / properties / identification / properties / automationIneligible / maximum
      Added value: +100000000
    • addedInput schema / properties / identification / properties / automationIneligible / minimum
      Added value: +0
    • addedInput schema / properties / identification / properties / automationIneligible / type
      Added value: +"integer"
    • removedInput schema / properties / identification / properties / databaseSources / items / additionalProperties
      Removed value: -false
    • removedInput schema / properties / identification / properties / databaseSources / items / properties / n / $ref
      Removed value: -"#/properties/identification/properties/databases"
    • addedInput schema / properties / identification / properties / databaseSources / items / properties / n / maximum
      Added value: +100000000
    • addedInput schema / properties / identification / properties / databaseSources / items / properties / n / minimum
      Added value: +0
    • addedInput schema / properties / identification / properties / databaseSources / items / properties / n / type
      Added value: +"integer"
    • removedInput schema / properties / identification / properties / duplicatesRemoved / $ref
      Removed value: -"#/properties/identification/properties/databases"
    • addedInput schema / properties / identification / properties / duplicatesRemoved / maximum
      Added value: +100000000
    • addedInput schema / properties / identification / properties / duplicatesRemoved / minimum
      Added value: +0
    • addedInput schema / properties / identification / properties / duplicatesRemoved / type
      Added value: +"integer"
    • removedInput schema / properties / identification / properties / otherRemoved / $ref
      Removed value: -"#/properties/identification/properties/databases"
    • addedInput schema / properties / identification / properties / otherRemoved / maximum
      Added value: +100000000
    • addedInput schema / properties / identification / properties / otherRemoved / minimum
      Added value: +0
    • addedInput schema / properties / identification / properties / otherRemoved / type
      Added value: +"integer"
    • removedInput schema / properties / identification / properties / registerSources / items / $ref
      Removed value: -"#/properties/identification/properties/databaseSources/items"
    • addedInput schema / properties / identification / properties / registerSources / items / properties
      Added value: +{
      +  "n": {
      +    "maximum": 100000000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "name": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedInput schema / properties / identification / properties / registerSources / items / required
      Added value: +[
      +  "name",
      +  "n"
      +]
    • addedInput schema / properties / identification / properties / registerSources / items / type
      Added value: +"object"
    • removedInput schema / properties / identification / properties / registers / $ref
      Removed value: -"#/properties/identification/properties/databases"
    • addedInput schema / properties / identification / properties / registers / maximum
      Added value: +100000000
    • addedInput schema / properties / identification / properties / registers / minimum
      Added value: +0
    • addedInput schema / properties / identification / properties / registers / type
      Added value: +"integer"
    • removedInput schema / properties / records / items / additionalProperties
      Removed value: -false
    • 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"
      +}
    • addedOutput schema / properties / screening / properties / excluded_at_screening / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / screening / properties / excluded_at_screening / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / screening / properties / pending_full_text / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / screening / properties / pending_full_text / minimum
      Added value: +-9007199254740991
    • addedOutput schema / properties / screening / properties / records / maximum
      Added value: +9007199254740991
    • addedOutput schema / properties / screening / properties / records / minimum
      Added value: +-9007199254740991
    • removedOutput schema / properties / screening / properties / screening_reasons / items / $ref
      Removed value: -"#/properties/screening/properties/full_text_reasons/items"
    • addedOutput schema / properties / screening / properties / screening_reasons / items / additionalProperties
      Added value: +false
    • addedOutput schema / properties / screening / properties / screening_reasons / items / properties
      Added value: +{
      +  "n": {
      +    "maximum": 100000000,
      +    "minimum": 0,
      +    "type": "integer"
      +  },
      +  "name": {
      +    "maxLength": 160,
      +    "minLength": 1,
      +    "type": "string"
      +  }
      +}
    • addedOutput schema / properties / screening / properties / screening_reasons / items / required
      Added value: +[
      +  "name",
      +  "n"
      +]
    • addedOutput schema / properties / screening / properties / screening_reasons / items / type
      Added value: +"object"
  2. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered; the description goes further by promising an internal consistency guarantee ('the diagram always matches the decisions'), grouping of full-text exclusions by reason, and surfacing of data problems (missing reasons, pending full-text decisions, duplicate ids). The 5000-record cap is also disclosed. It stops short of describing failure behavior when rows are malformed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loads what the tool produces, then the input contract, then the counting guarantee, then the return payload and the size cap. The dense em-dash and semicolon constructions carry real information about schema semantics, so no sentence is padding.

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 nested three-parameter tool with an output schema, it covers the input contract, the counting model, the return artifacts and the record cap. The remaining gap is relational: with a same-domain sibling (prisma_flow_diagram) available, the definition never places itself relative to it.

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 description adds genuine meaning beyond it: full_text applies only to records that passed title/abstract screening and may be omitted while pending, while the exclusion reason pairs with an exclude decision. It also frames the identification object as supplying the top of the diagram, clarifying intent for otherwise opaque fields like automationIneligible and otherRemoved.

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?

States a concrete verb and output: turns screening decisions into PRISMA 2020 counts, a flow diagram, and a screening log, and enumerates the row shape the caller must supply. A sibling named prisma_flow_diagram exists and the description never says how this differs from it, so the agent is left to infer the boundary between the two.

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?

It implies usage ('Give one row per record', 'Add the identification counts to complete the top of the diagram') and states a hard limit of 5000 records per call, which is useful operational guidance. However, it never says explicitly when to choose this over prisma_flow_diagram or what to do if the review has no full-text stage, so the when-to-use signal is only implicit.

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.