Skip to main content
Glama

Check the code of a presentation

check_code

Run the code blocks of a presentation you may edit, in the order of the slides (on a slide: from the top), the way a viewer who goes through it would, and compare what each shows with its "expect" (the expected output, a prop of code blocks that only those who may edit see). Runs every block that is "runnable" or has an "expect". With "fresh" (the default) your databases of the presentation are first made again from its database scripts, so the check starts where a new viewer starts; what the blocks change stays in your databases. Per block: "status" "match", "mismatch" (with the first "difference"), "error" (it failed), "ran" (no "expect" to compare with) or "skipped" (out of time: check the rest with "slide_ids" and "fresh": false), and "got" -- what it showed, which you may put into "expect". The comparison ignores spaces around cells, the separator lines of tables, "(N rows)" and the header of a table when only its rows are expected.

Input Schema

NameRequiredDescriptionDefault
slugYesThe presentation's slug (its address: /movie/<slug>/).
freshNoFirst make your databases again from the scripts (default true).
slide_idsNoOnly the code blocks of these slides (default: all of them).
only_expectedNoOnly the blocks that have an "expect" (default false).

Output Schema

NameRequiredDescriptionDefault
totalYes
blocksYesThe code blocks in the order they ran.
summaryYesHow many blocks of each status.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

This adds substantial behavior beyond the annotations: with the default 'fresh' the databases are rebuilt from scripts, but changes made by the blocks persist, which tells the agent about real state mutation despite destructiveHint=false. It also enumerates every status outcome and the exact comparison normalizations (whitespace around cells, table separators, row counts, table headers).

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?

Purpose is front-loaded, but the body is one dense run-on sentence with nested parentheticals that is hard to parse on first read. Nearly all content is relevant, yet the phrasing is far less scannable than it could be.

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 tool with four parameters, an output schema, and mutation side effects, this covers what an agent needs: ordering, comparison rules, side effects, and status semantics. The only omission is guidance on the 'only_expected' parameter and on permission failure behavior.

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: 'fresh' is disclosed as defaulting to true and what it recreates, and 'slide_ids' is framed as the resumption mechanism after a timeout. 'only_expected' is not mentioned, leaving one gap.

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?

The definition states a concrete verb+resource: run a presentation's code blocks in slide order and compare each output against its 'expect'. This is clearly distinct from presentation-reading siblings. It never names the closest sibling (run_code), instead explaining it as if no alternative existed, so sibling differentiation is implicit rather than explicit.

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 implicitly scopes usage to presentations 'you may edit' and tells the agent how to resume after a 'skipped' block via 'slide_ids' and 'fresh': false. However, it never says when to pick this over run_code, nor what to do when blocks fail vs. mismatch beyond listing statuses.

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