Skip to main content
Glama
dalboki

sonsuchup-mcp

by dalboki

get_case_detail

Retrieve comprehensive details of a mystery case, including overview, people, alibis, relationships, and timeline events, using a case UUID.

Instructions

사건 한 건의 전체 내용(개요, 인물, 알리바이, 관계, 타임라인 이벤트, 기록)을 반환합니다. 결과의 url은 손수첩 웹에서 이 사건을 바로 여는 링크입니다.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYes사건의 UUID

Implementation Reference

  • The handler function for 'get_case_detail' tool. It takes an id (UUID), calls fetchCase to retrieve the full case data from the database, and returns it with a url link to the case in the web app.
    handler: async ({ id }: { id: string }) => {
      const c = await fetchCase(id);
      return { ...c, url: caseUrl(c.id ?? id) };
    },
  • Input schema for 'get_case_detail': expects a single required parameter 'id' which is a UUID string describing the case ID.
    inputSchema: z.object({ id: z.string().uuid().describe('사건의 UUID') }),
  • src/tools.ts:85-94 (registration)
    Tool definition registration for 'get_case_detail' as part of the exported 'tools' array. Includes the tool name, description, inputSchema, and handler.
    {
      name: 'get_case_detail',
      description:
        '사건 한 건의 전체 내용(개요, 인물, 알리바이, 관계, 타임라인 이벤트, 기록)을 반환합니다. 결과의 url은 손수첩 웹에서 이 사건을 바로 여는 링크입니다.',
      inputSchema: z.object({ id: z.string().uuid().describe('사건의 UUID') }),
      handler: async ({ id }: { id: string }) => {
        const c = await fetchCase(id);
        return { ...c, url: caseUrl(c.id ?? id) };
      },
    },
  • The fetchCase helper function that calls the Supabase RPC 'mcp_get_case' to retrieve full case data by ID. Throws an error if the case is not found.
    async function fetchCase(id: string): Promise<CaseData> {
      const data = await callRpc<CaseData | null>('mcp_get_case', { p_id: id });
      if (!data) throw new Error(`사건을 찾을 수 없습니다: ${id}`);
      return data;
    }
  • src/index.ts:16-24 (registration)
    MCP server registration: tools are listed via ListToolsRequestSchema and dispatched via CallToolRequestSchema which finds the tool by name and invokes its handler after parsing input with the Zod schema.
    server.setRequestHandler(ListToolsRequestSchema, async () => ({
      tools: tools.map((t) => ({
        name: t.name,
        description: t.description,
        inputSchema: zodToJsonSchema(t.inputSchema, { target: 'jsonSchema7' }) as Record<
          string,
          unknown
        >,
      })),
Behavior3/5

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

No annotations are provided, so the description carries full burden. It adds behavioral context about the result containing a url link, but does not explicitly state that the tool is read-only or disclose any authorization requirements or side effects.

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 two sentences with no extraneous words. The first sentence states the main functionality, and the second adds a useful detail about the URL. Information is front-loaded.

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 the complexity of returning full case detail and the absence of an output schema, the description adequately lists the components (overview, persons, etc.) and mentions the URL. It does not describe output structure, but the listed components provide sufficient context.

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?

Schema coverage is 100% with one parameter (id) described as '사건의 UUID'. The description repeats that the tool returns case content but adds no additional semantics about the parameter, such as format or constraints, staying at the baseline for high coverage.

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 uses a specific verb '반환합니다' (returns) and identifies the resource as '사건 한 건의 전체 내용' (entire content of one case), listing specific components. This clearly distinguishes it from sibling tools like list_cases (which lists cases) and update_case_info (which updates).

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?

The description provides no guidance on when to use this tool versus alternatives. It does not specify that this is for retrieving full detail vs. summary, nor does it mention alternatives like list_cases for overviews.

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