Skip to main content
Glama

fetch_problem_content_boj

Get Baekjoon problem details: title, description, I/O specs, examples, constraints. Use to review requirements before solving or during code analysis. Hints not included.

Instructions

백준(BOJ) 문제 본문 스크래핑 (힌트 제외).

BOJ 페이지에서 문제 제목, 설명, 입출력 형식, 예제, 제한사항을 가져옵니다. 힌트는 포함되지 않습니다 - generate_hint_boj 도구를 사용하세요.

응답 구조: problemId, title, description, inputFormat, outputFormat, examples, limits, metadata

사용 시나리오:

  • 문제 풀이 전 문제 본문 확인

  • 문제 복습 시 문제 내용 참조

  • 코드 분석 시 문제 요구사항 비교

제한사항:

⚠️ 플랫폼 판별: 문제 번호만 입력된 경우 대화 맥락에서 플랫폼을 파악하거나, 맥락이 없으면 반드시 BOJ/프로그래머스 중 어느 플랫폼인지 사용자에게 확인 후 호출하세요.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
problem_idYes백준 문제 번호
Behavior4/5

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

With no annotations provided, the description carries the full burden. It discloses important behaviors: scraping target URL, 10-second timeout, up to 2 retries, 30-day cache, and the fact that hints are excluded. It also reveals the response structure. While it doesn't explicitly state read-only semantics or auth requirements, the disclosed operational details are substantial and go well beyond minimal expectations.

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?

The description is well-structured with clear sections (purpose, response structure, usage scenarios, limitations, platform warning). While it is relatively lengthy, every section adds practical information. It is not redundant or bloated, though the phrase '힌트 제외' appears both in the opening and in the hint warning, which is a minor duplication.

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 no output schema and no annotations, the description compensates well by listing the response fields and constraints. It covers usage context, technical limits, and platform ambiguity. It does not detail possible failure modes or error handling, but for a scraping tool of moderate complexity, the provided information is sufficient for an agent to invoke it 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?

The input schema already documents problem_id with type and description, giving 100% coverage. The description adds valuable context beyond the schema: the exact URL pattern (https://www.acmicpc.net/problem/{problem_id}) and the platform-disambiguation logic, which helps clarify how the parameter value should be interpreted and used.

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 clearly states a specific verb and resource: it scrapes the BOJ problem statement (title, description, I/O format, examples, limits) and explicitly excludes hints. It distinguishes itself from the hint-generation sibling by directing users to generate_hint_boj when hints are needed.

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?

The '사용 시나리오' section explicitly lists when to use the tool (before solving, during review, for code analysis). It also provides a critical platform-disambiguation warning, instructing the agent to confirm whether the platform is BOJ or Programmers when only a problem number is given. This is clear, actionable guidance.

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/itsme-shawn/algoKit-mcp'

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