Skip to main content
Glama
dalboki

sonsuchup-mcp

by dalboki

list_cases

Return a list of your mystery cases with metadata such as name, date, location, summary, and a direct URL to open each case in the web app.

Instructions

현재 사용자의 사건 목록(메타만)을 반환합니다. 각 항목은 id, name, occurrence, location, summary, 인물·기록 수와 함께 손수첩 웹에서 바로 열 수 있는 url을 포함합니다. 사용자에게 결과를 보여줄 때 각 사건의 url을 함께 노출하세요.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'list_cases' tool. Calls 'mcp_list_cases' RPC and returns a list of cases with URLs.
      handler: async () => {
        const rows = (await callRpc<{ id: string }[]>('mcp_list_cases', {})) ?? [];
        return {
          listUrl: listUrl(),
          cases: rows.map((r) => ({ ...r, url: caseUrl(r.id) })),
        };
      },
    },
  • Input schema for 'list_cases' – expects an empty object (no parameters).
    inputSchema: z.object({}),
  • src/tools.ts:71-84 (registration)
    The 'list_cases' tool is registered as an entry in the `tools` array (ToolDef[]).
    export const tools: ToolDef[] = [
      {
        name: 'list_cases',
        description:
          '현재 사용자의 사건 목록(메타만)을 반환합니다. 각 항목은 id, name, occurrence, location, summary, 인물·기록 수와 함께 손수첩 웹에서 바로 열 수 있는 url을 포함합니다. 사용자에게 결과를 보여줄 때 각 사건의 url을 함께 노출하세요.',
        inputSchema: z.object({}),
        handler: async () => {
          const rows = (await callRpc<{ id: string }[]>('mcp_list_cases', {})) ?? [];
          return {
            listUrl: listUrl(),
            cases: rows.map((r) => ({ ...r, url: caseUrl(r.id) })),
          };
        },
      },
  • Helper function to generate a case URL by ID, used by the list_cases handler.
    const caseUrl = (id: string) => `${WEB_URL}/cases/${id}`;
  • Helper function to generate the list URL, used by the list_cases handler.
    const listUrl = () => `${WEB_URL}/cases`;
Behavior4/5

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

No annotations are provided, but the description discloses that it returns metadata only (not full details) and includes a url for direct access. Since it's a read operation, it appropriately avoids side-effect claims. However, it does not mention authentication or rate limits.

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?

The description is a single sentence that is front-loaded and concise. Every part is meaningful: it states the action, the scope, the content, and an instruction to expose the url.

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 no parameters and no output schema, the description is complete. It specifies the scope ('current user'), the return type (metadata only), the fields, and an actionable instruction for the agent (expose url).

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

Parameters5/5

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

There are no parameters, and schema coverage is 100%. The description adds value by detailing the output structure (id, name, occurrence, location, summary, counts, url) beyond what an empty schema provides.

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 it returns the current user's case list (metadata only) and enumerates the fields (id, name, occurrence, location, summary, counts, url). It distinguishes from siblings like get_case_detail by specifying 'metadata only'.

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?

The description specifies it's for listing cases and provides context about the output. It does not explicitly state when not to use it or name alternatives, but from sibling tool names (create_case, delete_case, get_case_detail), the usage is implied.

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/dalboki/sonsuchup-mcp'

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