Skip to main content
Glama

get_answer_file

Fetch student answer attachments (images, PDFs, files) from the platform. Supports base64 return or direct file saving for efficient grading.

Instructions

获取学生答题附件(图片/PDF/文件等均可)。

两种模式:
  - 不传 save_path:返回 base64 + mimetype(适合小附件解析)。
  - 传 save_path:落盘后返回 file_path(适合图片批阅,agent 直接 Read 查看)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
quote_idYes附件文件id(来自 query_preview_student_paper 的 questions[].attachments[].quote_id,支持图片/PDF/视频)
save_pathNo附件保存路径(可选)。传文件路径或已存在目录时直接落盘,响应里只返回 file_path。图片/PDF 批阅推荐用这个配合 Read 工具看图,避免 base64 撑爆上下文。
Behavior4/5

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

No annotations provided, so description carries full burden. It explains dual behavior (return base64 or file path), and recommends use cases. Does not cover authorization or rate limits, but is generally transparent.

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?

Extremely concise, with clear bullet points. Every sentence adds necessary information. Front-loaded with main purpose.

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?

Given only 2 parameters, no output schema, and no annotations, the description is complete. It explains inputs, two modes, and use cases sufficiently for an AI agent to use correctly.

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% already describing both parameters. Description adds value by clarifying quote_id's source and save_path's optional nature and recommended usage for image/PDF, going beyond 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?

Description clearly states it retrieves student answer attachments (images, PDFs, files). It specifies two modes based on the save_path parameter, effectively distinguishing this from other tools.

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?

Provides clear when-to-use guidance for both modes (base64 for small attachments, file path for image/PDF marking with Read tool). Lacks explicit when-not-to-use or alternative tool references, but context is strong.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sav1ouR520/xiaoya-teacher-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server