Skip to main content
Glama
tomek7667

mcp-ctftime

by tomek7667

ctftime_votes

Retrieve event votes for a specified year from CTFtime. Input the year to obtain the vote records.

Instructions

Get event votes for a year.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
yearYesYear (e.g., 2025).

Implementation Reference

  • src/index.ts:211-226 (registration)
    Registration of the 'ctftime_votes' tool with the MCP server using server.registerTool()
    server.registerTool(
    	"ctftime_votes",
    	{
    		description: "Get event votes for a year.",
    		inputSchema: {
    			year: z.number().int().min(2011).max(2100).describe("Year (e.g., 2025)."),
    		},
    	},
    	async ({ year }) => {
    		const url = `${CTFtime_API_BASE}/votes/${year}/`;
    		const data = await getJson<any>(url);
    		return {
    			content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
    		};
    	}
    );
  • Input schema defining the required 'year' parameter (z.number().int().min(2011).max(2100))
    {
    	description: "Get event votes for a year.",
    	inputSchema: {
    		year: z.number().int().min(2011).max(2100).describe("Year (e.g., 2025)."),
    	},
  • Handler function that fetches event votes from CTFtime API for the given year and returns JSON text content
    async ({ year }) => {
    	const url = `${CTFtime_API_BASE}/votes/${year}/`;
    	const data = await getJson<any>(url);
    	return {
    		content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
    	};
    }
Behavior2/5

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

No annotations provided, and the description does not disclose any behavioral traits such as read-only nature, rate limits, or required permissions. The tool's behavior is assumed from its name only.

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?

A single, direct sentence with no extraneous words. Highly concise.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one parameter and no output schema, the description is adequate but lacks details on the return format or limitations, which would help an agent fully understand the tool's output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no meaning beyond the input schema, which already describes the year parameter with an example. Since schema coverage is 100%, baseline is 3.

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 description clearly states the tool retrieves event votes for a year, distinguishing it from siblings that deal with events, results, or teams. However, it does not define 'event votes,' but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like ctftime_events or ctftime_results. The description provides no context for selection.

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/tomek7667/mcp-ctftime'

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